]> git.ipfire.org Git - thirdparty/tor.git/log
thirdparty/tor.git
7 years agoMerge branch 'travis-osx-029' into travis-osx-032
teor [Fri, 10 Aug 2018 09:05:49 +0000 (19:05 +1000)] 
Merge branch 'travis-osx-029' into travis-osx-032

Merge asciidoc from 029 with rust from 032.

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 agoMerge branch 'travis-osx-029' into travis-osx-032
teor [Fri, 10 Aug 2018 06:31:35 +0000 (16:31 +1000)] 
Merge branch 'travis-osx-029' into travis-osx-032

Simple merge to resolve order conflicts.

7 years agoTravis: Improve Rust comments
teor [Fri, 10 Aug 2018 06:30:21 +0000 (16:30 +1000)] 
Travis: Improve Rust comments

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 agoChanges file for Rust: backport src/test/test_rust.sh from master
teor [Fri, 10 Aug 2018 01:26:53 +0000 (11:26 +1000)] 
Changes file for Rust: backport src/test/test_rust.sh from master

7 years agoTravis: Use cargo cache
teor [Thu, 9 Aug 2018 05:41:57 +0000 (15:41 +1000)] 
Travis: Use cargo cache

Closes ticket 26952.

7 years agoFix $abs_top_srcdir in test_rust.sh
teor [Fri, 10 Aug 2018 01:22:36 +0000 (11:22 +1000)] 
Fix $abs_top_srcdir in test_rust.sh

Consistently use ../../.. as a fallback for $abs_top_srcdir in
test_rust.sh.

Fixes bug 27093; bugfix on 0.3.4.3-alpha.

7 years agoStop setting $CARGO_HOME
teor [Fri, 10 Aug 2018 01:00:46 +0000 (11:00 +1000)] 
Stop setting $CARGO_HOME

cargo will use the user's $CARGO_HOME, or $HOME/.cargo by default.

Fixes bug 26497; bugfix on 0.3.1.5-alpha.

7 years agoRust: backport src/test/test_rust.sh from master
teor [Fri, 10 Aug 2018 01:09:18 +0000 (11:09 +1000)] 
Rust: backport src/test/test_rust.sh from master

Preparation for 26497.

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: fix a typo
teor [Thu, 9 Aug 2018 12:53:48 +0000 (22:53 +1000)] 
Travis: fix a typo

7 years agoTravis: add rust cargo offline mode
teor [Thu, 9 Aug 2018 12:52:51 +0000 (22:52 +1000)] 
Travis: add rust cargo offline mode

Backports parts of the 0.3.3 travis config.

Part of 24629.

7 years agoTravis: add rust cargo online mode
teor [Thu, 9 Aug 2018 12:32:20 +0000 (22:32 +1000)] 
Travis: add rust cargo online mode

Forward-ports parts of the 0.3.2 travis config on top of the 0.2.9
merge.

Also:
* build rust on clang and gcc, Linux and macOS
* build combinations of non-default options on gcc Linux
* exclude broken builds
* log the rustup version

Part of 24629.

7 years agoTravis: add lzma and zstd, where available
teor [Thu, 9 Aug 2018 09:33:28 +0000 (19:33 +1000)] 
Travis: add lzma and zstd, where available

Forward-ports parts of the 0.3.2 travis config on top of the 0.2.9
merge.

Part of 24629, also fixes 27090.

7 years agoMerge branch 'travis-osx-029' into travis-osx-032
teor [Thu, 9 Aug 2018 12:20:29 +0000 (22:20 +1000)] 
Merge branch 'travis-osx-029' into travis-osx-032

