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

View file

@ -109,6 +109,7 @@ test727 test728 test729 test730 test731 test732 test733 test734 test735 \
test736 test737 test738 test739 test740 test741 test742 test743 test744 \
test745 test746 test747 test748 test749 test750 test751 test752 test753 \
test754 test755 test756 test757 test758 test759 test760 test761 test762 \
test763 \
\
test780 test781 test782 test783 test784 test785 test786 test787 test788 \
test789 test790 test791 test792 test793 test794 test795 test796 test797 \

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>