Commit 4d1f8ef
committed
read: add bounds checks during extent merge to prevent buffer overflow
Validate write offsets and per-extent copy sizes before memcpy when
merging item extents to avoid out-of-bounds writes triggered by malformed
or malicious AVIF metadata.
Reject invalid extents with AVIF_RESULT_BMFF_PARSE_FAILED.1 parent 2a4a06f commit 4d1f8ef
1 file changed
Lines changed: 11 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1535 | 1535 | | |
1536 | 1536 | | |
1537 | 1537 | | |
| 1538 | + | |
| 1539 | + | |
| 1540 | + | |
| 1541 | + | |
| 1542 | + | |
| 1543 | + | |
| 1544 | + | |
| 1545 | + | |
| 1546 | + | |
| 1547 | + | |
| 1548 | + | |
1538 | 1549 | | |
1539 | 1550 | | |
1540 | 1551 | | |
| |||
0 commit comments