Commit 91705f1
committed
fix(encode): assert virtual position bound in borrowed skip-path
prime_hash_table_for_range_borrowed stores virtual [dict][input]
positions with the same dict.region_len() base_offset as
start_matching_borrowed_dict, but lacked that path's u32-bound
validation. Add a debug_assert so test/direct-call misuse that
overflows u32 fails loudly at the source; production is already
gated by the frame compressor's borrowed_eligible check.1 parent 792df34 commit 91705f1
1 file changed
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1306 | 1306 | | |
1307 | 1307 | | |
1308 | 1308 | | |
| 1309 | + | |
| 1310 | + | |
| 1311 | + | |
| 1312 | + | |
| 1313 | + | |
| 1314 | + | |
1309 | 1315 | | |
1310 | 1316 | | |
1311 | 1317 | | |
| |||
0 commit comments