diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-10-11 03:33:34 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-10-25 21:09:14 +0200 |
commit | 7450a0215ae2242e497a334eef788b1acb581e7e (patch) | |
tree | fa84ce06ed503189d66c85382209ae2a68ae1868 | |
parent | ba10ea845f413d0dff45c8c5381b48f78155f5dc (diff) | |
download | ffmpeg-7450a0215ae2242e497a334eef788b1acb581e7e.tar.gz |
ffprobe: fix use of uninitialized pointer in av_strtok()
Fixes CID733837
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit 4334ba043e9601717af3a7ca46addfaf154d5fb6)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | ffprobe.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -1790,6 +1790,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; |