From 4334ba043e9601717af3a7ca46addfaf154d5fb6 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Thu, 11 Oct 2012 03:33:34 +0200 Subject: [PATCH] ffprobe: fix use of uninitialized pointer in av_strtok() Fixes CID733837 Signed-off-by: Michael Niedermayer --- ffprobe.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ffprobe.c b/ffprobe.c index 2187ce2652..1cf6c42a11 100644 --- a/ffprobe.c +++ b/ffprobe.c @@ -2143,6 +2143,10 @@ int main(int argc, char **argv) if (!print_format) print_format = av_strdup("default"); + if (!print_format) { + ret = AVERROR(ENOMEM); + goto end; + } w_name = av_strtok(print_format, "=", &buf); w_args = buf;