[Ffmpeg-cvslog] CVS: ffmpeg/libavcodec cinepak.c,1.8,1.9

Michael Niedermayer CVS michael
Tue Jul 12 00:34:36 CEST 2005


Update of /cvsroot/ffmpeg/ffmpeg/libavcodec
In directory mail:/var2/tmp/cvs-serv12578

Modified Files:
	cinepak.c 
Log Message:
fix infinite loop (suggested change by rjayne at convera dot com)
fixes bug #1160195


Index: cinepak.c
===================================================================
RCS file: /cvsroot/ffmpeg/ffmpeg/libavcodec/cinepak.c,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -d -r1.8 -r1.9
--- cinepak.c	27 Jun 2004 16:06:15 -0000	1.8
+++ cinepak.c	11 Jul 2005 22:34:34 -0000	1.9
@@ -274,6 +274,9 @@
     while ((data + 4) <= eod) {
         chunk_id   = BE_16 (&data[0]);
         chunk_size = BE_16 (&data[2]) - 4;
+        if(chunk_size < 0)
+            return -1;
+
         data      += 4;
         chunk_size = ((data + chunk_size) > eod) ? (eod - data) : chunk_size;
 





More information about the ffmpeg-cvslog mailing list