test763: verify IDN hostname with zero width characters only

Bonus: fix memory leak in exit path from 967a626af4

Closes #18465
This commit is contained in:
Daniel Stenberg 2025-09-03 12:47:07 +02:00
parent 71c9706959
commit de86c2483f
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
3 changed files with 33 additions and 1 deletions

29
tests/data/test763 Normal file
View file

@ -0,0 +1,29 @@
<testcase>
<info>
<keywords>
IDN
</keywords>
</info>
<client>
<features>
IDN
!AppleIDN
</features>
<name>
Unicode hostname ending up in a blank name
</name>
# e2 80 8b - ZERO WIDTH SPACE
# e2 80 8c - ZERO WIDTH NON-JOINER
<command>
%hex['%e2%80%8b%e2%80%8c']hex%
</command>
</client>
<verify>
# curl: (3) URL using bad/illegal format or missing URL
<errorcode>
3
</errorcode>
</verify>
</testcase>