]> git.ipfire.org Git - thirdparty/tor.git/log
thirdparty/tor.git
9 years agoNever vote for an ed key twice.
Nick Mathewson [Mon, 22 Feb 2016 16:43:59 +0000 (11:43 -0500)] 
Never vote for an ed key twice.

When generating a vote, and we have two routerinfos with the same ed
key, omit the one published earlier.

This was supposed to have been solved by key pinning, but when I
made key pinning optional, I didn't realize that this would jump up
and bite us.  It is part of bug 18318, and the root cause of 17668.

9 years agoFix log message subjects in networkstatus_parse_vote_from_string()
Nick Mathewson [Mon, 22 Feb 2016 15:59:27 +0000 (10:59 -0500)] 
Fix log message subjects in networkstatus_parse_vote_from_string()

Some of these messages called the thing being parsed a "vote" whether
it is a vote or a consensus.

Fixes bug 18368.

9 years agoDocument dircollate.c (and remove an unused global)
Nick Mathewson [Mon, 22 Feb 2016 15:39:42 +0000 (10:39 -0500)] 
Document dircollate.c (and remove an unused global)

9 years agoEnable ed25519 collator in voting.
Nick Mathewson [Mon, 22 Feb 2016 15:07:42 +0000 (10:07 -0500)] 
Enable ed25519 collator in voting.

Previously, I had left in some debugging code with /*XXX*/ after it,
which nobody noticed.  Live and learn!  Next time I will use /*XXX
DO NOT COMMIT*/ or something.

We need to define a new consensus method for this; consensus method
21 shouldn't actually be used.

Fixes bug 17702; bugfix on 0.2.7.2-alpha.

9 years agoMerge branch 'maint-0.2.6' into maint-0.2.7
Nick Mathewson [Thu, 11 Feb 2016 18:01:46 +0000 (13:01 -0500)] 
Merge branch 'maint-0.2.6' into maint-0.2.7

9 years agoMerge branch 'maint-0.2.5' into maint-0.2.6
Nick Mathewson [Thu, 11 Feb 2016 17:57:28 +0000 (12:57 -0500)] 
Merge branch 'maint-0.2.5' into maint-0.2.6

9 years agoMerge branch 'maint-0.2.4' into maint-0.2.5
Nick Mathewson [Thu, 11 Feb 2016 17:55:40 +0000 (12:55 -0500)] 
Merge branch 'maint-0.2.4' into maint-0.2.5

9 years agoMerge branch 'bug18162_024' into maint-0.2.4
Nick Mathewson [Thu, 11 Feb 2016 17:55:25 +0000 (12:55 -0500)] 
Merge branch 'bug18162_024' into maint-0.2.4

9 years agoMake ensure_capacity a bit more pedantically correct
Nick Mathewson [Thu, 11 Feb 2016 17:54:52 +0000 (12:54 -0500)] 
Make ensure_capacity a bit more pedantically correct

Issues noted by cypherpunks on #18162

9 years agoMerge branch 'maint-0.2.6' into maint-0.2.7
Nick Mathewson [Fri, 5 Feb 2016 13:13:35 +0000 (08:13 -0500)] 
Merge branch 'maint-0.2.6' into maint-0.2.7

9 years agoMerge branch 'maint-0.2.5' into maint-0.2.6
Nick Mathewson [Fri, 5 Feb 2016 13:13:24 +0000 (08:13 -0500)] 
Merge branch 'maint-0.2.5' into maint-0.2.6

9 years agoMerge branch 'maint-0.2.4' into maint-0.2.5
Nick Mathewson [Fri, 5 Feb 2016 13:13:13 +0000 (08:13 -0500)] 
Merge branch 'maint-0.2.4' into maint-0.2.5

9 years agoUpdate geoip and geoip6 to the February 2 2016 database.
Karsten Loesing [Thu, 4 Feb 2016 07:53:24 +0000 (08:53 +0100)] 
Update geoip and geoip6 to the February 2 2016 database.

9 years agoTry to fix address tests on FreeBSD
Nick Mathewson [Mon, 1 Feb 2016 14:38:31 +0000 (09:38 -0500)] 
Try to fix address tests on FreeBSD

In jails, there is not always a localhost.

Bugfix not on any released Tor.

