Commit 5ace144f authored by Michael Niedermayer's avatar Michael Niedermayer Committed by Anton Khirnov

fraps: check for overread.

Signed-off-by: 's avatarAnton Khirnov <anton@khirnov.net>
parent 51f316a9
......@@ -111,6 +111,10 @@ static int fraps2_decode_plane(FrapsContext *s, uint8_t *dst, int stride, int w,
*/
if(j) dst[i] += dst[i - stride];
else if(Uoff) dst[i] += 0x80;
if (get_bits_left(&gb) < 0) {
free_vlc(&vlc);
return AVERROR_INVALIDDATA;
}
}
dst += stride;
}
......
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