git.videolan.org
/
ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
df037fe
)
ffprobe: check av_asprintf() for failure
author
Michael Niedermayer
<michaelni@gmx.at>
Fri, 12 Jun 2015 23:08:16 +0000
(
01:08
+0200)
committer
Michael Niedermayer
<michaelni@gmx.at>
Fri, 12 Jun 2015 23:45:27 +0000
(
01:45
+0200)
Found-by: Daemon404
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
ffprobe.c
patch
|
blob
|
history
diff --git
a/ffprobe.c
b/ffprobe.c
index
415836b
..
3e5324e
100644
(file)
--- a/
ffprobe.c
+++ b/
ffprobe.c
@@
-2831,6
+2831,9
@@
static int opt_show_format_entry(void *optctx, const char *opt, const char *arg)
char *buf = av_asprintf("format=%s", arg);
int ret;
+ if (!buf)
+ return AVERROR(ENOMEM);
+
av_log(NULL, AV_LOG_WARNING,
"Option '%s' is deprecated, use '-show_entries format=%s' instead\n",
opt, arg);