]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
test399: verify check of too long host name
authorDaniel Stenberg <daniel@haxx.se>
Mon, 15 Aug 2022 08:05:19 +0000 (10:05 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 15 Aug 2022 08:57:16 +0000 (10:57 +0200)
tests/data/Makefile.inc
tests/data/test399 [new file with mode: 0644]

index cfa0ea38413cfb7369a668f917f4c0e3608315ba..f2359408118cb73c7d2dbef2b1946922af21cf0b 100644 (file)
@@ -66,9 +66,8 @@ test361 test362 test363 test364 test365 test366 test367 test368 test369 \
 test370 test371 test372 test373 test374 test375 test376 test378 test379 \
 test380 test381 test383 test384 test385 test386 test387 test388 test389 \
 test390 test391 test392 test393 test394 test395 test396 test397 test398 \
-\
-test400 test401 test402 test403 test404 test405 test406 test407 test408 \
-test409 test410 test411 test412 test413 test414 \
+test399 test400 test401 test402 test403 test404 test405 test406 test407 \
+test408 test409 test410 test411 test412 test413 test414 \
 \
 test430 test431 test432 test433 test434 test435 test436 \
 \
diff --git a/tests/data/test399 b/tests/data/test399
new file mode 100644 (file)
index 0000000..46d001a
--- /dev/null
@@ -0,0 +1,29 @@
+<testcase>
+<info>
+<keywords>
+URL
+</keywords>
+</info>
+
+
+#
+# Client-side
+<client>
+<server>
+http
+</server>
+ <name>
+65536 bytes long host name in URL
+ </name>
+ <command>
+http://%repeat[65536 x a]%/399
+</command>
+</client>
+
+<verify>
+# 3 == CURLE_URL_MALFORMAT
+<errorcode>
+3
+</errorcode>
+</verify>
+</testcase>