]> git.ipfire.org Git - thirdparty/tor.git/log
thirdparty/tor.git
13 years agoMerge remote-tracking branch 'origin/maint-0.2.2'
Nick Mathewson [Thu, 31 May 2012 04:07:52 +0000 (00:07 -0400)] 
Merge remote-tracking branch 'origin/maint-0.2.2'

(For bug 5969 fix)

13 years agoFix more clang format-nonliteral warnings (bug 5969)
Nick Mathewson [Wed, 30 May 2012 23:57:02 +0000 (19:57 -0400)] 
Fix more clang format-nonliteral warnings (bug 5969)

13 years agoMerge branch 'bug5604'
Nick Mathewson [Wed, 30 May 2012 21:00:36 +0000 (17:00 -0400)] 
Merge branch 'bug5604'

13 years agoAdd a little documentation for the bug5604 fix
Nick Mathewson [Wed, 30 May 2012 20:53:31 +0000 (16:53 -0400)] 
Add a little documentation for the bug5604 fix

13 years agoMerge remote-tracking branch 'public/bug5954'
Nick Mathewson [Wed, 30 May 2012 20:38:20 +0000 (16:38 -0400)] 
Merge remote-tracking branch 'public/bug5954'

13 years agoMerge remote-tracking branch 'linus/bug4369'
Nick Mathewson [Wed, 30 May 2012 17:05:15 +0000 (13:05 -0400)] 
Merge remote-tracking branch 'linus/bug4369'

13 years agoAdd __attribute__(format)s for our varargs printf/scanf wrappers
Nick Mathewson [Wed, 30 May 2012 16:14:38 +0000 (12:14 -0400)] 
Add __attribute__(format)s for our varargs printf/scanf wrappers

It turns out that if you set the third argument of
__attribute__(format) to 0, GCC and Clang will check the format
argument without expecting to find variadic arguments.  This is the
correct behavior for vsnprintf, vasprintf, and vscanf.

I'm hoping this will fix bug 5969 (a clang warning) by telling clang that
the format argument to tor_vasprintf is indeed a format string.

13 years agoFix clang 3.1 compile warning in crypto.c
Sebastian Hahn [Sun, 27 May 2012 16:28:15 +0000 (18:28 +0200)] 
Fix clang 3.1 compile warning in crypto.c

(Tweaked by nickm)

13 years agoFix a typo in changes/bug5916
Nick Mathewson [Wed, 30 May 2012 15:18:49 +0000 (11:18 -0400)] 
Fix a typo in changes/bug5916

13 years agoMerge remote-tracking branch 'public/bug5916'
Nick Mathewson [Wed, 30 May 2012 15:14:41 +0000 (11:14 -0400)] 
Merge remote-tracking branch 'public/bug5916'

13 years agoFix minor typo in warning printout.
Linus Nordberg [Tue, 29 May 2012 13:03:22 +0000 (15:03 +0200)] 
Fix minor typo in warning printout.

13 years agoNew "GETINFO dormant" to report whether Tor has gone idle
Nick Mathewson [Thu, 24 May 2012 14:42:55 +0000 (10:42 -0400)] 
New "GETINFO dormant" to report whether Tor has gone idle

Torbutton needs this; see bug 5954 and 4718.

13 years agoforward-port the 0.2.2.36 changelog
Roger Dingledine [Thu, 24 May 2012 08:12:29 +0000 (04:12 -0400)] 
forward-port the 0.2.2.36 changelog

13 years agoFix the unittest breakage introduced by a8a862c.
George Kadianakis [Fri, 18 May 2012 17:52:24 +0000 (20:52 +0300)] 
Fix the unittest breakage introduced by a8a862c.

13 years agoMerge remote-tracking branch 'asn/bug5602'
Nick Mathewson [Fri, 18 May 2012 16:36:04 +0000 (12:36 -0400)] 
Merge remote-tracking branch 'asn/bug5602'

13 years agoFix a hard-to-trigger memory leak in launch_resolve
Nick Mathewson [Fri, 18 May 2012 16:21:46 +0000 (12:21 -0400)] 
Fix a hard-to-trigger memory leak in launch_resolve

To hit this leak, you need to be a relay that gets a RESOLVE request
or an exit node getting a BEGIN or RESOLVE request.  You must either
have unconfigured (and unconfigurable) nameservers, or you must have
somehow set DisableNetwork after a network request arrived but
before you managed to process it.

So, I doubt this is reached often.  Still, a leak's a leak.  Fix for
bug 5916; bugfix on 0.2.3.9-alpha and 0.1.2.1-alpha.

13 years agoMerge remote-tracking branch 'asn/bug5646'
Nick Mathewson [Fri, 18 May 2012 16:10:40 +0000 (12:10 -0400)] 
Merge remote-tracking branch 'asn/bug5646'

13 years agoExtract data from DESTROY cell _after_ protocol violation checks.
George Kadianakis [Fri, 18 May 2012 12:22:03 +0000 (15:22 +0300)] 
Extract data from DESTROY cell _after_ protocol violation checks.

13 years agoIgnore unknown lines from managed proxies.
George Kadianakis [Fri, 18 May 2012 12:04:48 +0000 (15:04 +0300)] 
Ignore unknown lines from managed proxies.

13 years agoUse a more helpful log message when we can't find a proxy.
George Kadianakis [Fri, 18 May 2012 00:07:46 +0000 (03:07 +0300)] 
Use a more helpful log message when we can't find a proxy.

13 years agoAnother dirport/orport correction; this one from "cypherpunks"
Nick Mathewson [Wed, 16 May 2012 19:45:20 +0000 (15:45 -0400)] 
Another dirport/orport correction; this one from "cypherpunks"

13 years agoDocument that the ORPort flags apply to DirPort too. (thanks, Roger.)
Nick Mathewson [Wed, 16 May 2012 19:07:54 +0000 (15:07 -0400)] 
Document that the ORPort flags apply to DirPort too. (thanks, Roger.)

13 years ago5597: document new ORPort options
Nick Mathewson [Wed, 16 May 2012 18:54:16 +0000 (14:54 -0400)] 
5597: document new ORPort options

13 years agoClarify SessionGroup documentation. Bug 5437.
Nick Mathewson [Wed, 16 May 2012 18:43:11 +0000 (14:43 -0400)] 
Clarify SessionGroup documentation. Bug 5437.

13 years agoMerge remote-tracking branch 'origin/maint-0.2.2'
Nick Mathewson [Wed, 16 May 2012 16:20:56 +0000 (12:20 -0400)] 
Merge remote-tracking branch 'origin/maint-0.2.2'

13 years agoMake the succeeding parse_http_time tests more obviously right
Nick Mathewson [Wed, 16 May 2012 16:19:56 +0000 (12:19 -0400)] 
Make the succeeding parse_http_time tests more obviously right

(When the correct answer is given in terms of seconds since the
epoch, it's hard to be sure that it really is the right answer
just by reading the code.)

13 years agoMerge branch 'bug5346_squashed' into maint-0.2.2
Nick Mathewson [Wed, 16 May 2012 16:15:35 +0000 (12:15 -0400)] 
Merge branch 'bug5346_squashed' into maint-0.2.2

13 years agoFix month check in parse_http_time, add test
Sebastian Hahn [Fri, 9 Mar 2012 14:40:44 +0000 (15:40 +0100)] 
Fix month check in parse_http_time, add test

13 years agoRemove more dubiosity in struct tm handling. related to bug5346
Nick Mathewson [Fri, 9 Mar 2012 15:24:40 +0000 (10:24 -0500)] 
Remove more dubiosity in struct tm handling. related to bug5346

13 years agochanges file for branch bug5346
Nick Mathewson [Fri, 9 Mar 2012 02:26:48 +0000 (21:26 -0500)] 
changes file for branch bug5346

13 years agoReject an additional type of bad date in parse_http_time
Nick Mathewson [Fri, 9 Mar 2012 02:09:34 +0000 (21:09 -0500)] 
Reject an additional type of bad date in parse_http_time

