aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2015-04-24 20:37:47 +0200
committerMichael Niedermayer <michaelni@gmx.at>2015-04-24 20:37:51 +0200
commit10a28e8a08d609b9f8352c221845d15cd0021675 (patch)
treeb5453be264e6a1d3ce5b9e73abade748cadaaba0
parent97f074f134048276db2f2c552e6e6b24fe0a6894 (diff)
parentb90adb0aba073f9c1b4abca852119947393ced4c (diff)
downloadffmpeg-10a28e8a08d609b9f8352c221845d15cd0021675.tar.gz
Merge commit 'b90adb0aba073f9c1b4abca852119947393ced4c'
* commit 'b90adb0aba073f9c1b4abca852119947393ced4c': rtsp: Make sure we don't write too many transport entries into a fixed-size array Merged-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavformat/rtsp.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavformat/rtsp.c b/libavformat/rtsp.c
index fe9adebf9f..b52593bd38 100644
--- a/libavformat/rtsp.c
+++ b/libavformat/rtsp.c
@@ -979,6 +979,8 @@ static void rtsp_parse_transport(RTSPMessageHeader *reply, const char *p)
p++;
reply->nb_transports++;
+ if (reply->nb_transports >= RTSP_MAX_TRANSPORTS)
+ break;
}
}