Commit 82d39b35 authored by michael's avatar michael

Off-by-one bug in libavcodec/idcinvideo.c, caused

segfaults on all .cin videos from Quake II.
patch by (Matti Hamalainen <mhamalai ratol fi>)


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@3956 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 1e2fbf72
......@@ -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;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment