]>
git.ipfire.org Git - thirdparty/tor.git/log
Nick Mathewson [Thu, 13 Sep 2018 15:45:58 +0000 (11:45 -0400)]
Merge branch 'bug27658_029' into maint-0.2.9
Nick Mathewson [Wed, 12 Sep 2018 12:57:18 +0000 (08:57 -0400)]
Check waitpid return value and exit status in tinytest.c
It's possible for a unit test to report success via its pipe, but to
fail as it tries to clean up and exit. Notably, this happens on a
leak sanitizer failure.
Fixes bug 27658; bugfix on 0.2.2.4-alpha when tinytest was
introduced.
Nick Mathewson [Tue, 11 Sep 2018 17:08:57 +0000 (13:08 -0400)]
Merge remote-tracking branch 'teor/ticket27252-029' into maint-0.2.9
Karsten Loesing [Tue, 11 Sep 2018 07:26:59 +0000 (09:26 +0200)]
Update geoip and geoip6 to the September 6 2018 database.
Nick Mathewson [Mon, 10 Sep 2018 13:41:22 +0000 (09:41 -0400)]
Bump to 0.2.9.17-dev
Nick Mathewson [Fri, 7 Sep 2018 19:10:49 +0000 (15:10 -0400)]
Bump to 0.2.9.17
Nick Mathewson [Fri, 7 Sep 2018 13:15:15 +0000 (09:15 -0400)]
Merge branch 'ticket27344_029' into maint-0.2.9
Nick Mathewson [Fri, 7 Sep 2018 12:57:14 +0000 (08:57 -0400)]
Tell openssl to build its TLS contexts with security level 1
Fixes bug 27344, where we'd break compatibility with old tors by
rejecting RSA1024 and DH1024.
Nick Mathewson [Fri, 7 Sep 2018 12:46:35 +0000 (08:46 -0400)]
Merge remote-tracking branch 'teor/bug27461-029' into maint-0.2.9
Nick Mathewson [Fri, 7 Sep 2018 12:44:36 +0000 (08:44 -0400)]
Merge remote-tracking branch 'teor/bug27463-029' into maint-0.2.9
teor [Fri, 7 Sep 2018 02:58:11 +0000 (12:58 +1000)]
Windows: Stop calling SetProcessDEPPolicy() on 64-bit Windows
It is not supported, and always fails. Some compilers warn about the
function pointer cast on 64-bit Windows.
Fixes bug 27461; bugfix on 0.2.2.23-alpha.
teor [Wed, 5 Sep 2018 11:07:58 +0000 (21:07 +1000)]
hs: Silence a spurious warning in rend_client_send_introduction()
gcc 8 warns that extend_info_t.nickname might be truncated by strncpy().
But it doesn't know that nickname can either contain a hex id, or a
nicknames. hex ids are only used for general and HSDir circuits.
Fixes bug 27463; bugfix on 0.1.1.2-alpha.
teor [Thu, 6 Sep 2018 03:11:23 +0000 (13:11 +1000)]
Windows: Silence a spurious warning in the GetAdaptersAddresses cast
GetProcAddress() returns FARPROC, which is (long long int(*)()) on
64-bit Windows:
https://msdn.microsoft.com/en-us/library/windows/desktop/ms683212(v=vs.85).aspx
But GetAdaptersAddresses() is (long unsigned int(*)()), on both 32-bit
and 64-bit Windows:
https://docs.microsoft.com/en-us/windows/desktop/api/iphlpapi/nf-iphlpapi-getadaptersaddresses
So gcc 8 issues a spurious "incompatible function pointer" warning
about the cast to GetAdaptersAddresses_fn_t.
Silence this warning by casting to a void function pointer, before
the cast to GetAdaptersAddresses_fn_t.
This issue is already fixed by 26481 in 0.3.5 and later, by removing
the lookup and cast.
Fixes bug 27465; bugfix on 0.2.3.11-alpha.
Nick Mathewson [Wed, 5 Sep 2018 14:14:56 +0000 (10:14 -0400)]
Merge remote-tracking branch 'teor/bug27418-029' into maint-0.2.9
teor [Wed, 5 Sep 2018 03:30:17 +0000 (13:30 +1000)]
Travis: don't call echo with a --flag as the first argument
When we use echo in Travis, don't pass a --flag as the first argument.
Fixes bug 27418; bugfix on 0.3.4.7-rc.
teor [Wed, 5 Sep 2018 03:12:54 +0000 (13:12 +1000)]
Travis: when showing a log fails, keep trying to show other logs
When a Travis build fails, and showing a log fails, keep trying to
show the other logs.
Fixes bug 27453; bugfix on 0.3.4.7-rc.
teor [Fri, 24 Aug 2018 00:25:25 +0000 (10:25 +1000)]
Test: avoid spurious failures in make test-network-all
Before running make test-network-all, delete old logs and test result
files, to avoid spurious failures.
Fixes bug 27295; bugfix on 0.2.7.3-rc.
teor [Fri, 24 Aug 2018 00:20:30 +0000 (10:20 +1000)]
Test: consistently use $(TEST_NETWORK_ALL_LOG_DIR) in Makefile.am
Part of 27295.
teor [Thu, 23 Aug 2018 08:55:39 +0000 (18:55 +1000)]
Silence a compilation warning on MSVC 2017 and clang-cl
test.c no longer uses lround(), so we don't need to declare it,
and we can use math.h for fabs().
Fixes bug 27185; bugfix on 0.2.2.2-alpha.
teor [Thu, 23 Aug 2018 08:13:53 +0000 (18:13 +1000)]
Travis: Skip gcc on Linux with default settings
It's redundant, because all the non-default builds use gcc on Linux.
Part of 27252.
teor [Thu, 23 Aug 2018 08:12:36 +0000 (18:12 +1000)]
Travis: make the exclude descriptions shorter
Part of 27252.
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.
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.
Nick Mathewson [Wed, 22 Aug 2018 13:37:26 +0000 (09:37 -0400)]
Mark cert_matches_key as not-intrusive; fix stretch compilation.
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
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.
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.
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
teor [Fri, 10 Aug 2018 08:26:33 +0000 (18:26 +1000)]
Travis: add a missing macOS asciidoc env var
teor [Fri, 10 Aug 2018 06:24:31 +0000 (16:24 +1000)]
Travis: add a missing macOS asciidoc dependency
teor [Fri, 10 Aug 2018 02:33:51 +0000 (12:33 +1000)]
Travis: put distcheck first for readability
teor [Fri, 10 Aug 2018 02:10:56 +0000 (12:10 +1000)]
Changes file for Travis: enable macOS builds
teor [Thu, 9 Aug 2018 12:53:48 +0000 (22:53 +1000)]
Travis: fix a typo
teor [Thu, 9 Aug 2018 12:16:28 +0000 (22:16 +1000)]
Travis: list installed package versions before building
Part of 24629.
teor [Thu, 9 Aug 2018 08:29:29 +0000 (18:29 +1000)]
Travis: run an asciidoc build
Implements 27087.
teor [Thu, 9 Aug 2018 05:40:27 +0000 (15:40 +1000)]
Travis: Use ccache
Part of ticket 26952.
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.
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.
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.
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.
Karsten Loesing [Thu, 9 Aug 2018 07:44:38 +0000 (09:44 +0200)]
Update geoip and geoip6 to the August 7 2018 database.
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.
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.
Nick Mathewson [Wed, 8 Aug 2018 13:26:21 +0000 (09:26 -0400)]
Changes file for 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
Nick Mathewson [Fri, 3 Aug 2018 11:33:39 +0000 (07:33 -0400)]
Merge branch 'fix_nonstandard_malloc_029' into maint-0.2.9
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.
Nick Mathewson [Wed, 18 Jul 2018 20:39:22 +0000 (16:39 -0400)]
Changes file for 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
Nick Mathewson [Wed, 18 Jul 2018 19:01:03 +0000 (15:01 -0400)]
Merge branch 'bug26485_029_squashed' into maint-0.2.9
Nick Mathewson [Tue, 17 Jul 2018 19:39:31 +0000 (15:39 -0400)]
Add a test for format_recommended_version_list.
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.
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.
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.
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.
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.
Nick Mathewson [Mon, 9 Jul 2018 14:14:39 +0000 (10:14 -0400)]
Merge branch 'bug26269_029' into maint-0.2.9
Karsten Loesing [Fri, 6 Jul 2018 18:54:03 +0000 (20:54 +0200)]
Update geoip and geoip6 to the July 3 2018 database.
Nick Mathewson [Tue, 3 Jul 2018 13:47:41 +0000 (09:47 -0400)]
Merge branch 'bug26535_029' into maint-0.2.9
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.
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)
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.
Nick Mathewson [Fri, 29 Jun 2018 17:04:29 +0000 (13:04 -0400)]
Changes file for 26467
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
Nick Mathewson [Tue, 26 Jun 2018 13:21:55 +0000 (09:21 -0400)]
Merge branch 'feature26372_029' into maint-0.2.9
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 .
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 .
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 .
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
Nick Mathewson [Thu, 21 Jun 2018 13:28:50 +0000 (09:28 -0400)]
Prefer recent Python 3 in autoconf.
Closes ticket 26372.
juga0 [Sun, 3 Jun 2018 10:44:02 +0000 (10:44 +0000)]
Add .editorconfig to follow coding standards style
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
Nick Mathewson [Tue, 12 Jun 2018 13:44:13 +0000 (09:44 -0400)]
Merge branch 'dannenberg_ipv6_029' into maint-0.2.9
Linus Nordberg [Sun, 10 Jun 2018 11:09:38 +0000 (13:09 +0200)]
Add a changelog entry.
Linus Nordberg [Sun, 10 Jun 2018 09:07:00 +0000 (11:07 +0200)]
Add IPv6 orport address for dannenberg.
Karsten Loesing [Mon, 11 Jun 2018 19:58:55 +0000 (21:58 +0200)]
Update geoip and geoip6 to the June 7 2018 database.
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()
Nick Mathewson [Thu, 24 May 2018 13:39:46 +0000 (09:39 -0400)]
Merge branch 'bug26116_029' into maint-0.2.9
Nick Mathewson [Thu, 24 May 2018 13:36:33 +0000 (09:36 -0400)]
Add a unit test for PEM-encrypted documents.
Nick Mathewson [Wed, 16 May 2018 16:11:40 +0000 (12:11 -0400)]
Merge branch 'bug26072_029' into maint-0.2.9
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.
Karsten Loesing [Tue, 15 May 2018 13:16:47 +0000 (15:16 +0200)]
Update geoip and geoip6 to the May 1 2018 database.
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.
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
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>
juga0 [Tue, 8 May 2018 16:23:37 +0000 (16:23 +0000)]
Test read bandwidth measurements with empty 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.
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
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.
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.
Nick Mathewson [Tue, 24 Apr 2018 14:38:19 +0000 (10:38 -0400)]
Merge branch 'travis_distcheck_029' 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
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.
Nick Mathewson [Wed, 18 Apr 2018 18:24:54 +0000 (14:24 -0400)]
Add distcheck support to travis configuration.
Implements 25814.
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.
Nick Mathewson [Mon, 16 Apr 2018 17:48:21 +0000 (13:48 -0400)]
Fix an LCOV exclusion pattern in address.c
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
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
Nick Mathewson [Thu, 5 Apr 2018 12:22:33 +0000 (08:22 -0400)]
Merge branch 'maint-0.2.5' into maint-0.2.9
Karsten Loesing [Thu, 5 Apr 2018 08:42:25 +0000 (10:42 +0200)]
Update geoip and geoip6 to the April 3 2018 database.