mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-13 21:28:01 +02:00
ffprobe: fix use of uninitialized pointer in av_strtok()
Fixes CID733837 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
bdcff5af7f
commit
4334ba043e
@ -2143,6 +2143,10 @@ int main(int argc, char **argv)
|
|||||||
|
|
||||||
if (!print_format)
|
if (!print_format)
|
||||||
print_format = av_strdup("default");
|
print_format = av_strdup("default");
|
||||||
|
if (!print_format) {
|
||||||
|
ret = AVERROR(ENOMEM);
|
||||||
|
goto end;
|
||||||
|
}
|
||||||
w_name = av_strtok(print_format, "=", &buf);
|
w_name = av_strtok(print_format, "=", &buf);
|
||||||
w_args = buf;
|
w_args = buf;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user