aboutsummaryrefslogtreecommitdiffstats
path: root/libswscale/colorspace-test.c
diff options
context:
space:
mode:
authorAndreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>2015-05-03 20:36:20 +0200
committerMichael Niedermayer <michaelni@gmx.at>2015-05-03 21:50:09 +0200
commit372aa0777aaacf726de7cd7dd0e6797026a124ee (patch)
treec52054e140138be54be5a5418d9ed0b9e38a6435 /libswscale/colorspace-test.c
parent8f760be4d312bb6e78f80d39b9d0062253332e08 (diff)
downloadffmpeg-372aa0777aaacf726de7cd7dd0e6797026a124ee.tar.gz
pngdec: don't use AV_PIX_FMT_MONOBLACK for apng
AV_PIX_FMT_MONOBLACK has the AV_PIX_FMT_FLAG_BITSTREAM flag, i.e. linesize can be smaller than width. Since x_offset is only check against the width, this can lead to x_offset * bpp >= image_linesize. In this case ptr could be set to a position outside the image_buf in png_handle_row, leading to memory corruption and thus crashes. Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libswscale/colorspace-test.c')
0 files changed, 0 insertions, 0 deletions