png: check bit depth for PAL8/Y400A pixel formats.
authorRonald S. Bultje <rsbultje@gmail.com>
Wed, 2 May 2012 17:58:55 +0000 (10:58 -0700)
committerRonald S. Bultje <rsbultje@gmail.com>
Fri, 4 May 2012 23:06:47 +0000 (16:06 -0700)
commitd2205d6543881f2e6fa18c8a354bbcf91a1235f7
tree1d43bbadb8b06b287d1edd946801aaaccb2b7144
parent273e6af47b38391f2bcc157cca0423fe7fcbf55c
png: check bit depth for PAL8/Y400A pixel formats.

Wrong bit depth can lead to invalid rowsize values, which crashes the
decoder further down.

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC: libav-stable@libav.org
libavcodec/pngdec.c