diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-10-11 03:33:34 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-10-11 03:37:43 +0200 |
commit | 4334ba043e9601717af3a7ca46addfaf154d5fb6 (patch) | |
tree | 4f7d8963249e6851a48323aa476238736d7788f5 | |
parent | bdcff5af7f08316a647f464ac90e7bb594551622 (diff) | |
download | ffmpeg-4334ba043e9601717af3a7ca46addfaf154d5fb6.tar.gz |
ffprobe: fix use of uninitialized pointer in av_strtok()
Fixes CID733837
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | ffprobe.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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; |