aboutsummaryrefslogtreecommitdiffstats
path: root/ffprobe.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-10-11 03:33:34 +0200
committerMichael Niedermayer <michaelni@gmx.at>2012-10-11 03:37:43 +0200
commit4334ba043e9601717af3a7ca46addfaf154d5fb6 (patch)
tree4f7d8963249e6851a48323aa476238736d7788f5 /ffprobe.c
parentbdcff5af7f08316a647f464ac90e7bb594551622 (diff)
downloadffmpeg-4334ba043e9601717af3a7ca46addfaf154d5fb6.tar.gz
ffprobe: fix use of uninitialized pointer in av_strtok()
Fixes CID733837 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'ffprobe.c')
-rw-r--r--ffprobe.c4
1 files changed, 4 insertions, 0 deletions
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;