[FFmpeg-cvslog] r12262 - trunk/libavformat/mov.c

bcoudurier subversion
Wed Feb 27 10:30:56 CET 2008


Author: bcoudurier
Date: Wed Feb 27 10:30:56 2008
New Revision: 12262

Log:
return error if malloc fails

Modified:
   trunk/libavformat/mov.c

Modified: trunk/libavformat/mov.c
==============================================================================
--- trunk/libavformat/mov.c	(original)
+++ trunk/libavformat/mov.c	Wed Feb 27 10:30:56 2008
@@ -255,6 +255,8 @@ static int mov_read_dref(MOVContext *c, 
                     len += 1;
                 if (type == 2) { // absolute path
                     dref->path = av_mallocz(len+1);
+                    if (!dref->path)
+                        return AVERROR(ENOMEM);
                     get_buffer(pb, dref->path, len);
                     if (len > volume_len && !strncmp(dref->path, volume, volume_len)) {
                         len -= volume_len;




More information about the ffmpeg-cvslog mailing list