[Ffmpeg-cvslog] CVS: ffmpeg/libavformat aviobuf.c,1.27,1.28

Michael Niedermayer CVS michael
Fri Jun 3 10:48:13 CEST 2005


Update of /cvsroot/ffmpeg/ffmpeg/libavformat
In directory mail:/var2/tmp/cvs-serv25666

Modified Files:
	aviobuf.c 
Log Message:
10l (segfault fix)


Index: aviobuf.c
===================================================================
RCS file: /cvsroot/ffmpeg/ffmpeg/libavformat/aviobuf.c,v
retrieving revision 1.27
retrieving revision 1.28
diff -u -d -r1.27 -r1.28
--- aviobuf.c	30 May 2005 16:45:08 -0000	1.27
+++ aviobuf.c	3 Jun 2005 08:48:10 -0000	1.28
@@ -272,7 +272,8 @@
         return;
 
     if(s->update_checksum){
-        s->checksum= s->update_checksum(s->checksum, s->checksum_ptr, s->buf_end - s->checksum_ptr);
+        if(s->buf_end > s->checksum_ptr)
+            s->checksum= s->update_checksum(s->checksum, s->checksum_ptr, s->buf_end - s->checksum_ptr);
         s->checksum_ptr= s->buffer;
     }
 





More information about the ffmpeg-cvslog mailing list