diff options
author | Andreas Cadhalpun <[email protected]> | 2015-11-06 23:44:01 +0100 |
---|---|---|
committer | Michael Niedermayer <[email protected]> | 2015-11-12 02:55:47 +0100 |
commit | 132bd4bc4fb4a3d6c4cf0504f0f42699d5c20e7c (patch) | |
tree | e751251f1c584dad6930119850bb9c0f1a966463 /libavutil/pixelutils.c | |
parent | cd8bedb9fa7c3d04288bf57b64081b4a89aefb4d (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]>
(cherry picked from commit 3e8e1a660ea182111057d56ec1cfad2c62250f4c)
Signed-off-by: Michael Niedermayer <[email protected]>
Diffstat (limited to 'libavutil/pixelutils.c')
0 files changed, 0 insertions, 0 deletions