avcodec/cdgraphics: check buffer size before use
authorMichael Niedermayer <michaelni@gmx.at>
Tue, 7 May 2013 19:04:33 +0000 (21:04 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Mon, 13 May 2013 23:30:16 +0000 (01:30 +0200)
commit2c66058737e254756118b7f7be0be7d3bfbb4fe3
tree48b11973cfcddd10bce58701a5aaa0b07d8f1258
parent813b3d11e0286b1d656633cd5717f3f43db5d1ac
avcodec/cdgraphics: check buffer size before use

Fixes out of array accesses

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit ad002e1a13a8df934bd6cb2c84175a4780ab8942)

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/cdgraphics.c