Commit 4a565c9d authored by banan's avatar banan

Make sure we only parse max amount of subpackets (5) in the cook decoder.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18689 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 2ca2b4f1
......@@ -1219,6 +1219,10 @@ static av_cold int cook_decode_init(AVCodecContext *avctx)
q->num_subpackets++;
s++;
if (s > MAX_SUBPACKETS) {
av_log(avctx,AV_LOG_ERROR,"Too many subpackets > 5, report file!\n");
return -1;
}
}
/* Generate tables */
init_pow2table();
......
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