avcodec/pngdec: Check IHDR/IDAT order
authorMichael Niedermayer <michaelni@gmx.at>
Wed, 26 Nov 2014 13:45:47 +0000 (14:45 +0100)
committerMike Gabriel <sunweaver@debian.org>
Sat, 30 Mar 2019 20:44:13 +0000 (20:44 +0000)
commite2b0248acf24691099786fb19f723549f8dd9a90
tree12827f49fbd40469a6bcae15e7e2b93ce6d70ebd
parentbe2285aa26d834f63286bc658345a6dcdedcf3c7
avcodec/pngdec: Check IHDR/IDAT order

avcodec/pngdec: Check IHDR/IDAT order

Fixes out of array access
Fixes: asan_heap-oob_20a6c26_2690_cov_3434532168_mail.png
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
[sunweaver] - Port this commit to libav in Debian jessie.

Gbp-Pq: Name CVE-2014-9317.patch
libavcodec/pngdec.c