google / brotli

Brotli compression format
MIT License
13.3k stars 1.22k forks source link

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

Closed copybara-service[bot] closed 2 months ago

copybara-service[bot] commented 3 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.

google-cla[bot] commented 3 months ago

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.