Commit f106a5e2 authored by kostya's avatar kostya

Check for symbol count

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@6910 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent a26ea3de
......@@ -140,6 +140,10 @@ static int fraps2_decode_plane(FrapsContext *s, uint8_t *dst, int stride, int w,
s->nodes[i].sym = i;
s->nodes[i].count = LE_32(src);
s->nodes[i].n0 = -2;
if(s->nodes[i].count < 0) {
av_log(s->avctx, AV_LOG_ERROR, "Symbol count < 0\n");
return -1;
}
src += 4;
sum += s->nodes[i].count;
}
......
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