Commit 7f6a796
committed
Guard against unsigned underflow in inputLength calculation
Add bounds check before computing inputLength from curStartIdx + curSize
to prevent unsigned underflow if *inOutIdx ever exceeds the record
content boundary.1 parent 9d8b6c4 commit 7f6a796
2 files changed
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18783 | 18783 | | |
18784 | 18784 | | |
18785 | 18785 | | |
| 18786 | + | |
| 18787 | + | |
18786 | 18788 | | |
18787 | 18789 | | |
18788 | 18790 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13520 | 13520 | | |
13521 | 13521 | | |
13522 | 13522 | | |
| 13523 | + | |
| 13524 | + | |
13523 | 13525 | | |
13524 | 13526 | | |
13525 | 13527 | | |
| |||
0 commit comments