mirror of
https://github.com/google/brotli.git
synced 2026-07-08 17:56:58 +00:00
[PR #1393] [MERGED] Fix one-off in dcheck. #2003
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?
📋 Pull Request Information
Original PR: https://github.com/google/brotli/pull/1393
Author: @copybara-service[bot]
Created: 11/21/2025
Status: ✅ Merged
Merged: 11/24/2025
Merged by: @copybara-service[bot]
Base:
master← Head:test_835164941📝 Commits (1)
486ed5bFix one-off in dcheck.📊 Changes
8 files changed (+9 additions, -9 deletions)
View changed files
📝
c/enc/backward_references_hq.c(+1 -1)📝
c/enc/hash.h(+2 -2)📝
c/enc/hash_forgetful_chain_inc.h(+1 -1)📝
c/enc/hash_longest_match64_inc.h(+1 -1)📝
c/enc/hash_longest_match64_simd_inc.h(+1 -1)📝
c/enc/hash_longest_match_inc.h(+1 -1)📝
c/enc/hash_longest_match_quickly_inc.h(+1 -1)📝
c/enc/hash_longest_match_simd_inc.h(+1 -1)📄 Description
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🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.