mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-12-13 18:40:03 +01:00
rtsp: Make sure we don't write too many transport entries into a fixed-size array
(cherry picked from commit b90adb0aba)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
committed by
Michael Niedermayer
parent
ced57c6ef3
commit
fd1be2bd87
@@ -821,6 +821,8 @@ static void rtsp_parse_transport(RTSPMessageHeader *reply, const char *p)
|
|||||||
p++;
|
p++;
|
||||||
|
|
||||||
reply->nb_transports++;
|
reply->nb_transports++;
|
||||||
|
if (reply->nb_transports >= RTSP_MAX_TRANSPORTS)
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user