Replace 032 .travis.yml with 029 .travis.yml.
Subsequent commits will restore 032 functionality.

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 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 agoMerge branch 'maint-0.2.9' into maint-0.3.2
Nick Mathewson [Wed, 8 Aug 2018 13:26:22 +0000 (09:26 -0400)] 
Merge branch 'maint-0.2.9' into maint-0.3.2

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 'maint-0.2.9' into maint-0.3.2
Nick Mathewson [Fri, 3 Aug 2018 11:33:45 +0000 (07:33 -0400)] 
Merge branch 'maint-0.2.9' into maint-0.3.2

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 agoMerge remote-tracking branch 'teor/bug26924_032' into maint-0.3.2
Nick Mathewson [Mon, 30 Jul 2018 12:44:40 +0000 (08:44 -0400)] 
Merge remote-tracking branch 'teor/bug26924_032' into maint-0.3.2

7 years agoDon't disable an unsupported compiler warning
Taylor Yu [Thu, 26 Jul 2018 17:32:34 +0000 (12:32 -0500)] 
Don't disable an unsupported compiler warning

Conditionalize the pragma that temporarily disables
-Wunused-const-variable.  Some versions of gcc don't support it.  We
need to do this because of an apparent bug in some libzstd headers.
Fixes bug 26785; bugfix on 0.3.2.11.

7 years agoImprove connection auth logging
teor [Wed, 25 Jul 2018 04:39:31 +0000 (14:39 +1000)] 
Improve connection auth logging

Improve the log message when connection initiators fail to authenticate
direct connections to relays.

Fixes bug 26927; bugfix on 0.3.0.1-alpha.

7 years agoMerge branch 'bug26924_029' into bug26924_032
teor [Wed, 25 Jul 2018 04:33:10 +0000 (14:33 +1000)] 
Merge branch 'bug26924_029' into bug26924_032

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 agoMerge branch 'ticket26647_032' into maint-0.3.2
Nick Mathewson [Fri, 20 Jul 2018 14:42:23 +0000 (10:42 -0400)] 
Merge branch 'ticket26647_032' into maint-0.3.2

7 years agoMerge remote-tracking branch 'teor/bug26853_032' into maint-0.3.2
Nick Mathewson [Thu, 19 Jul 2018 12:30:59 +0000 (08:30 -0400)] 
Merge remote-tracking branch 'teor/bug26853_032' into maint-0.3.2

7 years agoMerge branch 'maint-0.2.9' into maint-0.3.2
Nick Mathewson [Wed, 18 Jul 2018 20:39:25 +0000 (16:39 -0400)] 
Merge branch 'maint-0.2.9' into maint-0.3.2

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 agoMerge branch 'maint-0.2.9' into maint-0.3.2
Nick Mathewson [Wed, 18 Jul 2018 20:39:10 +0000 (16:39 -0400)] 
Merge branch 'maint-0.2.9' into maint-0.3.2

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 'maint-0.2.9' into maint-0.3.2
Nick Mathewson [Wed, 18 Jul 2018 19:03:27 +0000 (15:03 -0400)] 
Merge branch 'maint-0.2.9' into maint-0.3.2

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_key_expiration.sh on Windows until the underlying issue is resolved
teor [Wed, 18 Jul 2018 02:37:12 +0000 (12:37 +1000)] 
SKIP test_key_expiration.sh on Windows until the underlying issue is resolved

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

Fixes bug 26853; bugfix on 0.3.2.1-alpha.

7 years agoMerge branch 'maint-0.2.9' into maint-0.3.2
Nick Mathewson [Tue, 17 Jul 2018 18:56:52 +0000 (14:56 -0400)] 
Merge branch 'maint-0.2.9' into maint-0.3.2

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 agoMerge branch 'maint-0.2.9' into maint-0.3.2
Nick Mathewson [Thu, 12 Jul 2018 18:32:16 +0000 (14:32 -0400)] 
Merge branch 'maint-0.2.9' into maint-0.3.2

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 agoAdd controller support for listing ExtORPort and HTTPTunnelPorts
Nick Mathewson [Tue, 10 Jul 2018 14:50:43 +0000 (10:50 -0400)] 
Add controller support for listing ExtORPort and HTTPTunnelPorts

