avcodec/pngdec: Only allow one IHDR chunk
authorMichael Niedermayer <michaelni@gmx.at>
Mon, 29 Jun 2015 17:08:05 +0000 (19:08 +0200)
committerMike Gabriel <sunweaver@debian.org>
Thu, 20 Dec 2018 21:56:40 +0000 (21:56 +0000)
commit0a4668caae4e673ac16afae75e8dc87e535a657b
tree72a5d08991d9986f1ec06e974f66d73355d26466
parent6d3dad6df2d299a4296e4afa053e94b027d6aaad
avcodec/pngdec: Only allow one IHDR chunk

avcodec/pngdec: Only allow one IHDR chunk

Multiple IHDR chunks are forbidden in PNG
Fixes inconsistency and out of array accesses

Fixes: asan_heap-oob_4d5c5a_1738_cov_2638287726_c-m2-8f2b481b7fd9bd745e620b7c01a18df2.png
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Gbp-Pq: Name CVE-2015-6818.patch
libavcodec/pngdec.c