huffyuvdec: check width size for yuv422p
authorMichael Niedermayer <michaelni@gmx.at>
Sat, 2 Aug 2014 23:54:33 +0000 (00:54 +0100)
committerAnton Khirnov <anton@khirnov.net>
Tue, 5 Aug 2014 20:11:08 +0000 (20:11 +0000)
commitc53effc41b9359261b17c8da3b7062369cafd686
treece20cd4a0401aaab70740b17b255e709cc055a4a
parentede738880032db62b7dc5b3712f769d3826f5974
huffyuvdec: check width size for yuv422p

Avoid out of array accesses.

CC: libav-stable@libav.org
Bug-Id: CVE-2013-0848
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
Signed-off-by: Anton Khirnov <anton@khirnov.net>
(cherry picked from commit a7153444df9040bf6ae103e0bbf6104b66f974cb)
Signed-off-by: Anton Khirnov <anton@khirnov.net>
libavcodec/huffyuvdec.c