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>
Thu, 9 May 2013 20:16:23 +0000 (22:16 +0200)
commit7ef2dbd2392e3e4d430e0173e1e5c4df9f18b6dd
tree595ecd7920a2c3009339cf0d8aa2f4a8dfef509c
parent524d0d2cfc7bab1b348f85e7c0369859e63781cf
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