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>
Tue, 7 May 2013 19:06:48 +0000 (21:06 +0200)
commitad002e1a13a8df934bd6cb2c84175a4780ab8942
treeb27f13de5c301d903bbea5fd921c1725eb5edcfc
parentead590c2561980f2afda38a662364659577dca38
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>
libavcodec/cdgraphics.c