Repository navigation
Commit 4b63dff
Share TIFF tag data budget across frames
The per-IFD limit could be bypassed with many frames, each with a tag
pointing to the same payload. Walking 30,000 such frames in a 7.5 MB
file read 227 GB. Each frame's limit is now taken from the bytes left
after previous frames, and fixed when the frame is first loaded so that
reloading it gives the same tags.
Co-Authored-By: Claude Opus 5.5 <[email protected]>1 parent 4908eda commit 4b63dff
2 files changed
Lines changed: 56 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
499 | 499 | | |
500 | 500 | | |
501 | 501 | | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
| 518 | + | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
| 526 | + | |
| 527 | + | |
| 528 | + | |
| 529 | + | |
| 530 | + | |
| 531 | + | |
| 532 | + | |
| 533 | + | |
| 534 | + | |
| 535 | + | |
| 536 | + | |
502 | 537 | | |
503 | 538 | | |
504 | 539 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
622 | 622 | | |
623 | 623 | | |
624 | 624 | | |
| 625 | + | |
| 626 | + | |
| 627 | + | |
| 628 | + | |
625 | 629 | | |
626 | 630 | | |
627 | 631 | | |
| |||
896 | 900 | | |
897 | 901 | | |
898 | 902 | | |
899 | | - | |
| 903 | + | |
900 | 904 | | |
| 905 | + | |
| 906 | + | |
| 907 | + | |
901 | 908 | | |
902 | 909 | | |
903 | 910 | | |
| |||
935 | 942 | | |
936 | 943 | | |
937 | 944 | | |
938 | | - | |
| 945 | + | |
939 | 946 | | |
940 | 947 | | |
| 948 | + | |
941 | 949 | | |
942 | 950 | | |
943 | 951 | | |
| |||
1217 | 1225 | | |
1218 | 1226 | | |
1219 | 1227 | | |
| 1228 | + | |
| 1229 | + | |
| 1230 | + | |
| 1231 | + | |
| 1232 | + | |
| 1233 | + | |
| 1234 | + | |
1220 | 1235 | | |
1221 | 1236 | | |
1222 | 1237 | | |
| |||
1269 | 1284 | | |
1270 | 1285 | | |
1271 | 1286 | | |
| 1287 | + | |
1272 | 1288 | | |
| 1289 | + | |
1273 | 1290 | | |
| 1291 | + | |
1274 | 1292 | | |
1275 | 1293 | | |
1276 | 1294 | | |
| |||
1283 | 1301 | | |
1284 | 1302 | | |
1285 | 1303 | | |
| 1304 | + | |
1286 | 1305 | | |
1287 | 1306 | | |
1288 | 1307 | | |
| |||
0 commit comments