Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2011-11-09 01:42:50 +0400
committerMichael Niedermayer <michaelni@gmx.at>2011-11-09 03:06:08 +0400
commit3bdfef31ac135add243f9ddde99d6b3cee953833 (patch)
tree60cae6b9a7a2ecce0534d17c485efd588c6c6a07 /libavcodec/fraps.c
parentbf0ac7aa696237a9a3834ac6c065462786770e54 (diff)
fraps: check for overread
Fixeds Ticket619 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/fraps.c')
-rw-r--r--libavcodec/fraps.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/fraps.c b/libavcodec/fraps.c
index d6f9a554cf..0844fa7939 100644
--- a/libavcodec/fraps.c
+++ b/libavcodec/fraps.c
@@ -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;