[FFmpeg-cvslog] r18689 - trunk/libavcodec/cook.c
banan
subversion
Sat Apr 25 19:46:27 CEST 2009
Author: banan
Date: Sat Apr 25 19:46:27 2009
New Revision: 18689
Log:
Make sure we only parse max amount of subpackets (5) in the cook decoder.
Modified:
trunk/libavcodec/cook.c
Modified: trunk/libavcodec/cook.c
==============================================================================
--- trunk/libavcodec/cook.c Sat Apr 25 19:35:21 2009 (r18688)
+++ trunk/libavcodec/cook.c Sat Apr 25 19:46:27 2009 (r18689)
@@ -1219,6 +1219,10 @@ static av_cold int cook_decode_init(AVCo
q->num_subpackets++;
s++;
+ if (s > MAX_SUBPACKETS) {
+ av_log(avctx,AV_LOG_ERROR,"Too many subpackets > 5, report file!\n");
+ return -1;
+ }
}
/* Generate tables */
init_pow2table();
More information about the ffmpeg-cvslog
mailing list