xxan: Disallow odd width
authorMartin Storsjö <martin@martin.st>
Sat, 28 Sep 2013 22:04:05 +0000 (01:04 +0300)
committerLuca Barbato <lu_zero@gentoo.org>
Tue, 7 Jan 2014 08:43:57 +0000 (09:43 +0100)
commitd3986f4f1baf8397c1f12154387c2c1950125d72
tree0fcaa86bc802716032f3426811897d4de52be902
parent380e3732676828decd54dccaba96db30be78aecf
xxan: Disallow odd width

Decoded data is always written in pairs within this decoder.
This fixes writes out of bounds.

Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC: libav-stable@libav.org
Signed-off-by: Martin Storsjö <martin@martin.st>
(cherry picked from commit aa0dd52434768da64f1f3d8ae92bcf980c1adffc)
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
libavcodec/xxan.c