diff options
author | Vittorio Giovara <vittorio.giovara@gmail.com> | 2014-12-17 14:53:45 +0100 |
---|---|---|
committer | Vittorio Giovara <vittorio.giovara@gmail.com> | 2014-12-18 23:27:14 +0100 |
commit | b1306823d0b3ae998c8e10ad832004eb13bdd93e (patch) | |
tree | 2e7642dc896d7f19682f50b913ab5b5be57b83ac /avprobe.c | |
parent | 9745f19ffc9031ce480e43d7cf1053b58100d70f (diff) | |
download | ffmpeg-b1306823d0b3ae998c8e10ad832004eb13bdd93e.tar.gz |
check memory errors from av_strdup()
Diffstat (limited to 'avprobe.c')
-rw-r--r-- | avprobe.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -302,6 +302,8 @@ static void old_print_object_header(const char *name) return; str = p = av_strdup(name); + if (!str) + return; while (*p) { *p = av_toupper(*p); p++; @@ -319,6 +321,8 @@ static void old_print_object_footer(const char *name) return; str = p = av_strdup(name); + if (!str) + return; while (*p) { *p = av_toupper(*p); p++; |