test399: verify check of too long host name

This commit is contained in:
Daniel Stenberg 2022-08-15 10:05:19 +02:00
parent 657101ec0c
commit 88f1f11e01
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2
2 changed files with 31 additions and 3 deletions

View 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 \
\

29
tests/data/test399 Normal file
View File

@ -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>