tiff: Check that there is no aliasing in pixel format selection
authorAnton Khirnov <anton@khirnov.net>
Sat, 7 Mar 2015 21:06:59 +0000 (22:06 +0100)
committerReinhard Tartler <siretart@tauware.de>
Mon, 9 Mar 2015 02:04:40 +0000 (22:04 -0400)
commiteb9041403d820634c45ed4ee98570246a252507a
tree00a92bb93f3fca5c35775436840904bbf96ebdd2
parent0051174c70810b66378cf8ea093eab01302f6049
tiff: Check that there is no aliasing in pixel format selection

Fixes possible issues with unexpected bpp/bppcount values.

CC: libav-stable@libav.org
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Bug-Id: CVE-2014-8544
(cherry picked from commit ae5e1f3d663a8c9a532d89e588cbc61f171c9186)
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
libavcodec/tiff.c