google / brotli

Brotli compression format
MIT License
13.49k stars 1.24k forks source link

Don't check `cur_ix_masked` against `ring_buffer_mask`. #1158

Closed copybara-service[bot] closed 5 months ago

copybara-service[bot] commented 5 months ago

Don't check cur_ix_masked against ring_buffer_mask.

cur_ix_masked isn't changing from iteration to iteration, and max_length ensures we never find a match long enough to walk off the ring buffer.