9 years agoTry to fix formatting in manpage
Nick Mathewson [Thu, 28 Jan 2016 16:52:48 +0000 (11:52 -0500)] 
Try to fix formatting in manpage

9 years agoAdd descriptions for --keygen to the manpage
Nick Mathewson [Thu, 28 Jan 2016 15:19:29 +0000 (10:19 -0500)] 
Add descriptions for --keygen to the manpage

Based on text from s7r

9 years agoavoid integer overflow in and around smartlist_ensure_capacity.
Nick Mathewson [Wed, 27 Jan 2016 17:26:02 +0000 (12:26 -0500)] 
avoid integer overflow in and around smartlist_ensure_capacity.

This closes bug 18162; bugfix on a45b1315909c9, which fixed a related
issue long ago.

In addition to the #18162 issues, this fixes a signed integer overflow
in smarltist_add_all(), which is probably not so great either.

9 years agoMerge branch 'maint-0.2.6' into maint-0.2.7
Nick Mathewson [Tue, 19 Jan 2016 13:30:39 +0000 (08:30 -0500)] 
Merge branch 'maint-0.2.6' into maint-0.2.7

9 years agoRefine the memwipe() arguments check for 18089 a little more.
Nick Mathewson [Tue, 19 Jan 2016 13:28:58 +0000 (08:28 -0500)] 
Refine the memwipe() arguments check for 18089 a little more.

We still silently ignore
     memwipe(NULL, ch, 0);
and
     memwipe(ptr, ch, 0);  /* for ptr != NULL */

But we now assert on:
     memwipe(NULL, ch, 30);

9 years agoMerge branch 'maint-0.2.6' into maint-0.2.7
Nick Mathewson [Tue, 19 Jan 2016 01:00:16 +0000 (20:00 -0500)] 
Merge branch 'maint-0.2.6' into maint-0.2.7

9 years agoMake memwipe() do nothing when passed a NULL pointer or zero size
teor (Tim Wilson-Brown) [Tue, 19 Jan 2016 00:22:58 +0000 (11:22 +1100)] 
Make memwipe() do nothing when passed a NULL pointer or zero size

Check size argument to memwipe() for underflow.