Closes ticket 26647.

7 years agoMerge remote-tracking branch 'github/bug26269_031' into maint-0.3.2
Nick Mathewson [Mon, 9 Jul 2018 14:17:17 +0000 (10:17 -0400)] 
Merge remote-tracking branch 'github/bug26269_031' into maint-0.3.2

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

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 agoMerge branch 'maint-0.2.9' into maint-0.3.2
Nick Mathewson [Mon, 9 Jul 2018 13:11:41 +0000 (09:11 -0400)] 
Merge branch 'maint-0.2.9' into maint-0.3.2

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 'maint-0.2.9' into maint-0.3.2
Nick Mathewson [Tue, 3 Jul 2018 13:48:03 +0000 (09:48 -0400)] 
Merge branch 'maint-0.2.9' into maint-0.3.2

7 years agoMerge branch 'bug26535_032' into maint-0.3.2
Nick Mathewson [Tue, 3 Jul 2018 13:48:00 +0000 (09:48 -0400)] 
Merge branch 'bug26535_032' into maint-0.3.2

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 agohs_ntor_ref.py: pass only strings to subprocess.Popen
Nick Mathewson [Mon, 2 Jul 2018 18:04:46 +0000 (14:04 -0400)] 
hs_ntor_ref.py: pass only strings to subprocess.Popen

Recent Python3 versions seem to require this on Windows.

Fixes bug 26535; bug copied from ntor_ref.py on 0.3.1.1-alpha.

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 agoMerge branch 'maint-0.3.1' into maint-0.3.2
Nick Mathewson [Sat, 30 Jun 2018 03:12:03 +0000 (23:12 -0400)] 
Merge branch 'maint-0.3.1' into maint-0.3.2

7 years agoMerge branch 'maint-0.2.9' into maint-0.3.1 maint-0.3.1
Nick Mathewson [Sat, 30 Jun 2018 03:11:47 +0000 (23:11 -0400)] 
Merge branch 'maint-0.2.9' into maint-0.3.1

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 agoMerge branch 'maint-0.3.1' into maint-0.3.2
Nick Mathewson [Fri, 29 Jun 2018 17:49:43 +0000 (13:49 -0400)] 
Merge branch 'maint-0.3.1' into maint-0.3.2

7 years agoMerge branch 'maint-0.2.9' into maint-0.3.1
Nick Mathewson [Fri, 29 Jun 2018 17:49:43 +0000 (13:49 -0400)] 
Merge branch 'maint-0.2.9' into maint-0.3.1

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 agoFix some memory errors in the recent coverity fixes.
Nick Mathewson [Fri, 29 Jun 2018 17:48:36 +0000 (13:48 -0400)] 
Fix some memory errors in the recent coverity fixes.

Found by asan on travis :/

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

7 years agoMerge branch 'maint-0.2.9' into maint-0.3.1
Nick Mathewson [Fri, 29 Jun 2018 17:06:15 +0000 (13:06 -0400)] 
Merge branch 'maint-0.2.9' into maint-0.3.1

7 years agoMerge branch 'maint-0.3.1' into maint-0.3.2
Nick Mathewson [Fri, 29 Jun 2018 17:06:15 +0000 (13:06 -0400)] 
Merge branch 'maint-0.3.1' into maint-0.3.2

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

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

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 branch 'maint-0.3.1' into maint-0.3.2
Nick Mathewson [Fri, 29 Jun 2018 17:00:56 +0000 (13:00 -0400)] 
Merge branch 'maint-0.3.1' into maint-0.3.2

