]>
git.ipfire.org Git - thirdparty/tor.git/log
Nick Mathewson [Wed, 3 Apr 2019 13:27:44 +0000 (09:27 -0400)]
Merge branch 'maint-0.4.0'
Nick Mathewson [Wed, 3 Apr 2019 13:27:44 +0000 (09:27 -0400)]
Merge branch 'maint-0.3.5' into maint-0.4.0
Nick Mathewson [Wed, 3 Apr 2019 13:27:43 +0000 (09:27 -0400)]
Merge branch 'maint-0.3.4' into maint-0.3.5
Nick Mathewson [Wed, 3 Apr 2019 13:27:42 +0000 (09:27 -0400)]
Merge branch 'maint-0.2.9' into maint-0.3.4
Nick Mathewson [Wed, 3 Apr 2019 12:33:40 +0000 (08:33 -0400)]
Merge remote-tracking branch 'tor-github/pr/860'
Nick Mathewson [Wed, 3 Apr 2019 12:32:21 +0000 (08:32 -0400)]
Merge branch 'pr_883_squashed'
Elichai Turkel [Mon, 1 Apr 2019 18:50:02 +0000 (21:50 +0300)]
Removed the use of expect from CodingStandardsRust
Karsten Loesing [Wed, 3 Apr 2019 07:26:28 +0000 (09:26 +0200)]
Update geoip and geoip6 to the April 2 2019 database.
teor [Wed, 3 Apr 2019 03:12:17 +0000 (13:12 +1000)]
Merge remote-tracking branch 'tor-github/pr/863'
teor [Tue, 2 Apr 2019 01:47:05 +0000 (11:47 +1000)]
Merge remote-tracking branch 'tor-github/pr/875'
teor [Tue, 2 Apr 2019 01:46:42 +0000 (11:46 +1000)]
Merge remote-tracking branch 'tor-github/pr/864'
teor [Tue, 2 Apr 2019 01:45:39 +0000 (11:45 +1000)]
Merge branch 'maint-0.4.0'
teor [Tue, 2 Apr 2019 01:45:31 +0000 (11:45 +1000)]
Merge branch 'maint-0.3.5' into maint-0.4.0
teor [Tue, 2 Apr 2019 01:45:22 +0000 (11:45 +1000)]
Merge branch 'maint-0.3.4' into maint-0.3.5
teor [Tue, 2 Apr 2019 01:45:13 +0000 (11:45 +1000)]
Merge branch 'maint-0.2.9' into maint-0.3.4
Nick Mathewson [Sun, 31 Mar 2019 01:07:15 +0000 (21:07 -0400)]
bug_occurred: a place where we assumed that "buf" was still a buffer
In
9c132a5f9e87a2cd0f we replaced "buf" with a pointer and replaced
one instance of snprintf with asprintf -- but there was still one
snprintf left over, being crashy.
Fixes bug 29967; bug not in any released Tor. This is CID
1444262 .
Nick Mathewson [Fri, 29 Mar 2019 18:30:33 +0000 (14:30 -0400)]
allow circuituse.c to get even longer.
Nick Mathewson [Fri, 29 Mar 2019 18:28:48 +0000 (14:28 -0400)]
Merge branch 'ticket29662_squashed' into ticket29662_squashed_merged
rl1987 [Fri, 29 Mar 2019 16:38:27 +0000 (18:38 +0200)]
Check for NULL in tor_assertf_nonfatal()
rl1987 [Fri, 22 Mar 2019 11:44:02 +0000 (13:44 +0200)]
Refrain from using static buffer for assert failure message; call tor_asprintf() instead
rl1987 [Tue, 5 Mar 2019 16:02:24 +0000 (18:02 +0200)]
Add changes file
rl1987 [Tue, 5 Mar 2019 15:58:31 +0000 (17:58 +0200)]
Use tor_assertf{_nonfatal} in code
rl1987 [Tue, 5 Mar 2019 15:02:03 +0000 (17:02 +0200)]
Silence compiler warnings
Nick Mathewson [Thu, 28 Mar 2019 13:29:00 +0000 (09:29 -0400)]
test_routerkeys.c: Always check mkdir() return value
After this fix, we have no more unchecked mkdir() calls.
Bug 29939; CID 144254. Bugfix on 0.2.7.2-alpha.
Nick Mathewson [Thu, 28 Mar 2019 13:19:23 +0000 (09:19 -0400)]
Don't unconditionally deref pub and sub in lint_message_consistency
This can't actually result in a null pointer dereference, since
pub_excl and sub_excl are only set when the corresponding smartlists
are nonempty. But coverity isn't smart enough to figure that out,
and we shouldn't really be depending on it.
Bug 29938; CID
1444257 . Bug not in any released Tor.
George Kadianakis [Wed, 27 Mar 2019 12:30:53 +0000 (14:30 +0200)]
Merge branch 'tor-github/pr/859'
teor [Wed, 27 Mar 2019 02:31:37 +0000 (12:31 +1000)]
Merge branch 'maint-0.4.0'
teor [Wed, 27 Mar 2019 02:31:07 +0000 (12:31 +1000)]
Merge remote-tracking branch 'tor-github/pr/835' into maint-0.4.0
teor [Wed, 27 Mar 2019 01:07:55 +0000 (11:07 +1000)]
Stop assuming that /usr/bin/python3 exists
For scripts that work with python2, use /usr/bin/python.
Otherwise, use /usr/bin/env python3.
Fixes bug 29913; bugfix on 0.2.5.3-alpha.
Nick Mathewson [Wed, 27 Mar 2019 00:04:09 +0000 (20:04 -0400)]
practracker updates from messaging_v3 merge
(main.c is a bit better, but shutdown.c is ugly)
Nick Mathewson [Wed, 27 Mar 2019 00:13:49 +0000 (20:13 -0400)]
Merge branch 'messaging_v3' into messaging_v3_merged
Nick Mathewson [Wed, 27 Mar 2019 00:07:26 +0000 (20:07 -0400)]
changes file for pubsub code
teor [Wed, 27 Mar 2019 00:02:55 +0000 (10:02 +1000)]
Merge branch 'maint-0.4.0'
teor [Wed, 27 Mar 2019 00:02:47 +0000 (10:02 +1000)]
Merge branch 'maint-0.3.5' into maint-0.4.0
teor [Wed, 27 Mar 2019 00:02:40 +0000 (10:02 +1000)]
Merge branch 'maint-0.3.4' into maint-0.3.5
teor [Wed, 27 Mar 2019 00:01:45 +0000 (10:01 +1000)]
Merge remote-tracking branch 'tor-github/pr/820' into maint-0.3.4
Nick Mathewson [Tue, 26 Mar 2019 23:56:39 +0000 (19:56 -0400)]
Remove message/subsystem numbers from log messages
Having the numbers in those messages makes some of the unit test
unstable, by causing them to depend on the initialization order of
the naming objects.
teor [Tue, 26 Mar 2019 23:40:03 +0000 (09:40 +1000)]
practracker: regen in master, for bug28925 merged to 0.4.0 and later
python3 scripts/maint/practracker/practracker.py --regen
teor [Tue, 26 Mar 2019 23:36:55 +0000 (09:36 +1000)]
Merge branch 'maint-0.4.0'
teor [Tue, 26 Mar 2019 23:36:26 +0000 (09:36 +1000)]
Merge remote-tracking branch 'tor-github/pr/836' into maint-0.4.0
Nick Mathewson [Tue, 26 Mar 2019 23:28:28 +0000 (19:28 -0400)]
Regenerate practracker file from scratch.
Closes ticket 29912.
Since this is the first time that practracker has had a stable
output order, this diff will be larger than usual.
Nick Mathewson [Tue, 26 Mar 2019 23:27:54 +0000 (19:27 -0400)]
Merge branch 'practracker_regen'
George Kadianakis [Tue, 26 Mar 2019 14:41:07 +0000 (16:41 +0200)]
Merge branch 'tor-github/pr/842'
Nick Mathewson [Tue, 26 Mar 2019 13:43:46 +0000 (09:43 -0400)]
Add new exceptions.txt entries
Nick Mathewson [Tue, 26 Mar 2019 13:39:46 +0000 (09:39 -0400)]
Merge branch 'bug29805_rebased_squashed'
George Kadianakis [Mon, 25 Mar 2019 13:27:03 +0000 (15:27 +0200)]
prob-distr: Some more comments about the initializers.
Based on patches and review comments by Riastradh and Catalyst.
Co-authored-by: Taylor R Campbell <campbell+tor@mumble.net>
Co-authored-by: Taylor Yu <catalyst@torproject.org>
George Kadianakis [Thu, 21 Mar 2019 18:57:42 +0000 (20:57 +0200)]
prob-distr: Silence some coverity warnings.
George Kadianakis [Tue, 26 Mar 2019 13:34:54 +0000 (15:34 +0200)]
Merge branch 'tor-github/pr/709'
George Kadianakis [Tue, 26 Mar 2019 13:16:37 +0000 (15:16 +0200)]
Merge branch 'maint-0.4.0'
George Kadianakis [Tue, 26 Mar 2019 13:16:21 +0000 (15:16 +0200)]
Merge branch 'tor-github/pr/847' into maint-0.4.0
Nick Mathewson [Tue, 26 Mar 2019 12:42:14 +0000 (08:42 -0400)]
practracker: update usage note in docstring
teor [Tue, 26 Mar 2019 09:31:17 +0000 (19:31 +1000)]
Merge remote-tracking branch 'tor-github/pr/724'
teor [Tue, 26 Mar 2019 09:16:06 +0000 (19:16 +1000)]
Merge branch 'maint-0.4.0'
teor [Tue, 26 Mar 2019 09:15:46 +0000 (19:15 +1000)]
Merge remote-tracking branch 'tor-github/pr/852' into maint-0.4.0
rl1987 [Tue, 26 Mar 2019 07:49:32 +0000 (09:49 +0200)]
Add header guards to ptr_helpers.h
juga0 [Fri, 21 Dec 2018 17:10:19 +0000 (17:10 +0000)]
changes: add file for #21377
juga0 [Mon, 19 Nov 2018 17:27:41 +0000 (17:27 +0000)]
dircache: fix identation and remove unneded goto
juga0 [Thu, 8 Nov 2018 09:13:54 +0000 (09:13 +0000)]
bwauth: remove declaring args, they are now in use
juga0 [Wed, 7 Nov 2018 12:40:51 +0000 (12:40 +0000)]
test: check that .../bandwidth.z is compressed
juga0 [Wed, 7 Nov 2018 12:38:45 +0000 (12:38 +0000)]
test: Check bw file cache lifetime
juga0 [Wed, 7 Nov 2018 12:19:20 +0000 (12:19 +0000)]
bwauth: increment bw file cache lifetime
Increment bw file cache lifetime when serving it by HTTP.
And add a constant to define that lifetime.
juga0 [Wed, 7 Nov 2018 12:15:31 +0000 (12:15 +0000)]
bwauth: check and use compression serving bw file
juga0 [Wed, 7 Nov 2018 12:04:09 +0000 (12:04 +0000)]
bwauth: check if a bw file could be read
Before serving it by HTTP.
juga0 [Wed, 7 Nov 2018 08:49:51 +0000 (08:49 +0000)]
bwauth: use flag to do not warn when file is missing
Use flag to do not warn when the bandwidth file is missing trying
to serve it by http.
Also remove double space in the assignement.
juga0 [Fri, 2 Nov 2018 18:38:46 +0000 (18:38 +0000)]
Serve bandwidth file used in the next vote
When a directory authority is using a bandwidth file to obtain the
bandwidth values that will be included in the next vote, serve this
bandwidth file at /tor/status-vote/next/bandwidth.z.
teor [Tue, 26 Mar 2019 06:57:04 +0000 (16:57 +1000)]
Merge branch 'maint-0.4.0'
teor [Tue, 26 Mar 2019 06:56:45 +0000 (16:56 +1000)]
Merge remote-tracking branch 'tor-github/pr/848' into maint-0.4.0
teor [Tue, 26 Mar 2019 03:02:37 +0000 (13:02 +1000)]
Merge remote-tracking branch 'tor-github/pr/833'
teor [Tue, 26 Mar 2019 02:55:48 +0000 (12:55 +1000)]
Merge remote-tracking branch 'tor-github/pr/834'
rl1987 [Wed, 20 Mar 2019 17:44:54 +0000 (19:44 +0200)]
Fix CID
1444119
Let's use the same function exit point for BUG() codepath that we're using
for every other exit condition. That way, we're not forgetting to clean up
the memarea.
teor [Thu, 21 Mar 2019 13:35:56 +0000 (23:35 +1000)]
test/dir: add a 4th argument to dirserv_read_measured_bandwidths()
Part of 29806.
teor [Tue, 26 Mar 2019 01:48:52 +0000 (11:48 +1000)]
Merge branch 'ticket29806_035_squashed_merged' into ticket29806_040_squashed_merged
George Kadianakis [Mon, 25 Mar 2019 23:17:58 +0000 (01:17 +0200)]
Merge branch 'tor-github/pr/839'
Nick Mathewson [Thu, 14 Mar 2019 19:41:45 +0000 (15:41 -0400)]
Rename one case of c_type to c_ptr_type.
Nick Mathewson [Thu, 14 Mar 2019 19:39:14 +0000 (15:39 -0400)]
Rename DISPATCH_DEFINE_TYPE() to DISPATCH_REGISTER_TYPE()
Also fix a grammar error in a comment.
Nick Mathewson [Thu, 14 Mar 2019 19:35:41 +0000 (15:35 -0400)]
Various documentation notes and tweaks for pubsub
Nick Mathewson [Thu, 14 Mar 2019 19:22:19 +0000 (15:22 -0400)]
Log warning messages _before_ exiting because of earlier dcfg failure
This helps diagnostics.
Nick Mathewson [Thu, 14 Mar 2019 19:15:03 +0000 (15:15 -0400)]
Use actual pointers in dispatch_cfg.c.
Previously, I had used integers encoded as pointers. This
introduced a flaw: NULL represented both the integer zero, and the
absence of a setting. This in turn made the checks in
cfg_msg_set_{type,chan}() not actually check for an altered value if
the previous value had been set to zero.
Also, I had previously kept a pointer to a dispatch_fypefns_t rather
than making a copy of it. This meant that if the dispatch_typefns_t
were changed between defining the typefns and creating the
dispatcher, we'd get the modified version.
Found while investigating coverage in pubsub_add_{pub,sub}_()
Nick Mathewson [Thu, 14 Mar 2019 17:23:58 +0000 (13:23 -0400)]
Add a test for pubsub_items_clear_bindings()
Nick Mathewson [Thu, 14 Mar 2019 15:50:45 +0000 (11:50 -0400)]
Add test for dispatch_send() fast path.
Nick Mathewson [Thu, 14 Mar 2019 13:37:44 +0000 (09:37 -0400)]
practracker: split shutdown code out of main.c
This is necessary to get the number of includes in main.c back under
control. (In the future, we could just use the subsystem manager for
this kind of stuff.)
Nick Mathewson [Thu, 14 Mar 2019 12:54:20 +0000 (08:54 -0400)]
practracker compliance: split lint_message into more logical parts
Nick Mathewson [Wed, 13 Mar 2019 20:30:56 +0000 (16:30 -0400)]
pubsub: add test for items_out in builder_finalize()
Nick Mathewson [Wed, 13 Mar 2019 19:56:58 +0000 (15:56 -0400)]
coverage: Exclude lines in pubsub_pub that can only be reached on bug
Nick Mathewson [Wed, 13 Mar 2019 19:54:26 +0000 (15:54 -0400)]
pubsub_check.c: Stop accepting NULL prefix, which we never send.
(Our code to handle it was broken, too)
Nick Mathewson [Wed, 13 Mar 2019 19:52:48 +0000 (15:52 -0400)]
dispatch: Test behavior of formatting type with no set fmt function.
Nick Mathewson [Wed, 13 Mar 2019 19:48:45 +0000 (15:48 -0400)]
Unit test for namemap_fmt_name()
Nick Mathewson [Wed, 13 Mar 2019 19:41:36 +0000 (15:41 -0400)]
pubsub test: add a test to make sure typefns can't be changed.
Nick Mathewson [Tue, 12 Mar 2019 23:25:31 +0000 (19:25 -0400)]
Try a different approach to making publish function seem used.
We want the DISPATCH_ADD_PUB() macro to count as making a
DECLARE_PUBLISH() invocation "used", so let's try a new approach
that preserves that idea. The old one apparently did not work for
some versions of osx clang.
Nick Mathewson [Tue, 12 Mar 2019 23:11:52 +0000 (19:11 -0400)]
move pubsub_connector_t typedef to pubsub_connect.h
Nick Mathewson [Tue, 12 Mar 2019 22:57:28 +0000 (18:57 -0400)]
Correct doxygen @file directives
Nick Mathewson [Tue, 12 Mar 2019 22:53:24 +0000 (18:53 -0400)]
Document several issues found by Taylor
Nick Mathewson [Mon, 11 Mar 2019 20:57:33 +0000 (16:57 -0400)]
pubsub: install libevent events separately from the_dispatcher.
Also, add documentation, and fix a free-on-error bug.
Nick Mathewson [Mon, 11 Mar 2019 20:02:38 +0000 (16:02 -0400)]
Connect the mainloop pubsub dispatcher on startup; free it on shutdown.
Nick Mathewson [Mon, 11 Mar 2019 19:56:13 +0000 (15:56 -0400)]
Add msgtypes.h include to pubsub_build.h
(The header won't compile without it.)
Nick Mathewson [Tue, 15 Jan 2019 15:27:39 +0000 (10:27 -0500)]
Code to manage publish/subscribe setup via subsystem interface.
This commit has the necessary logic to run the publish/subscribe
system from the mainloop, and to initialize it on startup and tear
it down later.
Nick Mathewson [Mon, 14 Jan 2019 16:29:21 +0000 (11:29 -0500)]
Pubsub: macros for ease-of-use and typesafety.
Nick Mathewson [Tue, 15 Jan 2019 15:46:01 +0000 (10:46 -0500)]
Add function to clear publish bindings.
When we clean up, we'd like to clear all the bindings that refer to
a dispatch_t, so that they don't have dangling pointers to it.
Nick Mathewson [Tue, 15 Jan 2019 14:01:41 +0000 (09:01 -0500)]
pubsub: relationship checking functionality
This code tries to prevent a large number of possible errors by
enforcing different restrictions on the messages that different
modules publish and subscribe to.
Some of these rules are probably too strict, and some too lax: we
should feel free to change them as needed as we move forward and
learn more.
Nick Mathewson [Tue, 15 Jan 2019 14:01:20 +0000 (09:01 -0500)]
Pubsub: an OO layer on top of lib/dispatch
This "publish/subscribe" layer sits on top of lib/dispatch, and
tries to provide more type-safety and cross-checking for the
lower-level layer.
Even with this commit, we're still not done: more checking will come
in the next commit, and a set of usability/typesafety macros will
come after.