[FFmpeg-cvslog] r10490 - trunk/libavcodec/smacker.c
kostya
subversion
Fri Sep 14 08:01:30 CEST 2007
Author: kostya
Date: Fri Sep 14 08:01:29 2007
New Revision: 10490
Log:
Check unp_size for possible overflows too
Modified:
trunk/libavcodec/smacker.c
Modified: trunk/libavcodec/smacker.c
==============================================================================
--- trunk/libavcodec/smacker.c (original)
+++ trunk/libavcodec/smacker.c Fri Sep 14 08:01:29 2007
@@ -590,7 +590,7 @@ static int smka_decode_frame(AVCodecCont
}
stereo = get_bits1(&gb);
bits = get_bits1(&gb);
- if ((unp_size << !bits) > *data_size) {
+ if (unp_size & 0xC0000000 || (unp_size << !bits) > *data_size) {
av_log(avctx, AV_LOG_ERROR, "Frame is too large to fit in buffer\n");
return -1;
}
More information about the ffmpeg-cvslog
mailing list