]> granicus.if.org Git - curl/commit
url: don't use bad offset in tld_check_name to show error
authorJay Satiro <raysatiro@yahoo.com>
Sat, 26 Mar 2016 18:41:35 +0000 (14:41 -0400)
committerJay Satiro <raysatiro@yahoo.com>
Sat, 26 Mar 2016 18:41:35 +0000 (14:41 -0400)
commit3d144ab99bed3ad9af1179c50f1df6334350aa98
tree39824259e878541f30ecdcb51ff56ca84ef77fbe
parent4adee1947c8016359fb7ae01dd3998166ea0101a
url: don't use bad offset in tld_check_name to show error

libidn's tld_check_lz returns an error offset of the first character
that it failed to process, however that offset is not a byte offset and
may not even be in the locale encoding therefore we can't use it to show
the user the character that failed to process.

Bug: https://github.com/curl/curl/issues/731
Reported-by: Karlson2k
lib/url.c