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>
Mon, 21 Jan 2019 14:30:50 +0000 (14:30 +0000)
commit0ec372ca2cf8fd0f50ceb3cef964ed5a03e172f0
tree659e6f6c752bb1a6dd6db47da176ae2493218186
parent1d21269bcda96934006172829ddcbcffee126407
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