Commit cd6fb18
committed
Validate output length in the child
If the child reports an output length that's larger than the buffer, report
it rather than overread the buffer. The parent would catch the excess
length anyway, but having the child catch it makes the behavior more uniform
with respect to the presence or absence of sanitizers.
Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>1 parent e713bae commit cd6fb18
1 file changed
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
| 83 | + | |
| 84 | + | |
83 | 85 | | |
84 | 86 | | |
85 | 87 | | |
| |||
0 commit comments