xan: check size_segment before reading, fixes out of array read.
authorMichael Niedermayer <michaelni@gmx.at>
Mon, 12 Nov 2012 19:42:33 +0000 (20:42 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Mon, 12 Nov 2012 19:50:13 +0000 (20:50 +0100)
commit0e239b22dbbe6808ac08ca72825f734076d4dc81
treeac33f520dc2bda5c47a92cd2db2a5a448200864d
parenta9456c7c5ca883b5a3947e59a9fba5587e18e119
xan: check size_segment before reading, fixes out of array read.

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/xan.c