avcodec/pngdec: Only allow one IHDR chunk
authorMichael Niedermayer <michaelni@gmx.at>
Mon, 29 Jun 2015 17:08:05 +0000 (19:08 +0200)
committerMarkus Koschany <apo@debian.org>
Mon, 7 Jan 2019 18:45:12 +0000 (18:45 +0000)
commit4aff8da9278c00c223342d9c8cf571c51af4c1df
treed23f8e456966b62c8730623d1c750f45e177b715
parenta410e63372020dfaaa265a05013b7f1503be2bb4
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