- Dec 02, 2016
-
-
Nick Mathewson authored
-
Nick Mathewson authored
Coverity doesn't like it when there are paths to the end of the function where something doesn't get freed, even when those paths are only reachable on unit test failure. Fixes CID 1372899 and CID 1372900. Bug not in any released Tor.
-
- Dec 01, 2016
-
-
Nick Mathewson authored
-
Nick Mathewson authored
-
Nick Mathewson authored
-
Nick Mathewson authored
-
Nick Mathewson authored
-
Instead, refuse to start tor if any hidden service key has been used in a different hidden service anonymity mode. Fixes bug 20638; bugfix on 17178 in 0.2.9.3-alpha; reported by ahf. The original single onion service poisoning code checked poisoning state in options_validate, and poisoned in options_act. This was problematic, because the global array of hidden services had not been populated in options_validate (and there were ordrering issues with hidden service directory creation). This patch fixes this issue in rend_service_check_dir_and_add, which: * creates the directory, or checks permissions on an existing directory, then * checks the poisoning state of the directory, then * poisons the directory. When validating, only the permissions checks and the poisoning state checks are perfomed (the directory is not modified).
-
Add extra logging and extra validity checks for hidden services.
-
- Nov 23, 2016
-
-
Nick Mathewson authored
Apple is supposed to decorate their function declarations with macros to indicate which OSX version introduced them, so that you can tell the compiler that you want to build against certain versions of OSX. But they forgot to do that for clock_gettime() and getentropy(), both of which they introduced in 10.12. This patch adds a kludge to the configure.ac script where, if we detect that we are targeting OSX 10.11 or earlier, we don't even probe to see if the two offending functions are present. Closes ticket 20235.
-
- Nov 21, 2016
-
-
Nick Mathewson authored
-
- Nov 18, 2016
-
-
teor authored
Make the function flatter, and prepare for #20559. No behaviour change.
-
teor authored
Put that code in rend_service_check_dir_and_add. No behaviour change. This is a defence in depth measure against similar bugs to 20529.
-
teor authored
(We only create HS directories if we are acting on the config.) Log a BUG warning if the directories aren't present immediately before they are used, then fail.
-
Nick Mathewson authored
-
- Nov 16, 2016
-
-
Roger Dingledine authored
For relays that don't know their own address, avoid attempting a local hostname resolve for each descriptor we download. Also cut down on the number of "Success: chose address 'x.x.x.x'" log lines. Fixes bugs 20423 and 20610; bugfix on 0.2.8.1-alpha.
-
Roger Dingledine authored
no change in behavior except fewer log entries in the case where we use a cached result.
-
teor authored
-
teor authored
Fix typos: * extra '(' * use assert_log_predicate (without 3 or 4 at the end) Tidy whitespace. Wrap long lines.
-
Neel Chauhan authored
-
Neel Chauhan authored
-
Neel Chauhan authored
-
- Nov 14, 2016
-
-
- Nov 10, 2016
-
-
Nick Mathewson authored
-
- Nov 09, 2016
-
-
teor authored
Single onion services and Tor2web deliberately create long-term one-hop circuits to their intro and rend points, respectively. These log messages are intended to diagnose issue 8387, which relates to circuits hanging around forever for no reason. Fixes bug 20613; bugfix on 0.2.9.1-alpha. Reported by "pastly".
-
Nick Mathewson authored
Queue a corresponding change for torrc.minimal.in. Closes ticket 20085.
-
teor authored
Refactoring, no behaviour change.
-
- Nov 08, 2016
-
-
Nick Mathewson authored
-
Nick Mathewson authored
It's not okay to use the same varargs list twice, and apparently some windows build environments produce code here that would leave tor_asprintf() broken. Fix for bug 20560; bugfix on 0.2.2.11-alpha when tor_asprintf() was introduced.
-
Nick Mathewson authored
-
teor authored
Lower exponents mean that delays do not vary as much. This helps test networks bootstrap consistently. Bugfix on 20499.
-
- Nov 07, 2016
-
-
Nick Mathewson authored
-
Nick Mathewson authored
-
Nick Mathewson authored
-
Nick Mathewson authored
-
Nick Mathewson authored
-
teor authored
-
Nick Mathewson authored
-
Nick Mathewson authored
(Three _is_ a good number for anonymity!)
-
Nick Mathewson authored
-