rtsp: Make sure we don't write too many transport entries into a fixed-size array
(cherry picked from commit b90adb0aba073f9c1b4abca852119947393ced4c) Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
4c2a1e673b
commit
94a3d2e49c
@ -964,6 +964,8 @@ static void rtsp_parse_transport(RTSPMessageHeader *reply, const char *p)
|
||||
p++;
|
||||
|
||||
reply->nb_transports++;
|
||||
if (reply->nb_transports >= RTSP_MAX_TRANSPORTS)
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user