mirror of
https://github.com/google/brotli.git
synced 2026-07-08 17:56:58 +00:00
C: Compressing large input data triggers an assert (with BROTLI_DEBUG=1) #563
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @niklasalbers on GitHub (Nov 17, 2025).
Trying to compress large input data triggers an assert:
enc/hash_longest_match64_simd_inc.h:198: FindLongestMatchH68: Assertion `cur_ix_masked + max_length <= ring_buffer_mask' failed.If quality is set to 6, input data larger than 33554431 bytes will trigger the assert.
If I reduce BROTLI_PARAM_LGWIN / --lgwin, the assert will be triggered for smaller data sizes.
I was not able to reproduce it with version 1.1.0.
How to reproduce:
head -c 33554432 /dev/urandom > large-file && brotli --quality=6 --force large-file --output=large-file.outhead -c 8388607 /dev/urandom > large-file && brotli --quality=6 --force large-file --output=large-file.out --lgwin=21@eustas commented on GitHub (Nov 17, 2025):
Thanks for reporting, will investigate soon.
@eustas commented on GitHub (Nov 21, 2025):
There is one-off in DCHECK. Will be fixed soon.