Browse Source

rtsp: Make sure we don't write too many transport entries into a fixed-size array

CC: libav-stable@libav.org
Signed-off-by: Martin Storsjö <martin@martin.st>
tags/n2.7
Martin Storsjö 10 years ago
parent
commit
b90adb0aba
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      libavformat/rtsp.c

+ 2
- 0
libavformat/rtsp.c View File

@@ -972,6 +972,8 @@ static void rtsp_parse_transport(RTSPMessageHeader *reply, const char *p)
p++;

reply->nb_transports++;
if (reply->nb_transports >= RTSP_MAX_TRANSPORTS)
break;
}
}



Loading…
Cancel
Save