From 232dffcf2422baefa66617fdae2fb20085a8e386 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Sun, 8 Oct 2017 17:15:44 +0200 Subject: RTSP: avoid integer overflow on funny RTSP response ... like a very large non-existing RTSP version number. Added test 577 to verify. Detected by OSS-fuzz. Closes #1969 --- tests/data/test577 | 55 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 tests/data/test577 (limited to 'tests/data/test577') diff --git a/tests/data/test577 b/tests/data/test577 new file mode 100644 index 000000000..525549264 --- /dev/null +++ b/tests/data/test577 @@ -0,0 +1,55 @@ + + +#Informational + + +RTSP +OPTIONS + + + +# Server-side + + +RTSP/1.1234567 200 OK +Server: RTSPD/libcurl-test +CSeq: 1 +Public: DESCRIBE, OPTIONS, SETUP, TEARDOWN, PLAY, PAUSE +Curl-Private: swsclose + + + + + +# Client-Side + + +rtsp + + +lib567 + + + +Funny RTSP version in response + + +rtsp://%HOSTIP:%RTSPPORT/577 + + + + + +OPTIONS rtsp://%HOSTIP:%RTSPPORT/577 RTSP/1.0 +CSeq: 1 +User-Agent: test567 +Test-Number: 567 + + +# 8 == CURLE_WEIRD_SERVER_REPLY + +8 + + + + -- cgit v1.2.3