- Apr 08, 2014
-
-
Nick Mathewson authored
-
Nick Mathewson authored
-
Nick Mathewson authored
Conflicts: src/test/include.am src/test/test.c
-
-
Nick Mathewson authored
-
Nick Mathewson authored
-
Nick Mathewson authored
-
Nick Mathewson authored
-
Nick Mathewson authored
-
Nick Mathewson authored
-
Nick Mathewson authored
In C, it's a bad idea to do this: char *cp = array; char *end = array + array_len; /* .... */ if (cp + 3 >= end) { /* out of bounds */ } because cp+3 might be more than one off the end of the array, and you are only allowed to construct pointers to the array elements, and to an element one past the end. Instead you have to say if (cp - array + 3 >= array_len) { /* ... */ } or something like that. This patch fixes two of these: one in process_versions_cell introduced in 0.2.0.10-alpha, and one in process_certs_cell introduced in 0.2.3.6-alpha. These are both tracked under bug 10363. "bobnomnom" found and reported both. See also 10313. In our code, this is likely to be a problem as we used it only if we get a nasty allocator that makes allocations end close to (void*)-1. But it's best not to have to worry about such things at all, so let's just fix all of these we can find.
-
Nick Mathewson authored
-
Nick Mathewson authored
-
- Apr 07, 2014
-
-
Nick Mathewson authored
-
Nick Mathewson authored
-
-
- Apr 05, 2014
-
-
Nick Mathewson authored
-
Nick Mathewson authored
Conflicts: src/common/address.c src/or/config.c
-
Nick Mathewson authored
(Not a bugfix on any Tor release; before 10801_024, it didn't handle portless addresses at all.)
-
Nick Mathewson authored
-
- Apr 04, 2014
-
-
Nick Mathewson authored
-
Nick Mathewson authored
-
Nick Mathewson authored
-
Nick Mathewson authored
Found by testing with chutney. The old behavior was "fail an assertion", which obviously isn't optimal. Bugfix on 8b9a2cb6; bug not in any released version.
-
- Apr 03, 2014
-
-
Nick Mathewson authored
-
- Apr 02, 2014
-
-
Nick Mathewson authored
-
Nick Mathewson authored
Also rename a function to be more accurate (resolve->resolved)
-
Nick Mathewson authored
-
Nick Mathewson authored
Also, stop accepting the old kind of RESOLVED cells with no TTL fields; they haven't been sent since 0.1.1.6-alpha. This patch won't work without the fix to #10468 -- it will break DNSPorts unless they set the proper ipv4/6 flags on entry_connection_t.
-
Nick Mathewson authored
-
Nick Mathewson authored
No other changes have been made; only code has been moved.
-
Nick Mathewson authored
-
Nick Mathewson authored
-
Nick Mathewson authored
Conflicts: src/or/dirserv.c
-
Nick Mathewson authored
-
Nick Mathewson authored
-
Nick Mathewson authored
-
Nick Mathewson authored
We are searching @CONFDIR@ before $HOME, but the documentation implied otherwise. I screwed this up in f5e86bcd, when I first documented the $HOME/.torrc possibility. Fix for bug 9213; bugfix on 0.2.3.18-rc.
-
Nick Mathewson authored
Conflicts: src/or/config.c
-
- Apr 01, 2014
-
-
Nick Mathewson authored
-