13 years agoFix parse_http_time and add tests
Esteban Manchado Velázquez [Mon, 20 Feb 2012 16:40:37 +0000 (17:40 +0100)] 
Fix parse_http_time and add tests

* It seems parse_http_time wasn't parsing correctly any date with commas (RFCs
  1123 and 850). Fix that.
* It seems parse_http_time was reporting the wrong month (they start at 0, not
  1). Fix that.
* Add some tests for parse_http_time, covering all three formats.

13 years agoMerge remote-tracking branch 'public/bug5139'
Nick Mathewson [Wed, 16 May 2012 15:47:13 +0000 (11:47 -0400)] 
Merge remote-tracking branch 'public/bug5139'

13 years agoAdd changes file for bug 4108
Nick Mathewson [Wed, 16 May 2012 15:44:12 +0000 (11:44 -0400)] 
Add changes file for bug 4108

13 years agoIn connection_ap_handshake_process_socks(), mark the socks request as finished if...
Fabian Keil [Sun, 25 Sep 2011 14:32:43 +0000 (16:32 +0200)] 
In connection_ap_handshake_process_socks(), mark the socks request as finished if a reply is send after a parse error

Silences the log message:
[warn] {BUG} _connection_mark_unattached_ap(): Bug: stream (marked at connection_edge.c:2224) sending two socks replies?
after the client triggered the "Tor is not an HTTP Proxy" response.

No additional socks reply was sent, though.

13 years agoMerge remote-tracking branch 'public/bug3964'
Nick Mathewson [Wed, 16 May 2012 15:33:52 +0000 (11:33 -0400)] 
Merge remote-tracking branch 'public/bug3964'

13 years agoMerge branch 'bug5380'
Nick Mathewson [Wed, 16 May 2012 15:31:40 +0000 (11:31 -0400)] 
Merge branch 'bug5380'

13 years agoRemove over-two-months-old entry guards even while running.
Roger Dingledine [Wed, 16 May 2012 15:28:36 +0000 (11:28 -0400)] 
Remove over-two-months-old entry guards even while running.

Previously, we only did this check at startup, which could lead to
us holding a guard indefinitely, and give weird results.  Fixes bug
5380; bugfix on 0.2.1.14-rc.

(Patch by Roger; changes file and commit message by Nick)

13 years agoCorrect documentation for remove_obsolete_entry_guards.
Nick Mathewson [Wed, 16 May 2012 15:18:21 +0000 (11:18 -0400)] 
Correct documentation for remove_obsolete_entry_guards.

13 years agoMerge remote-tracking branch 'public/bug2297'
Nick Mathewson [Wed, 16 May 2012 15:14:00 +0000 (11:14 -0400)] 
Merge remote-tracking branch 'public/bug2297'

13 years agoMerge remote-tracking branch 'public/bug2822'
Nick Mathewson [Wed, 16 May 2012 15:10:09 +0000 (11:10 -0400)] 
Merge remote-tracking branch 'public/bug2822'

13 years agoMerge remote-tracking branch 'origin/maint-0.2.2'
Nick Mathewson [Wed, 16 May 2012 14:57:08 +0000 (10:57 -0400)] 
Merge remote-tracking branch 'origin/maint-0.2.2'

13 years agoCorrect the bulletproofing of routerlist_insert()
Nick Mathewson [Wed, 16 May 2012 14:51:02 +0000 (10:51 -0400)] 
Correct the bulletproofing of routerlist_insert()

The original code updated some variables, but forgot to remove a
replaced old-routerdesc from rl->old_routers.

Related to bug 1776.

13 years agoMerge remote-tracking branch 'public/bug3296'
Nick Mathewson [Wed, 16 May 2012 14:40:21 +0000 (10:40 -0400)] 
Merge remote-tracking branch 'public/bug3296'