7 years agoMerge branch 'maint-0.2.9' into maint-0.3.1
Nick Mathewson [Fri, 29 Jun 2018 17:00:56 +0000 (13:00 -0400)] 
Merge branch 'maint-0.2.9' into maint-0.3.1

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 'maint-0.3.1' into maint-0.3.2
Nick Mathewson [Tue, 26 Jun 2018 13:21:59 +0000 (09:21 -0400)] 
Merge branch 'maint-0.3.1' into maint-0.3.2

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

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 memory leak in helper_add_hsdir_to_networkstatus().
Alexander Færøy [Sat, 23 Jun 2018 11:05:41 +0000 (13:05 +0200)] 
Fix memory leak in helper_add_hsdir_to_networkstatus().

This patch fixes a memory leak in helper_add_hsdir_to_networkstatus()
where the rs object might not get properly freed.

See: Coverity CID 1437427.

7 years agoFix memory leak in new_establish_intro_cell().
Alexander Færøy [Sat, 23 Jun 2018 08:48:42 +0000 (10:48 +0200)] 
Fix memory leak in new_establish_intro_cell().

This patch fixes a memory leak in new_establish_intro_cell() that could
happen if a test assertion fails and the *cell_out value isn't properly
free'd.

See: Coverity CID 1437445

7 years agoFix memory leak in test_channelpadding_consensus().
Alexander Færøy [Sat, 23 Jun 2018 10:52:04 +0000 (12:52 +0200)] 
Fix memory leak in test_channelpadding_consensus().

The relay variable is always allocated, but might not be freed before we
return from this function.

See: Coverity CID 1437431

7 years agoFix memory link in test_link_specifier().
Alexander Færøy [Sat, 23 Jun 2018 10:39:20 +0000 (12:39 +0200)] 
Fix memory link in test_link_specifier().

This patch fixes a memory leak in test_link_specifier() where ls might
not get freed in case one of the test macros fails.

See: Coverity CID 1437434.

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

This patch fixes a memory leak in decode_link_specifiers() where the
hs_spec variable might leak if the default label is taken in the
switch/case expression.

See: Coverity CID 1437437.

7 years agoFix memory leak in client_likes_consensus().
Alexander Færøy [Sat, 23 Jun 2018 08:33:40 +0000 (10:33 +0200)] 
Fix memory leak in client_likes_consensus().

This patches fixes a memory leak in client_likes_consensus() where if
consensus_cache_entry_get_voter_id_digests() would fail we would return
without having free'd the voters list.

See: Coverity CID 1437447

7 years agoFix potential memory leak in hs_helper_build_hs_desc_impl().
Alexander Færøy [Sat, 23 Jun 2018 08:27:10 +0000 (10:27 +0200)] 
Fix potential memory leak in hs_helper_build_hs_desc_impl().

This patch fixes a memory leak in hs_helper_build_hs_desc_impl() where
if a test assertion would fail we would leak the storage that `desc`
points to.

See: Coverity CID 1437448

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

This patch fixes a memory leak in pick_hsdir_v3() where we might return
early, but forgot to free the responsible_hsdirs variable. We solve this
by not allocating storage for responsible_hsdirs until it's actually
needed.

See: Coverity CID 1437449

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 agoFix potential memory leak in hs_helper_build_intro_point().
Alexander Færøy [Fri, 22 Jun 2018 22:44:33 +0000 (00:44 +0200)] 
Fix potential memory leak in hs_helper_build_intro_point().

This patch fixes a potential memory leak in
hs_helper_build_intro_point() where a `goto done` is called before the
`intro_point` variable have been assigned to the value of the `ip`
variable.

See: Coverity CID 1437460
See: Coverity CID 1437456

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 agoMerge branch 'maint-0.3.1' into maint-0.3.2
Nick Mathewson [Sun, 17 Jun 2018 23:24:48 +0000 (19:24 -0400)] 
Merge branch 'maint-0.3.1' into maint-0.3.2

7 years agoMerge branch 'maint-0.2.9' into maint-0.3.1
Nick Mathewson [Sun, 17 Jun 2018 23:24:48 +0000 (19:24 -0400)] 
Merge branch 'maint-0.2.9' into maint-0.3.1

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