Closes bug #18089. Reported by "gk", patch by "teor".
Bugfix on 0.2.3.25 and 0.2.4.6-alpha (#7352),
commit 49dd5ef3 on 7 Nov 2012.

9 years agoMerge remote-tracking branch 'teor/bug18050' into maint-0.2.7
Nick Mathewson [Tue, 19 Jan 2016 00:51:57 +0000 (19:51 -0500)] 
Merge remote-tracking branch 'teor/bug18050' into maint-0.2.7

9 years agoCheck ORPort and DirPort reachability before publishing a relay descriptor
teor (Tim Wilson-Brown) [Mon, 18 Jan 2016 03:00:29 +0000 (14:00 +1100)] 
Check ORPort and DirPort reachability before publishing a relay descriptor

Otherwise, relays publish a descriptor with DirPort 0 when the DirPort
reachability test takes longer than the ORPort reachability test.

Closes bug #18050. Reported by "starlight", patch by "teor".
Bugfix on 0.1.0.1-rc, commit a1f1fa6ab on 27 Feb 2005.

9 years agoMerge branch 'maint-0.2.6' into maint-0.2.7
Nick Mathewson [Thu, 7 Jan 2016 17:43:12 +0000 (09:43 -0800)] 
Merge branch 'maint-0.2.6' into maint-0.2.7

 Conflicts:
src/or/config.c

9 years agoMerge branch 'maint-0.2.5' into maint-0.2.6
Nick Mathewson [Thu, 7 Jan 2016 17:41:36 +0000 (09:41 -0800)] 
Merge branch 'maint-0.2.5' into maint-0.2.6

9 years agoMerge branch 'maint-0.2.4' into maint-0.2.5
Nick Mathewson [Thu, 7 Jan 2016 17:40:23 +0000 (09:40 -0800)] 
Merge branch 'maint-0.2.4' into maint-0.2.5

Conflicts:
src/or/config.c

9 years agoUpdate dannenberg's V3 authority identity fingerprint
teor (Tim Wilson-Brown) [Sun, 20 Dec 2015 23:40:10 +0000 (10:40 +1100)] 
Update dannenberg's V3 authority identity fingerprint

This new identity key was changed on 18 November 2015.

9 years agoMerge branch 'maint-0.2.6' into maint-0.2.7
Nick Mathewson [Thu, 7 Jan 2016 17:14:15 +0000 (09:14 -0800)] 
Merge branch 'maint-0.2.6' into maint-0.2.7

9 years agoMerge branch 'maint-0.2.5' into maint-0.2.6
Nick Mathewson [Thu, 7 Jan 2016 17:14:05 +0000 (09:14 -0800)] 
Merge branch 'maint-0.2.5' into maint-0.2.6

9 years agoMerge branch 'maint-0.2.4' into maint-0.2.5
Nick Mathewson [Thu, 7 Jan 2016 17:13:54 +0000 (09:13 -0800)] 
Merge branch 'maint-0.2.4' into maint-0.2.5

9 years agoUpdate geoip and geoip6 to the January 5 2016 database.
Karsten Loesing [Thu, 7 Jan 2016 10:10:37 +0000 (11:10 +0100)] 
Update geoip and geoip6 to the January 5 2016 database.

9 years agoRemove extraneous #endif in configure.ac
Nick Mathewson [Wed, 23 Dec 2015 01:37:02 +0000 (20:37 -0500)] 
Remove extraneous #endif in configure.ac

This will fix the detection of struct in6_addr.s6_addr32 and others

Found and fixed by cypherpunks; bug 17923; bugfix on f948caad7b5bd

9 years agoAdd some more ed25519 key files to the seccomp sandbox list
Nick Mathewson [Thu, 17 Dec 2015 19:56:24 +0000 (14:56 -0500)] 
Add some more ed25519 key files to the seccomp sandbox list

Fixes bug 17675; bugfix on 0.2.7.3-alpha.

9 years agoDon't call pthread_condattr_setclock() unless it exists
Nick Mathewson [Wed, 16 Dec 2015 14:23:44 +0000 (09:23 -0500)] 
Don't call pthread_condattr_setclock() unless it exists

Fixes bug 17819; bugfix on 0.2.6.3-alpha (specifically, d684dbb0).

9 years ago... and fix another backtrace_symbols_fd call in sandbox.c
Nick Mathewson [Wed, 16 Dec 2015 14:05:49 +0000 (09:05 -0500)] 
... and fix another backtrace_symbols_fd call in sandbox.c

9 years ago... and fix the linux backtrace_symbols{,_fd} calls
Nick Mathewson [Wed, 16 Dec 2015 13:20:53 +0000 (08:20 -0500)] 
... and fix the linux backtrace_symbols{,_fd} calls

10 years agoFix backtrace compilation on FreeBSD
cypherpunks [Tue, 15 Dec 2015 15:30:04 +0000 (16:30 +0100)] 
Fix backtrace compilation on FreeBSD

On FreeBSD backtrace(3) uses size_t instead of int (as glibc does). This
causes integer precision loss errors when we used int to store its
results.

The issue is fixed by using size_t to store the results of backtrace(3).

The manual page of glibc does not mention that backtrace(3) returns
negative values. Therefore, no unsigned integer wrapping occurs when its
result is stored in an unsigned data type.

10 years agoUse TESTS_ENVIRONMENT for older Automake versions
cypherpunks [Mon, 14 Dec 2015 20:03:10 +0000 (21:03 +0100)] 
Use TESTS_ENVIRONMENT for older Automake versions

The AM_TESTS_ENVIRONMENT variable is available since Automake v1.12 but
some distributions have older Automake versions so we use
TESTS_ENVIRONMENT.

10 years agoAdd changes file for 17818
cypherpunks [Fri, 11 Dec 2015 23:06:41 +0000 (00:06 +0100)] 
Add changes file for 17818

10 years agoUse variables instead of substitutions
cypherpunks [Fri, 11 Dec 2015 22:51:17 +0000 (23:51 +0100)] 
Use variables instead of substitutions

Using variables removes the ambiguity about when to use variables and
when to use substitutions. Variables always work. Substitutions only
work when Autoconf knows about them which is not always the case.

The variables are also placed between quotes to ensures spaces in the
variables are handled properly.

10 years agoOnly setup environment variables for tests
cypherpunks [Fri, 25 Sep 2015 14:39:11 +0000 (16:39 +0200)] 
Only setup environment variables for tests

Using the AM_TESTS_ENVIRONMENT variable ensures the environment
variables are only set during test execution and not during the
compilation phase.

10 years agobump to 0.2.7.6-dev
Nick Mathewson [Thu, 10 Dec 2015 19:24:55 +0000 (14:24 -0500)] 
bump to 0.2.7.6-dev

10 years agobump maint version to 0.2.7.6
Nick Mathewson [Thu, 10 Dec 2015 15:04:59 +0000 (10:04 -0500)] 
bump maint version to 0.2.7.6

10 years agoMerge branch 'maint-0.2.6' into maint-0.2.7
Nick Mathewson [Tue, 8 Dec 2015 15:23:41 +0000 (10:23 -0500)] 
Merge branch 'maint-0.2.6' into maint-0.2.7

10 years agoMerge branch 'maint-0.2.5' into maint-0.2.6
Nick Mathewson [Tue, 8 Dec 2015 15:20:21 +0000 (10:20 -0500)] 
Merge branch 'maint-0.2.5' into maint-0.2.6

10 years agoMerge branch 'maint-0.2.4' into maint-0.2.5
Nick Mathewson [Tue, 8 Dec 2015 15:20:14 +0000 (10:20 -0500)] 
Merge branch 'maint-0.2.4' into maint-0.2.5

10 years agoMerge branch 'bug17772_024' into maint-0.2.4
Nick Mathewson [Tue, 8 Dec 2015 15:18:31 +0000 (10:18 -0500)] 
Merge branch 'bug17772_024' into maint-0.2.4

10 years agoEnsure node is a guard candidate when picking a directory guard
Arlo Breault [Tue, 8 Dec 2015 04:28:26 +0000 (20:28 -0800)] 
Ensure node is a guard candidate when picking a directory guard

10 years agoMerge branch 'maint-0.2.6' into maint-0.2.7
Nick Mathewson [Tue, 8 Dec 2015 14:43:42 +0000 (09:43 -0500)] 
Merge branch 'maint-0.2.6' into maint-0.2.7

10 years agoMerge branch 'maint-0.2.5' into maint-0.2.6
Nick Mathewson [Tue, 8 Dec 2015 14:43:25 +0000 (09:43 -0500)] 
Merge branch 'maint-0.2.5' into maint-0.2.6

10 years agoMerge branch 'maint-0.2.4' into maint-0.2.5
Nick Mathewson [Tue, 8 Dec 2015 14:38:48 +0000 (09:38 -0500)] 
Merge branch 'maint-0.2.4' into maint-0.2.5

10 years agoFix a compilation warning introduced by clang 3.6
Nick Mathewson [Tue, 8 Dec 2015 14:37:05 +0000 (09:37 -0500)] 
Fix a compilation warning introduced by clang 3.6

There was a dead check when we made sure that an array member of a
struct was non-NULL.  Tor has been doing this check since at least
0.2.3, maybe earlier.

Fixes bug 17781.

10 years agoFormat IPv6 policies correctly.
Nick Mathewson [Tue, 8 Dec 2015 13:42:52 +0000 (08:42 -0500)] 
Format IPv6 policies correctly.

Previously we'd suppressed the mask-bits field in the output when
formatting a policy if it was >=32.  But that should be a >=128 if
we're talking about IPv6.

Since we didn't put these in descriptors, this bug affects only log
messages and controller outputs.

Fix for bug 16056.  The code in question was new in 0.2.0, but the
bug was introduced in 0.2.4 when we started supporting IPv6 exits.

10 years agoMerge branch 'maint-0.2.6' into maint-0.2.7
Nick Mathewson [Mon, 7 Dec 2015 15:11:21 +0000 (10:11 -0500)] 
Merge branch 'maint-0.2.6' into maint-0.2.7

10 years agoMerge branch 'maint-0.2.5' into maint-0.2.6
Nick Mathewson [Mon, 7 Dec 2015 15:10:44 +0000 (10:10 -0500)] 
Merge branch 'maint-0.2.5' into maint-0.2.6

10 years agoMerge branch 'maint-0.2.4' into maint-0.2.5
Nick Mathewson [Mon, 7 Dec 2015 15:10:21 +0000 (10:10 -0500)] 
Merge branch 'maint-0.2.4' into maint-0.2.5

10 years agoUpdate geoip and geoip6 to the December 1 2015 database.
Karsten Loesing [Sat, 5 Dec 2015 16:02:59 +0000 (17:02 +0100)] 
Update geoip and geoip6 to the December 1 2015 database.

10 years agoAdd changes file for 17722
cypherpunks [Sun, 29 Nov 2015 20:07:34 +0000 (21:07 +0100)] 
Add changes file for 17722

10 years agoFix undefined behavior caused by memory overlap
cypherpunks [Fri, 17 Jul 2015 09:53:12 +0000 (11:53 +0200)] 
Fix undefined behavior caused by memory overlap

The tor_cert_get_checkable_sig function uses the signing key included in
the certificate (if available) when a separate public key is not given.

When the signature is valid, the tor_cert_checksig function copies the
public key from the checkable structure to the public key field of the
certificate signing key.

In situations where the separate public key is not given but the
certificate includes a signing key, the source and destination pointers
in the copy operation are equal and invoke undefined behavior.

Undefined behaviour is avoided by ensuring both pointers are different.

10 years agoInclude netinet/in.h (if detected) in check for net/pfvar.h
Nick Mathewson [Wed, 25 Nov 2015 14:27:52 +0000 (09:27 -0500)] 
Include netinet/in.h (if detected) in check for net/pfvar.h

Patch from rubiate; fixes bug 17551.

10 years agoFix: use the right list in find_expiring_intro_point()
David Goulet [Mon, 23 Nov 2015 14:02:54 +0000 (09:02 -0500)] 
Fix: use the right list in find_expiring_intro_point()

The wrong list was used when looking up expired intro points in a rend
service object causing what we think could be reachability issues and
triggering a BUG log.

Fixes #16702

Signed-off-by: David Goulet <dgoulet@ev0ke.net>
10 years agobump version to 0.2.7-dev
Nick Mathewson [Fri, 20 Nov 2015 15:27:35 +0000 (10:27 -0500)] 
bump version to 0.2.7-dev

10 years agoBump to 0.2.7.5
Nick Mathewson [Fri, 13 Nov 2015 13:41:30 +0000 (08:41 -0500)] 
Bump to 0.2.7.5

10 years agoNote that you can use a unix domain socket for hsport
Nick Mathewson [Wed, 21 Oct 2015 16:22:05 +0000 (12:22 -0400)] 
Note that you can use a unix domain socket for hsport

10 years agoMerge remote-tracking branch 'public/bug17404_024' into maint-0.2.7
Nick Mathewson [Wed, 21 Oct 2015 16:02:42 +0000 (12:02 -0400)] 
Merge remote-tracking branch 'public/bug17404_024' into maint-0.2.7

10 years agoFix the return value
Nick Mathewson [Wed, 21 Oct 2015 16:01:05 +0000 (12:01 -0400)] 
Fix the return value

10 years agoMerge remote-tracking branch 'public/bug17404_024' into maint-0.2.7
Nick Mathewson [Wed, 21 Oct 2015 15:51:03 +0000 (11:51 -0400)] 
Merge remote-tracking branch 'public/bug17404_024' into maint-0.2.7

10 years agoCheck for len < 4 in dn_indicates_v3_cert
Nick Mathewson [Wed, 21 Oct 2015 15:44:43 +0000 (11:44 -0400)] 
Check for len < 4 in dn_indicates_v3_cert

Without this check, we potentially look up to 3 characters before
the start of a malloc'd segment, which could provoke a crash under
certain (weird afaik) circumstances.

Fixes 17404; bugfix on 0.2.6.3-alpha.

10 years agoFix a memory leak in reading an expired ed signing key.
Nick Mathewson [Wed, 21 Oct 2015 15:16:28 +0000 (11:16 -0400)] 
Fix a memory leak in reading an expired ed signing key.

Closes 17403.

10 years agoWhoops; infinite recursion
Nick Mathewson [Wed, 21 Oct 2015 14:56:27 +0000 (10:56 -0400)] 
Whoops; infinite recursion

10 years agoFix memory leak in rend_cache_failure_entry_free()
Nick Mathewson [Wed, 21 Oct 2015 14:52:57 +0000 (10:52 -0400)] 
Fix memory leak in rend_cache_failure_entry_free()

Bug 17402.

10 years agoFix an (unreachable) memory leak in rendcache.c
Nick Mathewson [Wed, 21 Oct 2015 14:27:19 +0000 (10:27 -0400)] 
Fix an (unreachable) memory leak in rendcache.c

The 0.2.8 unit tests provoke this leak, though I don't think it can
happen IRL.

10 years agoFix a use-after-free in validate_intro_point_failure. Bug 17401. Found w valgrind
Nick Mathewson [Wed, 21 Oct 2015 13:59:19 +0000 (09:59 -0400)] 
Fix a use-after-free in validate_intro_point_failure. Bug 17401. Found w valgrind

10 years agoFix a memory leak; bug 17398.
Nick Mathewson [Wed, 21 Oct 2015 12:17:07 +0000 (08:17 -0400)] 
Fix a memory leak; bug 17398.

10 years agoBump version to 0.2.7.4-rc
Nick Mathewson [Mon, 19 Oct 2015 15:19:51 +0000 (11:19 -0400)] 
Bump version to 0.2.7.4-rc

10 years agotweak some changes files
Nick Mathewson [Mon, 19 Oct 2015 15:12:43 +0000 (11:12 -0400)] 
tweak some changes files

10 years agoMerge remote-tracking branch 'origin/maint-0.2.6' into maint-0.2.7
Nick Mathewson [Thu, 15 Oct 2015 17:56:41 +0000 (13:56 -0400)] 
Merge remote-tracking branch 'origin/maint-0.2.6' into maint-0.2.7

10 years agoAdd hidserv-stats filname to our sandbox filter
David Goulet [Thu, 15 Oct 2015 17:38:12 +0000 (13:38 -0400)] 
Add hidserv-stats filname to our sandbox filter

Fixes #17354

Signed-off-by: David Goulet <dgoulet@ev0ke.net>
10 years agoFix compilation of sandbox.[ch] under musl-libc
Nick Mathewson [Thu, 15 Oct 2015 14:35:45 +0000 (10:35 -0400)] 
Fix compilation of sandbox.[ch] under musl-libc

Patch from jamestk; fix on 0.2.5.1-alpha. Fixes 17347.

10 years agoMerge remote-tracking branch 'origin/maint-0.2.6' into maint-0.2.7
Nick Mathewson [Fri, 9 Oct 2015 14:14:59 +0000 (10:14 -0400)] 
Merge remote-tracking branch 'origin/maint-0.2.6' into maint-0.2.7

10 years agoMerge remote-tracking branch 'origin/maint-0.2.5' into maint-0.2.6
Nick Mathewson [Fri, 9 Oct 2015 14:14:46 +0000 (10:14 -0400)] 
Merge remote-tracking branch 'origin/maint-0.2.5' into maint-0.2.6

10 years agoMerge remote-tracking branch 'origin/maint-0.2.4' into maint-0.2.5
Nick Mathewson [Fri, 9 Oct 2015 14:12:59 +0000 (10:12 -0400)] 
Merge remote-tracking branch 'origin/maint-0.2.4' into maint-0.2.5

10 years agoUpdate geoip and geoip6 to the October 9 2015 database.
Karsten Loesing [Fri, 9 Oct 2015 13:27:55 +0000 (15:27 +0200)] 
Update geoip and geoip6 to the October 9 2015 database.

10 years agoMake get_ifaddrs tests more tolerant of unusual network configs
teor (Tim Wilson-Brown) [Tue, 6 Oct 2015 04:32:44 +0000 (15:32 +1100)] 
Make get_ifaddrs tests more tolerant of unusual network configs

* Don't assume that every test box has an IPv4 address
* Don't assume that every test box has a non-local address

Resolves issue #17255 released in unit tests in 0.2.7.3-rc.

10 years agoWork around openssl declaring x509_get_not{Before,After} as functions
Nick Mathewson [Tue, 6 Oct 2015 13:04:37 +0000 (09:04 -0400)] 
Work around openssl declaring x509_get_not{Before,After} as functions

Now that x509_get_not{Before,After} are functions in OpenSSL 1.1
(not yet releasesd), we need to define a variant that takes a const
pointer to X509 and returns a const pointer to ASN1_time.

Part of 17237. I'm not convinced this is an openssl bug or a tor
bug. It might be just one of those things.

10 years agoFix 17251: avoid integer overflow in test_crypto_slow
Nick Mathewson [Tue, 6 Oct 2015 12:58:03 +0000 (08:58 -0400)] 
Fix 17251: avoid integer overflow in test_crypto_slow

10 years agofix compilation; mark test fns static
Nick Mathewson [Tue, 29 Sep 2015 11:50:52 +0000 (13:50 +0200)] 
fix compilation; mark test fns static

10 years agoFix past changelog spelling again!
Nick Mathewson [Tue, 29 Sep 2015 10:49:23 +0000 (12:49 +0200)] 
Fix past changelog spelling again!

10 years agogo back in time to fix a changelog entry. Fix for 17165
Nick Mathewson [Tue, 29 Sep 2015 08:21:52 +0000 (10:21 +0200)] 
go back in time to fix a changelog entry. Fix for 17165

10 years agoSocks->SOCKS in torrcs. Fixes 15609
Nick Mathewson [Tue, 29 Sep 2015 08:20:31 +0000 (10:20 +0200)] 
Socks->SOCKS in torrcs. Fixes 15609

10 years agoAdd checks and unit tests for get_interface_address* failure
teor (Tim Wilson-Brown) [Tue, 29 Sep 2015 05:04:49 +0000 (07:04 +0200)] 
Add checks and unit tests for get_interface_address* failure

Ensure that either a valid address is returned in address pointers,
or that the address data is zeroed on error.

Ensure that free_interface_address6_list handles NULL lists.

Add unit tests for get_interface_address* failure cases.

Fixes bug #17173.
Patch by fk/teor, not in any released version of tor.

10 years agoget_interface_address6_list(): Bring back a return code check
Fabian Keil [Mon, 28 Sep 2015 14:57:07 +0000 (16:57 +0200)] 
get_interface_address6_list(): Bring back a return code check

... that was removed by 31eb486c46 which first appeared in
0.2.7.3-rc.

If tor is running in a ElectroBSD (or FreeBSD) jail it can't
get any IP addresses that aren't assigned to the jail by
looking at the interfaces and (by design) the
get_interface_address6_via_udp_socket_hack() fallback doesn't
work either.

The missing return code check resulted in tor_addr_is_internal()
complaining about a "non-IP address of type 49", due to reading
uninitialised memory.

Fixes #17173.

10 years agoChanges file for bug17154
Nick Mathewson [Tue, 29 Sep 2015 08:10:52 +0000 (10:10 +0200)] 
Changes file for bug17154

10 years agoNo spaces around = in variable assignment
Marcin Cieślak [Fri, 25 Sep 2015 14:16:40 +0000 (14:16 +0000)] 
No spaces around = in variable assignment

BSD make takes spaces around = literally
and produces a "TESTING_TOR_BINARY "
variable with a trailing space, which leads
to test_keygen.sh failure.

Fixes 17154

10 years agoAdd changes file for bug17151
Nick Mathewson [Tue, 29 Sep 2015 08:08:02 +0000 (10:08 +0200)] 
Add changes file for bug17151

10 years agoFreeBSD needs -lexecinfo to get backtrace()
Marcin Cieślak [Fri, 25 Sep 2015 00:59:59 +0000 (00:59 +0000)] 
FreeBSD needs -lexecinfo to get backtrace()

10 years agoSkip tests if backtrace support not compiled-in
Marcin Cieślak [Thu, 24 Sep 2015 22:32:51 +0000 (22:32 +0000)] 
Skip tests if backtrace support not compiled-in

FreeBSD needs -lexecinfo to fully support
backtrace reporting.

10 years agoBump to 0.2.7.3-rc-dev
Nick Mathewson [Fri, 25 Sep 2015 13:26:35 +0000 (09:26 -0400)] 
Bump to 0.2.7.3-rc-dev

10 years agoA day has passed. tor-0.2.7.3-rc
Nick Mathewson [Fri, 25 Sep 2015 13:06:41 +0000 (09:06 -0400)] 
A day has passed.

10 years agoAdd test-network.sh to EXTRA_DIST
Nick Mathewson [Thu, 24 Sep 2015 23:38:50 +0000 (19:38 -0400)] 
Add test-network.sh to EXTRA_DIST