Commit 1fee3407 authored by kostya's avatar kostya

Check unp_size for possible overflows too

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@10490 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 865e30cf
......@@ -590,7 +590,7 @@ static int smka_decode_frame(AVCodecContext *avctx, void *data, int *data_size,
}
stereo = get_bits1(&gb);
bits = get_bits1(&gb);
if ((unp_size << !bits) > *data_size) {
if (unp_size & 0xC0000000 || (unp_size << !bits) > *data_size) {
av_log(avctx, AV_LOG_ERROR, "Frame is too large to fit in buffer\n");
return -1;
}
......
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