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:01:59 +0000 (20:01 +0000)
commita7153444df9040bf6ae103e0bbf6104b66f974cb
treed946c09c7e20e983656e15e53c3e96cfa36f81b4
parent70cd3b8e659c3522eea5c16a65d14b8658894a94
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>
libavcodec/huffyuvdec.c