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/dsicinav.c | |
parent | 26452e24ed1a93047226aed7830111abd24cfee3 (diff) | |
download | ffmpeg-streaming-7faa17764ad8aa9919125834b97e7fb574af90d4.zip ffmpeg-streaming-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/dsicinav.c')
-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 fec267f..6a0d754 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); |