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)
committerLuca Barbato <lu_zero@gentoo.org>
Sun, 8 Mar 2015 18:16:16 +0000 (19:16 +0100)
commit77eb3d9a60a9c2bb6d87c960ac186af242bbcc9e
tree097e15bc7c9f389892da402554b8141c008ef785
parentf3dafb63d05896aacf84caf0e4c81c216476d60e
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