Commit 3bdfef31 authored by Michael Niedermayer's avatar Michael Niedermayer

fraps: check for overread

Fixeds Ticket619
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent bf0ac7aa
......@@ -114,6 +114,8 @@ static int fraps2_decode_plane(FrapsContext *s, uint8_t *dst, int stride, int w,
else if(Uoff) dst[i] += 0x80;
}
dst += stride;
if(get_bits_left(&gb) < 0)
return -1;
}
free_vlc(&vlc);
return 0;
......
......@@ -56,4 +56,3 @@
0, 165000, 145152, 0x80448031
0, 168000, 145152, 0xe3b1fbf7
0, 171000, 145152, 0xa00395a4
0, 174000, 145152, 0xdf3b4fce
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