mirror of
https://github.com/curl/curl.git
synced 2026-08-26 18:43:32 +03:00
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:
parent
71c9706959
commit
de86c2483f
3 changed files with 33 additions and 1 deletions
29
tests/data/test763
Normal file
29
tests/data/test763
Normal 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>
|
||||
Loading…
Add table
Add a link
Reference in a new issue