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:11:54 +0000 (22:11 -0400)
commit62b0462e5fa78901380ca229ddb6a7625efd61a2
treeb65221c61b58533c9aa43eea32504fc36499ae9a
parent789f433bc6376e6e45d41ae491007d482fa1df85
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>
(cherry picked from commit eb9041403d820634c45ed4ee98570246a252507a)
Signed-off-by: Reinhard Tartler <siretart@tauware.de>
libavcodec/tiff.c