diff options
author | Andreas Cadhalpun <[email protected]> | 2015-11-06 23:44:01 +0100 |
---|---|---|
committer | Andreas Cadhalpun <[email protected]> | 2015-11-07 13:15:14 +0100 |
commit | 3e8e1a660ea182111057d56ec1cfad2c62250f4c (patch) | |
tree | aed3cdcd453d018ed071f394aa5fd78ddd0118fb /tests/api/api-band-test.c | |
parent | db374790c75fa4ef947abcb5019fcf21d0b2de85 (diff) |
apng: use correct size for output buffer
The buffer needs s->bpp bytes, at maximum currently 10.
Assert that s->bpp is not larger.
This fixes a stack buffer overflow.
Reviewed-by: wm4 <[email protected]>
Reviewed-by: Paul B Mahol <[email protected]>
Signed-off-by: Andreas Cadhalpun <[email protected]>
Diffstat (limited to 'tests/api/api-band-test.c')
0 files changed, 0 insertions, 0 deletions