Commit 36fcbc00 authored by Clément Bœsch's avatar Clément Bœsch

Merge commit '7395784b'

* commit '7395784b':
  rtmpproto: Check the return from ff_amf_read_string
Merged-by: 's avatarClément Bœsch <u@pkh.me>
parents e7329c0f 7395784b
......@@ -1953,6 +1953,13 @@ static int send_invoke_response(URLContext *s, RTMPPacket *pkt)
!strcmp(command, "publish")) {
ret = ff_amf_read_string(&gbc, filename,
sizeof(filename), &stringlen);
if (ret) {
if (ret == AVERROR(EINVAL))
av_log(s, AV_LOG_ERROR, "Unable to parse stream name - name too long?\n");
else
av_log(s, AV_LOG_ERROR, "Unable to parse stream name\n");
return ret;
}
// check with url
if (s->filename) {
pchar = strrchr(s->filename, '/');
......
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