Commit 1da83d52 authored by Michael Niedermayer's avatar Michael Niedermayer

Merge commit 'b31bb39b' into release/2.4

* commit 'b31bb39b':
  rtsp: Check a memory allocation
Merged-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parents 564d943b b31bb39b
......@@ -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';
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment