]> git.ipfire.org Git - thirdparty/tor.git/log
thirdparty/tor.git
7 years agoTravis: make the exclude descriptions shorter
teor [Thu, 23 Aug 2018 08:12:36 +0000 (18:12 +1000)] 
Travis: make the exclude descriptions shorter

Part of 27252.

7 years agoTravis: Skip a duplicate hardening-off build in Tor 0.2.9
teor [Thu, 23 Aug 2018 07:06:53 +0000 (17:06 +1000)] 
Travis: Skip a duplicate hardening-off build in Tor 0.2.9

Part of 27252.

7 years agoTravis: skip gcc on OSX, because the default compiler is clang
teor [Thu, 23 Aug 2018 07:00:42 +0000 (17:00 +1000)] 
Travis: skip gcc on OSX, because the default compiler is clang

Part of #27252.

7 years agoMark cert_matches_key as not-intrusive; fix stretch compilation.
Nick Mathewson [Wed, 22 Aug 2018 13:37:26 +0000 (09:37 -0400)] 
Mark cert_matches_key as not-intrusive; fix stretch compilation.

7 years agoMerge remote-tracking branch 'teor/travis-osx-029' into maint-0.2.9
Nick Mathewson [Wed, 22 Aug 2018 00:03:19 +0000 (20:03 -0400)] 
Merge remote-tracking branch 'teor/travis-osx-029' into maint-0.2.9

7 years agoRewrite test_tortls_cert_matches_key()
Nick Mathewson [Mon, 20 Aug 2018 21:43:41 +0000 (17:43 -0400)] 
Rewrite test_tortls_cert_matches_key()

Unlike the old test, this test no will no longer mess around with
the forbidden internals of any openssl data structures.

Additionally, it verifies several other behaviors of
tor_tls_cert_matches_key() that we had wanted to verify, such as
the possibility of the certificate's key not matching.

Fixes bug 27226; bugfix on 0.2.5.1-alpha.

7 years agoUse our x509 wrapper code in tor_tls_cert_matches_key()
Nick Mathewson [Mon, 20 Aug 2018 21:42:38 +0000 (17:42 -0400)] 
Use our x509 wrapper code in tor_tls_cert_matches_key()

This allows us to mock our own tor_tls_get_peer_certificate()
function in order to test ..cert_matches_key(), which will in turn
allow us to simplify test_tortls_cert_matches_key() considerably.

Prep work for the fix for 27226.

7 years agoMerge remote-tracking branch 'github/bug27081_029' into maint-0.2.9
Nick Mathewson [Wed, 15 Aug 2018 16:20:53 +0000 (12:20 -0400)] 
Merge remote-tracking branch 'github/bug27081_029' into maint-0.2.9

7 years agoTravis: add a missing macOS asciidoc env var
teor [Fri, 10 Aug 2018 08:26:33 +0000 (18:26 +1000)] 
Travis: add a missing macOS asciidoc env var

7 years agoTravis: add a missing macOS asciidoc dependency
teor [Fri, 10 Aug 2018 06:24:31 +0000 (16:24 +1000)] 
Travis: add a missing macOS asciidoc dependency

7 years agoTravis: put distcheck first for readability
teor [Fri, 10 Aug 2018 02:33:51 +0000 (12:33 +1000)] 
Travis: put distcheck first for readability

7 years agoChanges file for Travis: enable macOS builds
teor [Fri, 10 Aug 2018 02:10:56 +0000 (12:10 +1000)] 
Changes file for Travis: enable macOS builds

7 years agoTravis: fix a typo
teor [Thu, 9 Aug 2018 12:53:48 +0000 (22:53 +1000)] 
Travis: fix a typo

7 years agoTravis: list installed package versions before building
teor [Thu, 9 Aug 2018 12:16:28 +0000 (22:16 +1000)] 
Travis: list installed package versions before building

Part of 24629.

7 years agoTravis: run an asciidoc build
teor [Thu, 9 Aug 2018 08:29:29 +0000 (18:29 +1000)] 
Travis: run an asciidoc build

Implements 27087.

7 years agoTravis: Use ccache
teor [Thu, 9 Aug 2018 05:40:27 +0000 (15:40 +1000)] 
Travis: Use ccache

Part of ticket 26952.

7 years agoTravis: make macOS builds work for Tor 0.2.9
teor [Thu, 9 Aug 2018 07:44:11 +0000 (17:44 +1000)] 
Travis: make macOS builds work for Tor 0.2.9

Tor 0.2.9 needs extra help to find OpenSSL on macOS.

Part of 24629.

7 years agoTravis: create configure flags once, then echo the flags
teor [Thu, 9 Aug 2018 07:06:13 +0000 (17:06 +1000)] 
Travis: create configure flags once, then echo the flags

Creating the configure flags once avoids inconsistent flags
between configure and distcheck configure.

Echoing the flags helps developers work out what configure is
doing.

(Backported to 0.2.9 and later as a precaution.)

Fixes 27088 on 0.3.4.1-alpha, adds logging in previous releases.

7 years agoTravis: enable macOS builds
teor [Thu, 9 Aug 2018 08:03:18 +0000 (18:03 +1000)] 
Travis: enable macOS builds

Also:
* explain why we don't install zlib

Part of 24629.

7 years agoTravis: Rewrite .travis.yml
teor [Thu, 9 Aug 2018 06:42:05 +0000 (16:42 +1000)] 
Travis: Rewrite .travis.yml

Build on all compilers:
* default options + hardening

Build on gcc:
* coverage (+ no hardening)
* distcheck
* no hardening

Add some extra logging:
* tail config.log on failure
  (config.log is too long for travis to render)

Put the config in a more logical order
* Sort config items in chronological order
* Put related items together

Part of 24629.

7 years agoUpdate geoip and geoip6 to the August 7 2018 database.
Karsten Loesing [Thu, 9 Aug 2018 07:44:38 +0000 (09:44 +0200)] 
Update geoip and geoip6 to the August 7 2018 database.

7 years agoAdd more optional packages to Travis
Taylor Yu [Thu, 28 Jun 2018 19:43:31 +0000 (14:43 -0500)] 
Add more optional packages to Travis

Apparently we weren't building with either libcap or libseccomp on
Travis.  Install libcap-dev and libseccomp-dev in .travis.yml.  Closes
ticket 26560.

7 years agoDon't search for -lpthread on Windows
Nick Mathewson [Wed, 8 Aug 2018 13:56:51 +0000 (09:56 -0400)] 
Don't search for -lpthread on Windows

If we're building for Windows, we want to use windows threads no
matter what, and we don't want to link a pthread library even if it
is present.  Fixes bug 27081; bugfix on 1790dc67607799a in 0.1.0.1-rc.

7 years agoChanges file for 25440
Nick Mathewson [Wed, 8 Aug 2018 13:26:21 +0000 (09:26 -0400)] 
Changes file for 25440

7 years agoFix crash when calling openat with sandbox enabled #25440
Daniel Pinto [Tue, 17 Apr 2018 00:31:49 +0000 (01:31 +0100)] 
Fix crash when calling openat with sandbox enabled #25440

The seccomp rule for the openat syscall checks for the AT_FDCWD
constant. Because this constant is usually a negative value, a
cast to unsigned int is necessary to make sure it does not get
converted to uint64_t used by seccomp.

More info on:
https://github.com/seccomp/libseccomp/issues/69#issuecomment-273805980

7 years agoMerge branch 'fix_nonstandard_malloc_029' into maint-0.2.9
Nick Mathewson [Fri, 3 Aug 2018 11:33:39 +0000 (07:33 -0400)] 
Merge branch 'fix_nonstandard_malloc_029' into maint-0.2.9

7 years agoStop logging link auth warnings on Single Onion Services and Tor2web
teor [Wed, 25 Jul 2018 04:28:06 +0000 (14:28 +1000)] 
Stop logging link auth warnings on Single Onion Services and Tor2web

Instead, log a protocol warning when single onion services or
Tor2web clients fail to authenticate direct connections to relays.

Fixes bug 26924; bugfix on 0.2.9.1-alpha.

7 years agoChanges file for bug 26787
Nick Mathewson [Wed, 18 Jul 2018 20:39:22 +0000 (16:39 -0400)] 
Changes file for bug 26787

7 years agoTry putting ulimit -c 0 in test_bt.sh to see if it fixes bug 26787
Nick Mathewson [Mon, 16 Jul 2018 11:53:43 +0000 (07:53 -0400)] 
Try putting ulimit -c 0 in test_bt.sh to see if it fixes bug 26787

7 years agoMerge branch 'bug26485_029_squashed' into maint-0.2.9
Nick Mathewson [Wed, 18 Jul 2018 19:01:03 +0000 (15:01 -0400)] 
Merge branch 'bug26485_029_squashed' into maint-0.2.9

7 years agoAdd a test for format_recommended_version_list.
Nick Mathewson [Tue, 17 Jul 2018 19:39:31 +0000 (15:39 -0400)] 
Add a test for format_recommended_version_list.

7 years agoWarn when an authority has voted for a version with a space in it.
Nick Mathewson [Wed, 11 Jul 2018 15:24:55 +0000 (11:24 -0400)] 
Warn when an authority has voted for a version with a space in it.

Another way to try to prevent a recurrence of 26485.

7 years agoWarn the directory authority operator if their versions list is bogus
Nick Mathewson [Wed, 11 Jul 2018 15:14:48 +0000 (11:14 -0400)] 
Warn the directory authority operator if their versions list is bogus

Prevents bug 26485; bugfix on 0.1.1.6-alpha.

7 years agoSKIP test_keygen.sh on Windows until the underlying issue is resolved
teor [Tue, 17 Jul 2018 01:24:02 +0000 (11:24 +1000)] 
SKIP test_keygen.sh on Windows until the underlying issue is resolved

Skip an unreliable key generation test on Windows, until the underlying
issue in bug 26076 is resolved.

Fixes bug 26830; bugfix on 0.2.7.3-rc.

7 years agoput new bridge auth Serge into place
Roger Dingledine [Thu, 12 Jul 2018 18:12:13 +0000 (14:12 -0400)] 
put new bridge auth Serge into place

The "Bifroest" bridge authority has been retired; the new bridge authority
is "Serge", and it is operated by George from the TorBSD project.

Closes ticket 26771.

7 years agoWhen setting a nonstandard malloc, disable the system malloc.
Nick Mathewson [Wed, 11 Jul 2018 13:36:24 +0000 (09:36 -0400)] 
When setting a nonstandard malloc, disable the system malloc.

Closes ticket 20424.

7 years agoMerge branch 'bug26269_029' into maint-0.2.9
Nick Mathewson [Mon, 9 Jul 2018 14:14:39 +0000 (10:14 -0400)] 
Merge branch 'bug26269_029' into maint-0.2.9

7 years agoUpdate geoip and geoip6 to the July 3 2018 database.
Karsten Loesing [Fri, 6 Jul 2018 18:54:03 +0000 (20:54 +0200)] 
Update geoip and geoip6 to the July 3 2018 database.

7 years agoMerge branch 'bug26535_029' into maint-0.2.9
Nick Mathewson [Tue, 3 Jul 2018 13:47:41 +0000 (09:47 -0400)] 
Merge branch 'bug26535_029' into maint-0.2.9

7 years agontor_ref.py: pass only strings to subprocess.Popen
Nick Mathewson [Mon, 2 Jul 2018 18:04:46 +0000 (14:04 -0400)] 
ntor_ref.py: pass only strings to subprocess.Popen

Recent Python3 versions seem to require this on Windows.

Fixes bug 26535; bug introduced in f4be34f70d6f277a0f3f73e, which
was apparently intended itself as a Python3 workaround.

7 years agoFinally remove our EOL@EOF check.
Nick Mathewson [Mon, 18 Jun 2018 20:10:47 +0000 (16:10 -0400)] 
Finally remove our EOL@EOF check.

This check was added by mistake long ago.  It will be nice to see
these EOLs disappear from our code over time.

(backport from master)

7 years agoFix a memory error in test_shared_random
Nick Mathewson [Fri, 29 Jun 2018 17:49:02 +0000 (13:49 -0400)] 
Fix a memory error in test_shared_random

Bug not in any released Tor.

7 years agoChanges file for 26467
Nick Mathewson [Fri, 29 Jun 2018 17:04:29 +0000 (13:04 -0400)] 
Changes file for 26467

7 years agoMerge remote-tracking branch 'ahf-github/maint-0.2.9' into maint-0.2.9
Nick Mathewson [Fri, 29 Jun 2018 17:00:52 +0000 (13:00 -0400)] 
Merge remote-tracking branch 'ahf-github/maint-0.2.9' into maint-0.2.9

7 years agoMerge branch 'feature26372_029' into maint-0.2.9
Nick Mathewson [Tue, 26 Jun 2018 13:21:55 +0000 (09:21 -0400)] 
Merge branch 'feature26372_029' into maint-0.2.9

7 years agoFix memory leak in test_sr_setup_commits().
Alexander Færøy [Sat, 23 Jun 2018 09:31:59 +0000 (11:31 +0200)] 
Fix memory leak in test_sr_setup_commits().

This patch fixes a memory leak in test_sr_setup_commits() where the
place_holder is allocated, but never freed again.

See: Coverity CID 1437440.

7 years agoFix memory leak in disk_state_parse_commits().
Alexander Færøy [Sat, 23 Jun 2018 09:28:00 +0000 (11:28 +0200)] 
Fix memory leak in disk_state_parse_commits().

This patch fixes a memory leak in disk_state_parse_commits() where if
commit is NULL, we continue the internal loop, but without ever freeing
the args variable.

See: Coverity CID 1437441.

7 years agoFix memory leak in frac_nodes_with_descriptors().
Alexander Færøy [Sat, 23 Jun 2018 01:24:10 +0000 (03:24 +0200)] 
Fix memory leak in frac_nodes_with_descriptors().

This patch fixes a memory leak in frac_nodes_with_descriptors() where
we might return without free'ing the bandwidths variable.

See: Coverity CID 1437451.

7 years agoFix potential memory leak in test_hs_auth_cookies().
Alexander Færøy [Sat, 23 Jun 2018 01:17:09 +0000 (03:17 +0200)] 
Fix potential memory leak in test_hs_auth_cookies().

This patch fixes a potential memory leak in test_hs_auth_cookies() if a
test-case fails and we goto the done label where no memory clean up is
done.

See: Coverity CID 1437453

7 years agoPrefer recent Python 3 in autoconf.
Nick Mathewson [Thu, 21 Jun 2018 13:28:50 +0000 (09:28 -0400)] 
Prefer recent Python 3 in autoconf.

Closes ticket 26372.

7 years agoAdd .editorconfig to follow coding standards style
juga0 [Sun, 3 Jun 2018 10:44:02 +0000 (10:44 +0000)] 
Add .editorconfig to follow coding standards style

7 years agoFix a GCC "potential null dereference" warning.
Nick Mathewson [Wed, 13 Jun 2018 14:34:53 +0000 (10:34 -0400)] 
Fix a GCC "potential null dereference" warning.

Fixes bug 26269; bugfix on c30be5a82d47328 in 0.2.8.2-alpha

7 years agoMerge branch 'dannenberg_ipv6_029' into maint-0.2.9
Nick Mathewson [Tue, 12 Jun 2018 13:44:13 +0000 (09:44 -0400)] 
Merge branch 'dannenberg_ipv6_029' into maint-0.2.9

7 years agoAdd a changelog entry.
Linus Nordberg [Sun, 10 Jun 2018 11:09:38 +0000 (13:09 +0200)] 
Add a changelog entry.

7 years agoAdd IPv6 orport address for dannenberg.
Linus Nordberg [Sun, 10 Jun 2018 09:07:00 +0000 (11:07 +0200)] 
Add IPv6 orport address for dannenberg.

7 years agoUpdate geoip and geoip6 to the June 7 2018 database.
Karsten Loesing [Mon, 11 Jun 2018 19:58:55 +0000 (21:58 +0200)] 
Update geoip and geoip6 to the June 7 2018 database.

7 years agoAvoid out-of-bounds smartlist access in protover_compute_vote()
rl1987 [Mon, 4 Jun 2018 09:27:10 +0000 (12:27 +0300)] 
Avoid out-of-bounds smartlist access in protover_compute_vote()
and contract_protocol_list()

7 years agoMerge branch 'bug26116_029' into maint-0.2.9
Nick Mathewson [Thu, 24 May 2018 13:39:46 +0000 (09:39 -0400)] 
Merge branch 'bug26116_029' into maint-0.2.9

7 years agoAdd a unit test for PEM-encrypted documents.
Nick Mathewson [Thu, 24 May 2018 13:36:33 +0000 (09:36 -0400)] 
Add a unit test for PEM-encrypted documents.

7 years agoMerge branch 'bug26072_029' into maint-0.2.9
Nick Mathewson [Wed, 16 May 2018 16:11:40 +0000 (12:11 -0400)] 
Merge branch 'bug26072_029' into maint-0.2.9

7 years agoReturn -1 from our PEM password callback
Nick Mathewson [Wed, 16 May 2018 15:39:42 +0000 (11:39 -0400)] 
Return -1 from our PEM password callback

Apparently, contrary to its documentation, this is how OpenSSL now
wants us to report an error.

Fixes bug 26116; bugfix on 0.2.5.16.

7 years agoUpdate geoip and geoip6 to the May 1 2018 database.
Karsten Loesing [Tue, 15 May 2018 13:16:47 +0000 (15:16 +0200)] 
Update geoip and geoip6 to the May 1 2018 database.

7 years agoAdd a missing return after marking a stream for bad connected cell
Nick Mathewson [Mon, 14 May 2018 19:54:48 +0000 (15:54 -0400)] 
Add a missing return after marking a stream for bad connected cell

Fixes bug 26072; bugfix on 0.2.4.7-alpha.

7 years agoMerge remote-tracking branch 'juga/ticket26007_029_02' into maint-0.2.9
Nick Mathewson [Thu, 10 May 2018 13:19:09 +0000 (09:19 -0400)] 
Merge remote-tracking branch 'juga/ticket26007_029_02' into maint-0.2.9

7 years agoHaving a ControlPort open doesn't mean we are a client
David Goulet [Wed, 9 May 2018 16:40:06 +0000 (12:40 -0400)] 
Having a ControlPort open doesn't mean we are a client

The any_client_port_set() returns true if the ControlPort is set which is
wrong because we can have that port open but still not behave as a tor client
(like many relays for instance).

Fixes #26062

Signed-off-by: David Goulet <dgoulet@torproject.org>
7 years agoTest read bandwidth measurements with empty file
juga0 [Tue, 8 May 2018 16:23:37 +0000 (16:23 +0000)] 
Test read bandwidth measurements with empty file

7 years agoStop logging stack contents when reading a zero-length bandwidth file
teor [Wed, 2 May 2018 12:33:21 +0000 (22:33 +1000)] 
Stop logging stack contents when reading a zero-length bandwidth file

When directory authorities read a zero-byte bandwidth file, they log
a warning with the contents of an uninitialised buffer. Log a warning
about the empty file instead.

Fixes bug 26007; bugfix on 0.2.2.1-alpha.

7 years agoMerge remote-tracking branch 'catalyst-github/bug25936-029' into maint-0.2.9
Nick Mathewson [Thu, 3 May 2018 17:38:37 +0000 (13:38 -0400)] 
Merge remote-tracking branch 'catalyst-github/bug25936-029' into maint-0.2.9

7 years agoStop logging stack contents when reading a zero-length bandwidth file
teor [Wed, 2 May 2018 12:33:21 +0000 (22:33 +1000)] 
Stop logging stack contents when reading a zero-length bandwidth file

When directory authorities read a zero-byte bandwidth file, they log
a warning with the contents of an uninitialised buffer. Log a warning
about the empty file instead.

Fixes bug 26007; bugfix on 0.2.2.1-alpha.

7 years agoShow test-suite.log for distcheck on Travis CI
Taylor Yu [Thu, 26 Apr 2018 19:22:52 +0000 (14:22 -0500)] 
Show test-suite.log for distcheck on Travis CI

When Travis CI runs make distcheck, test-suite.log doesn't exist in
the expected place.  Add a new make target to show this file and use
it when DISTCHECK=yes in .travis.yml.  Fixes bug 25814; bug not in any
released Tor.

7 years agoMerge branch 'travis_distcheck_029' into maint-0.2.9
Nick Mathewson [Tue, 24 Apr 2018 14:38:19 +0000 (10:38 -0400)] 
Merge branch 'travis_distcheck_029' into maint-0.2.9

7 years agoMerge branch 'bug24969_029_v2' into maint-0.2.9
Nick Mathewson [Mon, 23 Apr 2018 13:23:25 +0000 (09:23 -0400)] 
Merge branch 'bug24969_029_v2' into maint-0.2.9

