]>
git.ipfire.org Git - thirdparty/tor.git/log
Nick Mathewson [Sun, 1 Jul 2018 14:22:21 +0000 (10:22 -0400)]
Merge branch 'maint-0.3.3' into maint-0.3.4
Nick Mathewson [Sun, 1 Jul 2018 14:22:18 +0000 (10:22 -0400)]
Merge remote-tracking branch 'dgoulet/bug26523_033_01' into maint-0.3.3
Nick Mathewson [Sat, 30 Jun 2018 13:15:34 +0000 (09:15 -0400)]
Merge remote-tracking branch 'catalyst-github/bug25895_034-squashed' into maint-0.3.4
Nick Mathewson [Sat, 30 Jun 2018 03:12:03 +0000 (23:12 -0400)]
Merge branch 'maint-0.3.2' into maint-0.3.3
Nick Mathewson [Sat, 30 Jun 2018 03:12:03 +0000 (23:12 -0400)]
Merge branch 'maint-0.3.3' into maint-0.3.4
Nick Mathewson [Sat, 30 Jun 2018 03:12:03 +0000 (23:12 -0400)]
Merge branch 'maint-0.3.1' into maint-0.3.2
Nick Mathewson [Sat, 30 Jun 2018 03:11:47 +0000 (23:11 -0400)]
Merge branch 'maint-0.2.9' into maint-0.3.1
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 [Sat, 30 Jun 2018 03:08:45 +0000 (23:08 -0400)]
Restor EOL@EOF in routerlist.c
Nick Mathewson [Fri, 29 Jun 2018 17:49:43 +0000 (13:49 -0400)]
Merge branch 'maint-0.3.2' into maint-0.3.3
Nick Mathewson [Fri, 29 Jun 2018 17:49:43 +0000 (13:49 -0400)]
Merge 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.2.9' into maint-0.3.1
Nick Mathewson [Fri, 29 Jun 2018 17:49:43 +0000 (13:49 -0400)]
Merge branch 'maint-0.3.3' into maint-0.3.4
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:48:36 +0000 (13:48 -0400)]
Fix some memory errors in the recent coverity fixes.
Found by asan on travis :/
Nick Mathewson [Fri, 29 Jun 2018 17:07:13 +0000 (13:07 -0400)]
Merge branch 'maint-0.3.2' into maint-0.3.3
Nick Mathewson [Fri, 29 Jun 2018 17:07:13 +0000 (13:07 -0400)]
Merge branch 'maint-0.3.3' into maint-0.3.4
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
Nick Mathewson [Fri, 29 Jun 2018 17:06:15 +0000 (13:06 -0400)]
Merge 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.3.2' into maint-0.3.3
Nick Mathewson [Fri, 29 Jun 2018 17:06:15 +0000 (13:06 -0400)]
Merge branch 'maint-0.3.3' into maint-0.3.4
Nick Mathewson [Fri, 29 Jun 2018 17:06:15 +0000 (13:06 -0400)]
Merge branch 'maint-0.3.1' into maint-0.3.2
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
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
Nick Mathewson [Fri, 29 Jun 2018 17:04:29 +0000 (13:04 -0400)]
Changes file for 26467
Nick Mathewson [Fri, 29 Jun 2018 17:02:56 +0000 (13:02 -0400)]
Merge branch 'maint-0.3.3' into maint-0.3.4
Nick Mathewson [Fri, 29 Jun 2018 17:00:56 +0000 (13:00 -0400)]
Merge branch 'maint-0.3.2' into maint-0.3.3
Nick Mathewson [Fri, 29 Jun 2018 17:00:56 +0000 (13:00 -0400)]
Merge 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.2.9' into maint-0.3.1
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
Alex Xu (Hello71) [Wed, 16 May 2018 23:35:12 +0000 (19:35 -0400)]
Fix Rust cross compilation.
David Goulet [Wed, 27 Jun 2018 16:20:39 +0000 (12:20 -0400)]
control: Make HSPOST properly parse HSADDRESS= param
For HSv3, the HSADDRESS= wasn't properly parsed for the HSPOST command. It now
correctly use it and furthermore sends back a "200 OK" in case the command is
successful for a v3 descriptor.
Fixes #26523
Signed-off-by: David Goulet <dgoulet@torproject.org>
Nick Mathewson [Tue, 26 Jun 2018 13:21:59 +0000 (09:21 -0400)]
Merge branch 'maint-0.3.3' into maint-0.3.4
Nick Mathewson [Tue, 26 Jun 2018 13:21:59 +0000 (09:21 -0400)]
Merge branch 'maint-0.3.2' into maint-0.3.3
Nick Mathewson [Tue, 26 Jun 2018 13:21:59 +0000 (09:21 -0400)]
Merge 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.2.9' into maint-0.3.1
Nick Mathewson [Tue, 26 Jun 2018 13:21:55 +0000 (09:21 -0400)]
Merge branch 'feature26372_029' into maint-0.2.9
Nick Mathewson [Tue, 26 Jun 2018 13:12:23 +0000 (09:12 -0400)]
Bump version to 0.3.4.3-alpha-dev
Nick Mathewson [Mon, 25 Jun 2018 18:07:23 +0000 (14:07 -0400)]
Bump to 0.3.4.3-alpha.
Nick Mathewson [Fri, 22 Jun 2018 22:22:20 +0000 (18:22 -0400)]
Add some casts to get test_dir.c compiling on windows.
Fixed bug 26479. Bug introduced by
0a6f4627a4292e4 ; bug not in any
released version.
Nick Mathewson [Fri, 22 Jun 2018 18:47:48 +0000 (14:47 -0400)]
Fix test_geoip failures on windows by writing file in binary mode.
Fixes bug 26480; bug appeared when we re-enabled the geoip tests on
windows. Bug originally introduced by our fix to 25787; bug not in
any released Tor.
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 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 .
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
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
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 .
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 .
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
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
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
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
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
Nick Mathewson [Thu, 21 Jun 2018 13:28:50 +0000 (09:28 -0400)]
Prefer recent Python 3 in autoconf.
Closes ticket 26372.
Nick Mathewson [Thu, 21 Jun 2018 13:01:00 +0000 (09:01 -0400)]
Hang on; this branch is supposed to be 0.3.4.2-alpha-dev.
Nick Mathewson [Thu, 21 Jun 2018 12:56:27 +0000 (08:56 -0400)]
Merge branch 'bug25787_squashed' into maint-0.3.4
Nick Mathewson [Mon, 11 Jun 2018 21:49:38 +0000 (17:49 -0400)]
Revise geoip tests to not require paths of actual geoip config
When I wrote the first one of these, it needed the path of the geoip
file. But that doesn't translate well in at least two cases:
- Mingw, where the compile-time path is /c/foo/bar and the
run-time path is c:\foo\bar.
- Various CI weirdnesses, where we cross-compile a test binary,
then copy it into limbo and expect it to work.
Together, these problems precluded these tests running on windows.
So, instead let's just generate some minimal files ourselves, and
test against them.
Fixes bug 25787
Nick Mathewson [Thu, 21 Jun 2018 12:54:02 +0000 (08:54 -0400)]
Merge branch 'maint-0.3.3' into maint-0.3.4
Nick Mathewson [Thu, 21 Jun 2018 12:53:37 +0000 (08:53 -0400)]
Fix changes file for memory leak.
Nick Mathewson [Thu, 21 Jun 2018 12:38:17 +0000 (08:38 -0400)]
Merge branch 'additional_rust_test_fixes' into maint-0.3.4
Nick Mathewson [Thu, 21 Jun 2018 12:36:48 +0000 (08:36 -0400)]
Merge branch 'maint-0.3.3' into maint-0.3.4
Nick Mathewson [Thu, 21 Jun 2018 00:00:56 +0000 (20:00 -0400)]
Merge remote-tracking branch 'catalyst-github/allow_fail_rust' into maint-0.3.4
Roger Dingledine [Wed, 20 Jun 2018 23:43:58 +0000 (19:43 -0400)]
fix memory leak in protover.c
Fix a memory leak where directory authorities would leak a chunk of
memory for every router descriptor every time they considered voting.
This bug was taking down directory authorities in the live network due
to out-of-memory issues.
Fixes bug 26435; bugfix on 0.3.3.6.
Nick Mathewson [Wed, 20 Jun 2018 23:32:01 +0000 (19:32 -0400)]
add build.rs to EXTRA_DIST
Nick Mathewson [Wed, 20 Jun 2018 23:16:25 +0000 (19:16 -0400)]
Allow spaces in CCLD in linker.sh
Hello71 spotted this first.
Nick Mathewson [Wed, 20 Jun 2018 23:05:11 +0000 (19:05 -0400)]
eol@eof is still the law in 0.3.4 :(
Nick Mathewson [Wed, 20 Jun 2018 22:02:49 +0000 (18:02 -0400)]
Add a leak suppression for backtrace_alloc
This appears to be an internal rust thing: I don't know why it's
leaking. We should investigate further.
Nick Mathewson [Wed, 20 Jun 2018 21:53:51 +0000 (17:53 -0400)]
Merge branch 'maint-0.3.4' into additional_rust_test_fixes
Nick Mathewson [Wed, 20 Jun 2018 21:53:09 +0000 (17:53 -0400)]
Use different RUST_LINKER_OPTIONS for sanitizers
These appear to work for me.
Nick Mathewson [Wed, 20 Jun 2018 21:49:06 +0000 (17:49 -0400)]
Fix clang warnings introduced by
9f2b887c5d251b93ee9def708
Nick Mathewson [Wed, 20 Jun 2018 21:28:28 +0000 (17:28 -0400)]
Fix memory leak in CryptoDigest type
If you're owning a C pointer, you need to implement Drop.
Nick Mathewson [Wed, 20 Jun 2018 21:16:44 +0000 (17:16 -0400)]
Disable doctests in src/rust/crypto module.
These all need C linking to work, and so far, rustdoc does not seem
to respect cargo setting about build scripts or RUSTOPTIONS.
Nick Mathewson [Wed, 20 Jun 2018 21:08:00 +0000 (17:08 -0400)]
Fix bugs in rust digest tests
Nick Mathewson [Wed, 20 Jun 2018 21:07:47 +0000 (17:07 -0400)]
Merge branch 'rust_build_script_v3' into additional_rust_test_fixes
Isis Lovecruft [Mon, 18 Jun 2018 18:37:07 +0000 (18:37 +0000)]
rust: Remove --all-features flag from `cargo test` call in test_rust.sh.
We'd like to feature gate code that calls C from Rust, as a workaround
to several linker issues when running `cargo test` (#25386), and we
can't feature gate anything out of test code if `cargo test` is called
with `--all-features`.
* FIXES #26400: https://bugs.torproject.org/26400
Taylor Yu [Wed, 20 Jun 2018 20:10:18 +0000 (15:10 -0500)]
Allow Rust to fail for now
Multiple issues are preventing Travis CI from passing with Rust right
now.
Nick Mathewson [Wed, 20 Jun 2018 12:29:38 +0000 (08:29 -0400)]
eol@eof in test-dir.c
Nick Mathewson [Wed, 20 Jun 2018 12:02:27 +0000 (08:02 -0400)]
Merge branch 'asn_bug24977_final_squashed' into maint-0.3.4
George Kadianakis [Wed, 13 Jun 2018 10:47:36 +0000 (13:47 +0300)]
Add changes file for #24977.
George Kadianakis [Wed, 13 Jun 2018 10:28:39 +0000 (13:28 +0300)]
Recreate nodelist before use if it's outdated.
We currently only do the check when we are about to use the HSDir indices.
George Kadianakis [Tue, 12 Jun 2018 11:29:06 +0000 (14:29 +0300)]
Recreate voting schedule before use if it's outdated.
Isis Lovecruft [Mon, 18 Jun 2018 18:33:49 +0000 (18:33 +0000)]
rust: Remove redundant "testing" feature from tor_log crate.
It was synonymous with the builtin "test" feature.
* FIXES #26399: https://bugs.torproject.org/26399
Nick Mathewson [Wed, 20 Jun 2018 11:50:00 +0000 (07:50 -0400)]
Merge branch 'rl1987_bug26196_rebased_034' into maint-0.3.4
rl1987 [Sun, 3 Jun 2018 11:56:28 +0000 (14:56 +0300)]
Add changes file
rl1987 [Sun, 3 Jun 2018 11:48:20 +0000 (14:48 +0300)]
Enable DEBUG_SMARTLIST for entire codebase when expensive hardening is on
rl1987 [Sun, 3 Jun 2018 11:33:31 +0000 (14:33 +0300)]
Enable DEBUG_SMARTLIST in unit tests
rl1987 [Sun, 3 Jun 2018 10:34:24 +0000 (13:34 +0300)]
Refrain from accessing empty smartlist in test_bridges_clear_bridge_list
Just check that smartlist length is zero instead
Nick Mathewson [Wed, 20 Jun 2018 11:35:13 +0000 (07:35 -0400)]
Merge remote-tracking branch 'catalyst-github/bug26415_034' into maint-0.3.4
Alexander Færøy [Tue, 19 Jun 2018 21:10:12 +0000 (23:10 +0200)]
Fix linker errors when building Tor.
This patch fixes linking errors when compiling Tor with the dirauth
module disabled.
See: https://bugs.torproject.org/26418
Taylor Yu [Mon, 18 Jun 2018 18:41:38 +0000 (13:41 -0500)]
Fix compilation of Rust crypto doctests
The doctests for src/rust/crypto don't compile for multiple reasons,
including some missing exports and incorrect identifier paths. Fixes
bug 26415; bugfix on 0.3.4.1-alpha.
Nick Mathewson [Mon, 18 Jun 2018 21:08:23 +0000 (17:08 -0400)]
Use a rust build script to set linker options correctly for tests.
We need this trick because some of our Rust tests depend on our C
code, which in turn depend on other native libraries, which thereby
pulls a whole mess of our build system into "cargo test".
To solve this, we add a build script (build.rs) to set most of the
options that we want based on the contents of config.rust. Some
options can't be set, and need to go to the linker directly: we use
a linker replacement (link_rust.sh) for these. Both config.rust and
link_rust.sh are generated by autoconf for us.
This patch on its own should enough to make the crypto test build,
but not necessarily enough to make it pass.
Nick Mathewson [Mon, 18 Jun 2018 21:03:52 +0000 (17:03 -0400)]
Remove duplicate MODULE_DIRAUTH_SOURCES from libtor_testing.a
This was already added to LIBTOR_A_SOURCES; it doesn't need to get
added again.
Fixes bug 26402. Bugfix on 0.3.4.1-alpha.
Nick Mathewson [Mon, 18 Jun 2018 21:06:18 +0000 (17:06 -0400)]
Revert "Remove duplicate MODULE_DIRAUTH_SOURCES from libtor_testing.a"
This reverts commit
70d91bd059869a0ecf24ceb66942ada4f66f03c9 .
Nick Mathewson [Mon, 18 Jun 2018 21:03:52 +0000 (17:03 -0400)]
Remove duplicate MODULE_DIRAUTH_SOURCES from libtor_testing.a
This was already added to LIBTOR_A_SOURCES; it doesn't need to get
added again.
Fixes bug 26402. Bugfix on 0.3.4.1-alpha.
Nick Mathewson [Mon, 18 Jun 2018 17:10:24 +0000 (13:10 -0400)]
Merge branch 'rust_rand_tests' into maint-0.3.4
Nick Mathewson [Sun, 17 Jun 2018 23:24:48 +0000 (19:24 -0400)]
Merge 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.2.9' into maint-0.3.1
Nick Mathewson [Sun, 17 Jun 2018 23:24:48 +0000 (19:24 -0400)]
Merge branch 'maint-0.3.2' into maint-0.3.3
Nick Mathewson [Sun, 17 Jun 2018 23:24:48 +0000 (19:24 -0400)]
Merge branch 'maint-0.3.3' into maint-0.3.4