[Ffmpeg-cvslog] r7153 - in trunk/libavcodec: alac.c shorten.c

bcoudurier subversion
Wed Nov 22 02:11:29 CET 2006


Author: bcoudurier
Date: Wed Nov 22 02:11:29 2006
New Revision: 7153

Modified:
   trunk/libavcodec/alac.c
   trunk/libavcodec/shorten.c

Log:
fix some potential security issues, patch by Matthias Hopf, mat at mshopf dot de

Modified: trunk/libavcodec/alac.c
==============================================================================
--- trunk/libavcodec/alac.c	(original)
+++ trunk/libavcodec/alac.c	Wed Nov 22 02:11:29 2006
@@ -472,7 +472,10 @@
                 ALAC_EXTRADATA_SIZE);
             return input_buffer_size;
         }
-        alac_set_info(alac);
+        if (alac_set_info(alac)) {
+            av_log(avctx, AV_LOG_ERROR, "alac: set_info failed\n");
+            return input_buffer_size;
+        }
         alac->context_initialized = 1;
     }
 

Modified: trunk/libavcodec/shorten.c
==============================================================================
--- trunk/libavcodec/shorten.c	(original)
+++ trunk/libavcodec/shorten.c	Wed Nov 22 02:11:29 2006
@@ -335,7 +335,8 @@
         }
         s->nwrap = FFMAX(NWRAP, maxnlpc);
 
-        allocate_buffers(s);
+        if (allocate_buffers(s))
+            return -1;
 
         init_offset(s);
 




More information about the ffmpeg-cvslog mailing list