7 years agoPermit the nanosleep system call in the seccomp2 callbox
Nick Mathewson [Wed, 18 Apr 2018 14:25:42 +0000 (10:25 -0400)] 
Permit the nanosleep system call in the seccomp2 callbox

Fixes bug 24969; bugfix on 0.2.5.1-alpha when the sandbox was introduced.

7 years agoAdd distcheck support to travis configuration.
Nick Mathewson [Wed, 18 Apr 2018 18:24:54 +0000 (14:24 -0400)] 
Add distcheck support to travis configuration.

Implements 25814.

7 years agoAdd support for the coveralls.io coverage tool in travis config
Nick Mathewson [Mon, 16 Apr 2018 18:42:28 +0000 (14:42 -0400)] 
Add support for the coveralls.io coverage tool in travis config

Closes ticket 25818.

7 years agoFix an LCOV exclusion pattern in address.c
Nick Mathewson [Mon, 16 Apr 2018 17:48:21 +0000 (13:48 -0400)] 
Fix an LCOV exclusion pattern in address.c

7 years agoMerge remote-tracking branch 'ahf-github/bugs/24854_029_2' into maint-0.2.9
Nick Mathewson [Tue, 10 Apr 2018 18:25:57 +0000 (14:25 -0400)] 
Merge remote-tracking branch 'ahf-github/bugs/24854_029_2' into maint-0.2.9

7 years agoLift the list of default directory servers into their own file.
Alexander Færøy [Fri, 6 Apr 2018 01:58:16 +0000 (03:58 +0200)] 
Lift the list of default directory servers into their own file.

This patch lifts the list of default directory authorities from config.c
into their own auth_dirs.inc file, which is then included in config.c
using the C preprocessor.

Patch by beastr0.

See: https://bugs.torproject.org/24854

7 years agoMerge branch 'maint-0.2.5' into maint-0.2.9
Nick Mathewson [Thu, 5 Apr 2018 12:22:33 +0000 (08:22 -0400)] 
Merge branch 'maint-0.2.5' into maint-0.2.9

7 years agoUpdate geoip and geoip6 to the April 3 2018 database. maint-0.2.5
Karsten Loesing [Thu, 5 Apr 2018 08:42:25 +0000 (10:42 +0200)] 
Update geoip and geoip6 to the April 3 2018 database.

7 years agoFix CID 1430932
Taylor Yu [Mon, 26 Mar 2018 22:51:50 +0000 (17:51 -0500)] 
Fix CID 1430932

Coverity found a null pointer reference in nodelist_add_microdesc().
This is almost certainly impossible assuming that the routerstatus_t
returned by router_get_consensus_status_by_descriptor_digest() always
corresponds to an entry in the nodelist.  Fixes bug 25629.

7 years agoRemove sb_poll check: all poll() calls are ok.
Nick Mathewson [Tue, 20 Mar 2018 12:30:21 +0000 (08:30 -0400)] 
Remove sb_poll check: all poll() calls are ok.

7 years agoAdd the poll() syscall as permitted by the sandbox
Nick Mathewson [Tue, 20 Mar 2018 12:22:28 +0000 (08:22 -0400)] 
Add the poll() syscall as permitted by the sandbox

Apparently, sometimes getpwnam will call this.

Fixes bug 25513.

7 years agoMerge branch 'maint-0.2.5' into maint-0.2.9
Nick Mathewson [Mon, 19 Mar 2018 09:42:43 +0000 (05:42 -0400)] 
Merge branch 'maint-0.2.5' into maint-0.2.9

7 years agoMerge remote-tracking branch 'catalyst-github/bug25388-025' into maint-0.2.5
Nick Mathewson [Mon, 19 Mar 2018 09:42:38 +0000 (05:42 -0400)] 
Merge remote-tracking branch 'catalyst-github/bug25388-025' into maint-0.2.5

7 years agoMerge branch 'maint-0.2.5' into maint-0.2.9
Nick Mathewson [Tue, 13 Mar 2018 14:58:02 +0000 (10:58 -0400)] 
Merge branch 'maint-0.2.5' into maint-0.2.9

7 years agoUpdate geoip and geoip6 to the March 8 2018 database.
Karsten Loesing [Mon, 12 Mar 2018 13:47:06 +0000 (14:47 +0100)] 
Update geoip and geoip6 to the March 8 2018 database.

