[PR #1158] Don't check cur_ix_masked against ring_buffer_mask. #1722

Closed
opened 2026-01-29 20:55:29 +00:00 by claunia · 0 comments
Owner

Original Pull Request: https://github.com/google/brotli/pull/1158

State: closed
Merged: No


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.

**Original Pull Request:** https://github.com/google/brotli/pull/1158 **State:** closed **Merged:** No --- 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.
claunia added the pull-request label 2026-01-29 20:55:29 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/brotli#1722