avcodec/pngdec: Check IHDR/IDAT order
authorMichael Niedermayer <michaelni@gmx.at>
Wed, 26 Nov 2014 13:45:47 +0000 (14:45 +0100)
committerMarkus Koschany <apo@debian.org>
Mon, 7 Jan 2019 18:45:12 +0000 (18:45 +0000)
commita410e63372020dfaaa265a05013b7f1503be2bb4
tree433b1ce0394c397107519e2124174e6b19f81726
parentc7bec5418fa4e19c7044c725d8309be0e9cf8b9f
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