avcodec/pngdec: Only allow one IHDR chunk
authorMichael Niedermayer <michaelni@gmx.at>
Mon, 29 Jun 2015 17:08:05 +0000 (19:08 +0200)
committerSylvain Beucler <beuc@debian.org>
Thu, 5 Dec 2019 16:27:00 +0000 (16:27 +0000)
commit7e26b090aa311368135cd662efbdf7eb7457d20c
tree8c47c44089edc0c9030b0917b6127f0500cab198
parent064f5cbf8065d21f762c8e7b9d2a5dc1c5e0a438
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