aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2015-01-18 00:30:40 +0100
committerMichael Niedermayer <michaelni@gmx.at>2015-01-18 00:36:31 +0100
commit1da83d52bc0f67597a6007a017f7a8118e848b71 (patch)
tree94ff6f90120411df9377ea0d235ca1959011d92b
parent564d943b2755a00df6857a86eb57101609f4b5a0 (diff)
parentb31bb39bdd7b5a53e0d282acc0f0f62b32b17acc (diff)
downloadffmpeg-1da83d52bc0f67597a6007a017f7a8118e848b71.tar.gz
Merge commit 'b31bb39bdd7b5a53e0d282acc0f0f62b32b17acc' into release/2.4
* commit 'b31bb39bdd7b5a53e0d282acc0f0f62b32b17acc': rtsp: Check a memory allocation Merged-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavformat/rtsp.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavformat/rtsp.c b/libavformat/rtsp.c
index ce4763edee..eda49c137e 100644
--- a/libavformat/rtsp.c
+++ b/libavformat/rtsp.c
@@ -1150,6 +1150,8 @@ start:
if (content_length > 0) {
/* leave some room for a trailing '\0' (useful for simple parsing) */
content = av_malloc(content_length + 1);
+ if (!content)
+ return AVERROR(ENOMEM);
ffurl_read_complete(rt->rtsp_hd, content, content_length);
content[content_length] = '\0';
}