7 years agoBump version to 0.2.9.15-dev
Nick Mathewson [Sat, 3 Mar 2018 16:32:16 +0000 (11:32 -0500)] 
Bump version to 0.2.9.15-dev

7 years agoversion bump to 0.2.9.15
Nick Mathewson [Thu, 1 Mar 2018 21:42:17 +0000 (16:42 -0500)] 
version bump to 0.2.9.15

7 years agoProtover tests: disable some obsoleted tests
Nick Mathewson [Thu, 15 Feb 2018 23:56:29 +0000 (18:56 -0500)] 
Protover tests: disable some obsoleted tests

These were meant to demonstrate old behavior, or old rust behavior.

One of them _should_ work in Rust, but won't because of
implementation details.  We'll fix that up later.

7 years agoSpec conformance on protover: always reject ranges where lo>hi
Nick Mathewson [Thu, 15 Feb 2018 15:49:47 +0000 (10:49 -0500)] 
Spec conformance on protover: always reject ranges where lo>hi

7 years agoForbid UINT32_MAX as a protocol version
Nick Mathewson [Thu, 15 Feb 2018 14:05:55 +0000 (09:05 -0500)] 
Forbid UINT32_MAX as a protocol version

The C code and the rust code had different separate integer overflow
bugs here.  That suggests that we're better off just forbidding this
pathological case.

Also, add tests for expected behavior on receiving a bad protocol
list in a consensus.

Fixes another part of 25249.

7 years agoForbid "-0" as a protocol version.
Nick Mathewson [Thu, 15 Feb 2018 13:46:13 +0000 (08:46 -0500)] 
Forbid "-0" as a protocol version.

Fixes part of 24249; bugfix on 0.2.9.4-alpha.

7 years agoAdd more of Teor's protover tests.
Nick Mathewson [Wed, 14 Feb 2018 16:56:03 +0000 (11:56 -0500)] 
Add more of Teor's protover tests.

These are as Teor wrote them; I've disabled the ones that don't pass
yet, with XXXX comments.

7 years agoAdd some protover vote round-trip tests from Teor.
Nick Mathewson [Wed, 14 Feb 2018 16:47:05 +0000 (11:47 -0500)] 
Add some protover vote round-trip tests from Teor.

I've refactored these to be a separate function, to avoid tricky
merge conflicts.

Some of these are disabled with "XXXX" comments; they should get
fixed moving forward.

7 years agoAdd another NULL-pointer fix for protover.c.
Nick Mathewson [Wed, 14 Feb 2018 15:45:57 +0000 (10:45 -0500)] 
Add another NULL-pointer fix for protover.c.

This one can only be exploited if you can generate a correctly
signed consensus, so it's not as bad as 25074.

Fixes bug 25251; also tracked as TROVE-2018-004.

7 years agoCorrectly handle NULL returns from parse_protocol_list when voting.
Nick Mathewson [Thu, 1 Feb 2018 21:33:52 +0000 (16:33 -0500)] 
Correctly handle NULL returns from parse_protocol_list when voting.

In some cases we had checked for it, but in others we had not.  One
of these cases could have been used to remotely cause
denial-of-service against directory authorities while they attempted
to vote.

Fixes TROVE-2018-001.

7 years agoDocument how to allow partial Travis failures
Taylor Yu [Wed, 28 Feb 2018 18:28:45 +0000 (12:28 -0600)] 
Document how to allow partial Travis failures

Add some commented-out allow_failures clauses to make it easier to
temporarily allow less-critical sub-builds to fail while still
reporting success.

7 years agoMerge remote-tracking branch 'dgoulet/ticket24902_029_05' into maint-0.2.9
Nick Mathewson [Fri, 16 Feb 2018 14:41:06 +0000 (09:41 -0500)] 
Merge remote-tracking branch 'dgoulet/ticket24902_029_05' into maint-0.2.9

7 years agostop calling channel_mark_client in response to a create_fast
Roger Dingledine [Wed, 31 Jan 2018 08:21:27 +0000 (03:21 -0500)] 
stop calling channel_mark_client in response to a create_fast

since all it does is produce false positives

this commit should get merged into 0.2.9 and 0.3.0 *and* 0.3.1, even
though the code in the previous commit is already present in 0.3.1. sorry
for the mess.