13 years agoMerge branch 'bug5095_squashed'
Nick Mathewson [Wed, 16 May 2012 14:36:30 +0000 (10:36 -0400)] 
Merge branch 'bug5095_squashed'

13 years agoWhen ReloadTorrcOnSIGHUP=1, do non-reload activities anyway
Nick Mathewson [Wed, 11 Apr 2012 18:47:42 +0000 (14:47 -0400)] 
When ReloadTorrcOnSIGHUP=1, do non-reload activities anyway

Previously, we skipped everything that got invoked from
options_init_from_torrc.  But some of the stuff in
options_act_reversible and options_act is actually important, like
reopening the logs.

Now, a SIGHUP always makes the effects of an options_set() happen,
even though the options haven't changed.

Fix for bug 5095; bugfix on 0.2.1.9-alpha, which introduced
__ReloadTorrcOnSIGHUP.

13 years agoFix some remaining nmake/msvc build issues
Nick Mathewson [Wed, 16 May 2012 14:08:24 +0000 (10:08 -0400)] 
Fix some remaining nmake/msvc build issues

13 years agoMerge branch 'win32_winnt'
Nick Mathewson [Wed, 16 May 2012 13:56:49 +0000 (09:56 -0400)] 
Merge branch 'win32_winnt'

13 years agoMerge remote-tracking branch 'origin/maint-0.2.2'
Nick Mathewson [Tue, 15 May 2012 15:23:06 +0000 (11:23 -0400)] 
Merge remote-tracking branch 'origin/maint-0.2.2'

13 years agoClarify MaxCircuitDirtiness behavior with hidden services. Bug 5259.
Nick Mathewson [Tue, 15 May 2012 15:22:06 +0000 (11:22 -0400)] 
Clarify MaxCircuitDirtiness behavior with hidden services. Bug 5259.

13 years agoMerge remote-tracking branch 'origin/maint-0.2.2'
Nick Mathewson [Tue, 15 May 2012 14:05:19 +0000 (10:05 -0400)] 
Merge remote-tracking branch 'origin/maint-0.2.2'

13 years agoMerge branch 'bug5796_022_squashed' into maint-0.2.2
Nick Mathewson [Tue, 15 May 2012 14:04:49 +0000 (10:04 -0400)] 
Merge branch 'bug5796_022_squashed' into maint-0.2.2

13 years agoFix a crash bug on SETCIRCUITPURPOSE.
Nick Mathewson [Mon, 7 May 2012 19:22:17 +0000 (15:22 -0400)] 
Fix a crash bug on SETCIRCUITPURPOSE.

13 years agoMerge remote-tracking branch 'origin/maint-0.2.2'
Nick Mathewson [Tue, 15 May 2012 14:01:12 +0000 (10:01 -0400)] 
Merge remote-tracking branch 'origin/maint-0.2.2'

13 years agoMerge remote-tracking branch 'karsten/geoip-may2012' into maint-0.2.2
Nick Mathewson [Tue, 15 May 2012 14:00:51 +0000 (10:00 -0400)] 
Merge remote-tracking branch 'karsten/geoip-may2012' into maint-0.2.2

13 years agoMerge remote-tracking branch 'linus/task-5891'
Nick Mathewson [Tue, 15 May 2012 12:33:08 +0000 (08:33 -0400)] 
Merge remote-tracking branch 'linus/task-5891'

13 years agoClarify changes file regarding which bugs get fixed.
Linus Nordberg [Tue, 15 May 2012 09:07:01 +0000 (11:07 +0200)] 
Clarify changes file regarding which bugs get fixed.

13 years agoRename changes file.
Linus Nordberg [Tue, 15 May 2012 09:07:01 +0000 (11:07 +0200)] 
Rename changes file.

13 years agoAssert that rep_hist_format_desc_stats() returns !NULL.
Linus Nordberg [Tue, 15 May 2012 09:07:01 +0000 (11:07 +0200)] 
Assert that rep_hist_format_desc_stats() returns !NULL.

The guard against this is the test for
start_of_served_descs_stats_interval != 0 done earlier.

