From 5ba949fe904e7beed2d601ba3664f8da247be703 Mon Sep 17 00:00:00 2001 From: Stefano Sabatini Date: Sun, 13 Jun 2010 09:27:09 +0000 Subject: [PATCH] Add missing check to av_get_token(). Originally committed as revision 23594 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavfilter/parseutils.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavfilter/parseutils.c b/libavfilter/parseutils.c index 9ac61d8073..53f03dccc1 100644 --- a/libavfilter/parseutils.c +++ b/libavfilter/parseutils.c @@ -34,6 +34,7 @@ char *av_get_token(const char **buf, const char *term) char *out = av_malloc(strlen(*buf) + 1); char *ret= out, *end= out; const char *p = *buf; + if (!out) return NULL; p += strspn(p, WHITESPACES); while(*p && !strspn(p, term)) {