tor/src/tools
junglefowl d5a95e1ea1 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-01-25 13:13:25 -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 'bug20553_028' 2016-11-03 10:52:21 -04:00
tor-resolve.c Do not truncate too long hostnames 2017-01-25 13:13:25 -05:00