13 years agoFix desc stats on bridge authorities that didn't serve anything.
Karsten Loesing [Tue, 15 May 2012 10:39:08 +0000 (12:39 +0200)] 
Fix desc stats on bridge authorities that didn't serve anything.

13 years agoBump _WIN32_WINNT to 0x0501 throughout the code
Nick Mathewson [Mon, 14 May 2012 17:46:37 +0000 (13:46 -0400)] 
Bump _WIN32_WINNT to 0x0501 throughout the code

This tells the windows headers to give us definitions that didn't
exist before XP -- like the ones that we need for IPv6 support.

See bug #5861.  We didn't run into this issue with mingw, since
mingw doesn't respect _WIN32_WINNT as well as it should for some of
its definitions.

13 years agoRemove all instances of WIN32_WINNT (without leading _)
Nick Mathewson [Mon, 14 May 2012 17:36:52 +0000 (13:36 -0400)] 
Remove all instances of WIN32_WINNT (without leading _)

We started adding it in 59e2c77824840f back in 2004, 8 years and 3
days ago.  It's time to deprogram ourselves from this cargo cult.

13 years agoAdd a changes file for the misc bug5859 build issues
Nick Mathewson [Mon, 14 May 2012 17:07:47 +0000 (13:07 -0400)] 
Add a changes file for the misc bug5859 build issues

13 years agoMSVC build issue: it can't tell that tor_assert(0) aborts.
Nick Mathewson [Mon, 14 May 2012 17:07:27 +0000 (13:07 -0400)] 
MSVC build issue: it can't tell that tor_assert(0) aborts.

13 years agoMSVC build issue: make 'const' in declaration match 'const' in definition
Nick Mathewson [Mon, 14 May 2012 17:05:00 +0000 (13:05 -0400)] 
MSVC build issue: make 'const' in declaration match 'const' in definition

MSVC warns if you declare a function as having a "int foo" argument
and then implement it with a "const int foo" argument, even though
the latter "const" is not a part of the function's interface.

13 years agoMSVC build issue: we use INLINE as the one that will magically work
Nick Mathewson [Mon, 14 May 2012 17:04:37 +0000 (13:04 -0400)] 
MSVC build issue: we use INLINE as the one that will magically work

13 years agoMSVC build issue: add magic to make openssl headers in aes.c work
Nick Mathewson [Mon, 14 May 2012 17:04:13 +0000 (13:04 -0400)] 
MSVC build issue: add magic to make openssl headers in aes.c work

13 years agoBe a good git person: store nmakefiles in correct text fmt
Nick Mathewson [Mon, 14 May 2012 17:01:05 +0000 (13:01 -0400)] 
Be a good git person: store nmakefiles in correct text fmt

13 years agoRemove the unused torrc.bridge.in. Bug 5622.
Nick Mathewson [Mon, 14 May 2012 16:37:39 +0000 (12:37 -0400)] 
Remove the unused torrc.bridge.in. Bug 5622.

13 years agoAdd some MSVC stuff to gitignore
Nick Mathewson [Mon, 14 May 2012 16:35:10 +0000 (12:35 -0400)] 
Add some MSVC stuff to gitignore

13 years agoWe do not need to define _WIN32 by hand; MSVC does that for us
Nick Mathewson [Mon, 14 May 2012 16:22:51 +0000 (12:22 -0400)] 
We do not need to define _WIN32 by hand; MSVC does that for us

Bug 5858; fix on 0.2.3.12-alpha

13 years agoFix win32 compilation of 31eb73f88e8
Nick Mathewson [Mon, 14 May 2012 16:08:05 +0000 (12:08 -0400)] 
Fix win32 compilation of 31eb73f88e8

13 years agoDo not publish the "git-XXX" tag in server descriptors
Nick Mathewson [Fri, 11 May 2012 22:06:12 +0000 (18:06 -0400)] 
Do not publish the "git-XXX" tag in server descriptors

Instead, allow packagers to put a 'TOR_BUILD_TAG' field in the
server descriptor to indicate a platform-specific value, if they
need to.  (According to weasel, this was his use for the git- tag
previously.)

