[FFmpeg-cvslog] graphparser: Check av_get_token() memory error

Vittorio Giovara git at videolan.org
Tue Feb 17 20:58:19 CET 2015


ffmpeg | branch: master | Vittorio Giovara <vittorio.giovara at gmail.com> | Wed Feb  4 14:20:58 2015 +0000| [9d3b752fceb0f2a42cac7c2a1109b0629823c99f] | committer: Vittorio Giovara

graphparser: Check av_get_token() memory error

CC: libav-stable at libav.org
Bug-Id: CID 1267891

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=9d3b752fceb0f2a42cac7c2a1109b0629823c99f
---

 libavfilter/graphparser.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/libavfilter/graphparser.c b/libavfilter/graphparser.c
index e20dd62..d79215b 100644
--- a/libavfilter/graphparser.c
+++ b/libavfilter/graphparser.c
@@ -62,6 +62,8 @@ static char *parse_link_name(const char **buf, void *log_ctx)
     (*buf)++;
 
     name = av_get_token(buf, "]");
+    if (!name)
+        goto fail;
 
     if (!name[0]) {
         av_log(log_ctx, AV_LOG_ERROR,



More information about the ffmpeg-cvslog mailing list