[Ffmpeg-cvslog] r7653 - trunk/libavformat/asf.c
michael
subversion
Mon Jan 22 22:17:54 CET 2007
Author: michael
Date: Mon Jan 22 22:17:54 2007
New Revision: 7653
Modified:
trunk/libavformat/asf.c
Log:
check to detect nonsense fragment size
Modified: trunk/libavformat/asf.c
==============================================================================
--- trunk/libavformat/asf.c (original)
+++ trunk/libavformat/asf.c Mon Jan 22 22:17:54 2007
@@ -571,6 +571,10 @@
}
if (asf->packet_flags & 0x01) {
DO_2BITS(asf->packet_segsizetype >> 6, asf->packet_frag_size, 0); // 0 is illegal
+ if(asf->packet_frag_size > asf->packet_size_left - rsize){
+ av_log(s, AV_LOG_ERROR, "packet_frag_size is invalid\n");
+ return -1;
+ }
//printf("Fragsize %d\n", asf->packet_frag_size);
} else {
asf->packet_frag_size = asf->packet_size_left - rsize;
More information about the ffmpeg-cvslog
mailing list