This is part of 2988

13 years agoCut down on the OS information we give.
Nick Mathewson [Fri, 11 May 2012 21:50:30 +0000 (17:50 -0400)] 
Cut down on the OS information we give.

For uname-based detection, we now give only the OS name (e.g.,
"Darwin", "Linux".)  For Windows, we give only the Operating System
name as inferred from dw(Major|Minor)version, (e.g., "Windows XP",
"Windows 7"), and whether the VER_NT_SERVER flag is set.

For ticket 2988.

13 years agoFix a couple of wide lines
Nick Mathewson [Fri, 11 May 2012 17:01:07 +0000 (13:01 -0400)] 
Fix a couple of wide lines

13 years agoWhen no usable exit satisfies a predicted port, stop predicting it.
Nick Mathewson [Fri, 11 May 2012 16:52:21 +0000 (12:52 -0400)] 
When no usable exit satisfies a predicted port, stop predicting it.

Fix for bug 3296.

13 years agoMerge remote-tracking branch 'asn/bug4865_take2'
Nick Mathewson [Fri, 11 May 2012 15:52:51 +0000 (11:52 -0400)] 
Merge remote-tracking branch 'asn/bug4865_take2'

13 years agoMerge remote-tracking branch 'public/bug5091'
Nick Mathewson [Fri, 11 May 2012 15:45:40 +0000 (11:45 -0400)] 
Merge remote-tracking branch 'public/bug5091'

13 years agoMerge branch 'maint-0.2.2'
Roger Dingledine [Thu, 10 May 2012 21:57:31 +0000 (17:57 -0400)] 
Merge branch 'maint-0.2.2'

13 years agofix over-wide line from f661747370
Roger Dingledine [Thu, 10 May 2012 21:46:19 +0000 (17:46 -0400)] 
fix over-wide line from f661747370

13 years agoFix O(n^2) performance when parsing a big pile of extrainfos
Nick Mathewson [Thu, 10 May 2012 21:27:16 +0000 (17:27 -0400)] 
Fix O(n^2) performance when parsing a big pile of extrainfos

We were doing an O(n) strlen in router_get_extrainfo_hash() for
every one we tried to parse.  Instead, have
router_get_extrainfo_hash() take the length of the extrainfo as an
argument, so that when it's called from
extrainfo_parse_from_string(), it doesn't do a strlen() over the
whole pile of extrainfos.

13 years agoMerge remote-tracking branch 'public/bug4591'
Nick Mathewson [Thu, 10 May 2012 19:55:12 +0000 (15:55 -0400)] 
Merge remote-tracking branch 'public/bug4591'

13 years agoMerge branch 'bug5786'
Nick Mathewson [Thu, 10 May 2012 19:44:41 +0000 (15:44 -0400)] 
Merge branch 'bug5786'

13 years agoMerge remote-tracking branch 'origin/maint-0.2.2'
Nick Mathewson [Thu, 10 May 2012 19:41:04 +0000 (15:41 -0400)] 
Merge remote-tracking branch 'origin/maint-0.2.2'

Conflicts:
src/common/util.c
src/test/test_util.c

13 years agoMerge branch 'bug5786_range_022' into maint-0.2.2
Nick Mathewson [Thu, 10 May 2012 19:38:57 +0000 (15:38 -0400)] 
Merge branch 'bug5786_range_022' into maint-0.2.2

13 years agoMerge remote-tracking branch 'asn/bug5540'
Nick Mathewson [Thu, 10 May 2012 18:24:17 +0000 (14:24 -0400)] 
Merge remote-tracking branch 'asn/bug5540'

13 years agoMerge remote-tracking branch 'linus/bug5146'
Nick Mathewson [Thu, 10 May 2012 18:07:23 +0000 (14:07 -0400)] 
Merge remote-tracking branch 'linus/bug5146'

