mirror of
https://github.com/google/brotli.git
synced 2026-07-08 17:56:58 +00:00
[PR #1393] Fix one-off in dcheck. #2005
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?
Original Pull Request: https://github.com/google/brotli/pull/1393
State: closed
Merged: Yes
Fix one-off in dcheck.
How to prove correctness:
positionis0,max_lengthis allowed to beringbuffer_sizeposition + max_length <= ringbuffer_sizeringbuffer_mask == ringbuffer_size - 1position + max_length <= ringbuffer_size + 1