Commit 3b99a791 authored by kabi's avatar kabi

* avoid negative numbers as well


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@1134 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 9639f4fb
......@@ -1282,7 +1282,7 @@ static int wma_decode_superframe(AVCodecContext *avctx,
s->last_bitoffset = pos & 7;
pos >>= 3;
len = buf_size - pos;
if (len > MAX_CODED_SUPERFRAME_SIZE) {
if (len > MAX_CODED_SUPERFRAME_SIZE || len < 0) {
return -1;
}
s->last_superframe_len = len;
......
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