[SCM] libav/experimental: Add missing check to av_get_token().
siretart at users.alioth.debian.org
siretart at users.alioth.debian.org
Sun Jun 30 17:08:36 UTC 2013
The following commit has been merged in the experimental branch:
commit 5ba949fe904e7beed2d601ba3664f8da247be703
Author: Stefano Sabatini <stefano.sabatini-lala at poste.it>
Date: Sun Jun 13 09:27:09 2010 +0000
Add missing check to av_get_token().
Originally committed as revision 23594 to svn://svn.ffmpeg.org/ffmpeg/trunk
diff --git a/libavfilter/parseutils.c b/libavfilter/parseutils.c
index 9ac61d8..53f03dc 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)) {
--
Libav/FFmpeg packaging
More information about the pkg-multimedia-commits
mailing list