Repository navigation
Commit e00e792
zstd-safe: bind init_using_{c,d}dict's dictionary borrow to the context
Like the with_prepared_dictionary constructors fixed for #365, the
deprecated CCtx::init_using_cdict and DCtx::init_using_ddict took the
dictionary as &X<'b> with only 'b: 'a, so the reference itself could end
while the context still pointed at the dictionary. Take &'a X<'b>, as
ref_cdict and ref_ddict already do.
Discovered by Anthropic's OSS Scanner, as vulnerability ANT-2026-QYXWIMNZ.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01MxSMUdwqoQ3qm6UF82MgZD1 parent d34502a commit e00e792
1 file changed
Lines changed: 26 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
533 | 533 | | |
534 | 534 | | |
535 | 535 | | |
| 536 | + | |
| 537 | + | |
| 538 | + | |
| 539 | + | |
| 540 | + | |
| 541 | + | |
| 542 | + | |
| 543 | + | |
| 544 | + | |
| 545 | + | |
| 546 | + | |
| 547 | + | |
536 | 548 | | |
537 | 549 | | |
538 | 550 | | |
539 | | - | |
| 551 | + | |
540 | 552 | | |
541 | 553 | | |
542 | 554 | | |
| |||
1278 | 1290 | | |
1279 | 1291 | | |
1280 | 1292 | | |
| 1293 | + | |
| 1294 | + | |
| 1295 | + | |
| 1296 | + | |
| 1297 | + | |
| 1298 | + | |
| 1299 | + | |
| 1300 | + | |
| 1301 | + | |
| 1302 | + | |
| 1303 | + | |
| 1304 | + | |
1281 | 1305 | | |
1282 | 1306 | | |
1283 | 1307 | | |
1284 | | - | |
| 1308 | + | |
1285 | 1309 | | |
1286 | 1310 | | |
1287 | 1311 | | |
| |||
0 commit comments