diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-11-11 19:46:16 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-11-11 19:47:01 +0100 |
commit | 7faa17764ad8aa9919125834b97e7fb574af90d4 (patch) | |
tree | 69cda9415e4149d4550ff2935a2e1c63a6eff728 /libavcodec | |
parent | 26452e24ed1a93047226aed7830111abd24cfee3 (diff) | |
download | ffmpeg-7faa17764ad8aa9919125834b97e7fb574af90d4.tar.gz |
dsicinav: update bitmap_frame_size, avoid out of array reads.
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/dsicinav.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/dsicinav.c b/libavcodec/dsicinav.c index fec267f98e..6a0d754159 100644 --- a/libavcodec/dsicinav.c +++ b/libavcodec/dsicinav.c @@ -270,7 +270,7 @@ static int cinvideo_decode_frame(AVCodecContext *avctx, cin->bitmap_table[CIN_CUR_BMP], cin->bitmap_size); break; case 35: - cin_decode_huffman(buf, bitmap_frame_size, + bitmap_frame_size = cin_decode_huffman(buf, bitmap_frame_size, cin->bitmap_table[CIN_INT_BMP], cin->bitmap_size); cin_decode_rle(cin->bitmap_table[CIN_INT_BMP], bitmap_frame_size, cin->bitmap_table[CIN_CUR_BMP], cin->bitmap_size); |