[FFmpeg-cvslog] r25697 - trunk/libavfilter/graphparser.c
stefano
subversion
Sun Nov 7 19:40:10 CET 2010
Author: stefano
Date: Sun Nov 7 19:40:09 2010
New Revision: 25697
Log:
Add missing memory check in parse_inputs(), and fix possible (yet very unlikely) crash.
Modified:
trunk/libavfilter/graphparser.c
Modified: trunk/libavfilter/graphparser.c
==============================================================================
--- trunk/libavfilter/graphparser.c Sun Nov 7 19:40:07 2010 (r25696)
+++ trunk/libavfilter/graphparser.c Sun Nov 7 19:40:09 2010 (r25697)
@@ -258,7 +258,8 @@ static int parse_inputs(const char **buf
av_free(name);
} else {
/* Not in the list, so add it as an input */
- match = av_mallocz(sizeof(AVFilterInOut));
+ if (!(match = av_mallocz(sizeof(AVFilterInOut))))
+ return AVERROR(ENOMEM);
match->name = name;
match->pad_idx = pad;
}
More information about the ffmpeg-cvslog
mailing list