diff options
author | Matti Hamalainen <(mhamalai@students.oamk.fi> | 2005-02-16 22:42:41 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2005-02-16 22:42:41 +0000 |
commit | aabdc4618788a90c4a2b64a569f560d5b7378271 (patch) | |
tree | 2ff91cf3193245cee383d4383ae81f2a02f2b867 | |
parent | d2a7718df93e27c914717b5bceab5a218abd7a84 (diff) | |
download | ffmpeg-aabdc4618788a90c4a2b64a569f560d5b7378271.tar.gz |
Off-by-one bug in libavcodec/idcinvideo.c, caused
segfaults on all .cin videos from Quake II.
patch by (Matti Hamalainen <mhamalai ratol fi>)
Originally committed as revision 3956 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavcodec/idcinvideo.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/idcinvideo.c b/libavcodec/idcinvideo.c index e53246bd17..f5df5a49d9 100644 --- a/libavcodec/idcinvideo.c +++ b/libavcodec/idcinvideo.c @@ -192,7 +192,7 @@ static void idcin_decode_vlcs(IdcinContext *s) while(node_num >= HUF_TOKENS) { if(!bit_pos) { - if(dat_pos > s->size) { + if(dat_pos >= s->size) { av_log(s->avctx, AV_LOG_ERROR, "Huffman decode error.\n"); return; } |