tor/src/tools
junglefowl c4920a60c6 Do not truncate too long hostnames
If a hostname is supplied to tor-resolve which is too long, it will be
silently truncated, resulting in a different hostname lookup:

$ tor-resolve $(python -c 'print("google.com" + "m" * 256)')

If tor-resolve uses SOCKS5, the length is stored in an unsigned char,
which overflows in this case and leads to the hostname "google.com".
As this one is a valid hostname, it returns an address instead of giving
an error due to the invalid supplied hostname.
2017-02-07 09:27:00 -05:00
..
tor-fw-helper Update tor-fw-helper URL 2015-08-05 15:07:13 -04:00
Makefile.nmake Add a missing part of bug 7311's makefile.nmake tweaks 2013-01-17 10:01:22 -05:00
include.am Fix inconsistent tab/space mixing in include.am files. 2016-05-12 13:06:58 -04:00
tor-checkkey.c Bug19499: Fix GCC warnings when building against bleeding edge OpenSSL. 2016-06-24 22:20:41 +00:00
tor-gencert.c Merge branch 'maint-0.2.8' into maint-0.2.9 2016-11-03 15:41:04 -04:00
tor-resolve.c Do not truncate too long hostnames 2017-02-07 09:27:00 -05:00