aboutsummaryrefslogtreecommitdiff
path: root/tests/data/test577
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2017-10-08 17:15:44 +0200
committerDaniel Stenberg <daniel@haxx.se>2017-10-09 00:41:48 +0200
commit232dffcf2422baefa66617fdae2fb20085a8e386 (patch)
tree7c066be3e8b10c7cf9167617ac9b66e7feffaf65 /tests/data/test577
parenteb04636d68b078ac86558147ca124676f32dc285 (diff)
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
Diffstat (limited to 'tests/data/test577')
-rw-r--r--tests/data/test57755
1 files changed, 55 insertions, 0 deletions
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 @@
+<testcase>
+
+#Informational
+<info>
+<keywords>
+RTSP
+OPTIONS
+</keywords>
+</info>
+
+# Server-side
+<reply>
+<data>
+RTSP/1.1234567 200 OK
+Server: RTSPD/libcurl-test
+CSeq: 1
+Public: DESCRIBE, OPTIONS, SETUP, TEARDOWN, PLAY, PAUSE
+Curl-Private: swsclose
+</data>
+<datacheck>
+</datacheck>
+</reply>
+
+# Client-Side
+<client>
+<server>
+rtsp
+</server>
+<tool>
+lib567
+</tool>
+
+<name>
+Funny RTSP version in response
+</name>
+<command>
+rtsp://%HOSTIP:%RTSPPORT/577
+</command>
+</client>
+
+<verify>
+<protocol>
+OPTIONS rtsp://%HOSTIP:%RTSPPORT/577 RTSP/1.0
+CSeq: 1
+User-Agent: test567
+Test-Number: 567
+
+</protocol>
+# 8 == CURLE_WEIRD_SERVER_REPLY
+<errorcode>
+8
+</errorcode>
+</verify>
+
+</testcase>