13 years agoMerge remote-tracking branch 'origin/maint-0.2.2'
Nick Mathewson [Thu, 10 May 2012 15:50:14 +0000 (11:50 -0400)] 
Merge remote-tracking branch 'origin/maint-0.2.2'

13 years agoAdd changes/bug5760
Ravi Chandra Padmala [Thu, 10 May 2012 07:23:16 +0000 (12:53 +0530)] 
Add changes/bug5760

13 years agoAdd missing CRLFs to AUTHCHALLENGE failure replies
Ravi Chandra Padmala [Thu, 3 May 2012 21:04:26 +0000 (02:34 +0530)] 
Add missing CRLFs to AUTHCHALLENGE failure replies
Fix #5760

13 years agoFix a segfault in pt/protocol test
Nick Mathewson [Tue, 8 May 2012 13:37:43 +0000 (09:37 -0400)] 
Fix a segfault in pt/protocol test

Now that the pt code logs mp->argv[0] all over the place, we need to
be sure to set up mp->argv in our tests.

Bugfix on e603692adcd, not in any released version.

13 years agoDetect out-of-bounds bwweightscale values early in the voting process
Nick Mathewson [Mon, 7 May 2012 16:44:34 +0000 (12:44 -0400)] 
Detect out-of-bounds bwweightscale values early in the voting process

If the authorities agreed on a sufficiently bad bwweightscale value
(<=0 or == INT32_MAX), the bandwidth algorithm could make the voters
assert while computing the consensus.

Fix for bug5786; bugfix on 0.2.2.17-alpha

13 years agoCheck more thoroughly for dups when parsing networkstatus parameters
Nick Mathewson [Mon, 7 May 2012 16:38:28 +0000 (12:38 -0400)] 
Check more thoroughly for dups when parsing networkstatus parameters

See changes file for details.

Partial fix for bug 5786; fix on 0.2.2.2-alpha.

13 years agoHandle out-of-range values in tor_parse_* integer functions
Nick Mathewson [Mon, 7 May 2012 16:25:59 +0000 (12:25 -0400)] 
Handle out-of-range values in tor_parse_* integer functions

The underlying strtoX functions handle overflow by saturating and
setting errno to ERANGE.  If the min/max arguments to the
tor_parse_* functions are equal to the minimum/maximum of the
underlying type, then with the old approach, we wouldn't treat a
too-large value as genuinely broken.

Found this while looking at bug 5786; bugfix on 19da1f36 (in Tor
0.0.9), which introduced these functions.

13 years agoApply a patch from Gisle Vanem to make tor-gencert build under MSVC
Nick Mathewson [Mon, 7 May 2012 15:31:08 +0000 (11:31 -0400)] 
Apply a patch from Gisle Vanem to make tor-gencert build under MSVC

(Note: It makes sense to use tor-gencert on Windows for testing
purposes only.  If you are a directory authority operator, and you
are contemplating running tor-gencert on a Windows box in an actual
production environment, you are probably making a mistake.)

13 years agoMerge branch 'bug5645_take2'
Nick Mathewson [Mon, 7 May 2012 15:09:50 +0000 (11:09 -0400)] 
Merge branch 'bug5645_take2'

13 years agoMake a cast less const-violating; make a field size explicit.
Nick Mathewson [Mon, 7 May 2012 15:09:02 +0000 (11:09 -0400)] 
Make a cast less const-violating; make a field size explicit.

13 years agoReorder rend_mid_rendezvous() to do protocol violation checks on top.
George Kadianakis [Mon, 7 May 2012 15:05:54 +0000 (18:05 +0300)] 
Reorder rend_mid_rendezvous() to do protocol violation checks on top.

13 years agoMerge branch 'bug5070_take2'
Nick Mathewson [Mon, 7 May 2012 15:03:33 +0000 (11:03 -0400)] 
Merge branch 'bug5070_take2'

13 years agoUsing %d to printf an enum may not be by-the-standard okay.
Nick Mathewson [Mon, 7 May 2012 15:02:17 +0000 (11:02 -0400)] 
Using %d to printf an enum may not be by-the-standard okay.