]> git.ipfire.org Git - thirdparty/tor.git/log
thirdparty/tor.git
6 years agoMerge branch 'maint-0.4.1'
teor [Thu, 8 Aug 2019 01:20:07 +0000 (11:20 +1000)] 
Merge branch 'maint-0.4.1'

6 years agoMerge branch 'maint-0.4.0' into maint-0.4.1
teor [Thu, 8 Aug 2019 01:19:58 +0000 (11:19 +1000)] 
Merge branch 'maint-0.4.0' into maint-0.4.1

6 years agoMerge branch 'maint-0.3.5' into maint-0.4.0
teor [Thu, 8 Aug 2019 01:19:38 +0000 (11:19 +1000)] 
Merge branch 'maint-0.3.5' into maint-0.4.0

6 years agoMerge remote-tracking branch 'tor-github/pr/1044' into maint-0.3.5
teor [Thu, 8 Aug 2019 01:17:46 +0000 (11:17 +1000)] 
Merge remote-tracking branch 'tor-github/pr/1044' into maint-0.3.5

Merge changed chutney and stem script lines from 29280 with changed
stem script lines from 30591.

6 years agoMerge branch 'maint-0.4.1'
teor [Thu, 8 Aug 2019 01:11:42 +0000 (11:11 +1000)] 
Merge branch 'maint-0.4.1'

6 years agoMerge branch 'maint-0.4.0' into maint-0.4.1
teor [Thu, 8 Aug 2019 01:11:35 +0000 (11:11 +1000)] 
Merge branch 'maint-0.4.0' into maint-0.4.1

6 years agoMerge branch 'maint-0.3.5' into maint-0.4.0
teor [Thu, 8 Aug 2019 01:11:27 +0000 (11:11 +1000)] 
Merge branch 'maint-0.3.5' into maint-0.4.0

6 years agoMerge branch 'maint-0.2.9' into maint-0.3.5
teor [Thu, 8 Aug 2019 01:10:15 +0000 (11:10 +1000)] 
Merge branch 'maint-0.2.9' into maint-0.3.5

Merge rust additions in 0.3.5 with sudo deletions in 0.2.9.

6 years agoMerge remote-tracking branch 'tor-github/pr/1157' into maint-0.4.0
teor [Thu, 8 Aug 2019 01:07:34 +0000 (11:07 +1000)] 
Merge remote-tracking branch 'tor-github/pr/1157' into maint-0.4.0

6 years agoMerge remote-tracking branch 'tor-github/pr/1156' into maint-0.3.5
teor [Thu, 8 Aug 2019 01:07:11 +0000 (11:07 +1000)] 
Merge remote-tracking branch 'tor-github/pr/1156' into maint-0.3.5

6 years agoMerge remote-tracking branch 'tor-github/pr/1155' into maint-0.2.9
teor [Thu, 8 Aug 2019 00:55:24 +0000 (10:55 +1000)] 
Merge remote-tracking branch 'tor-github/pr/1155' into maint-0.2.9

6 years agoMerge remote-tracking branch 'tor-github/pr/991' into maint-0.2.9
teor [Thu, 8 Aug 2019 00:54:12 +0000 (10:54 +1000)] 
Merge remote-tracking branch 'tor-github/pr/991' into maint-0.2.9

6 years agoMerge remote-tracking branch 'tor-github/pr/1208'
Nick Mathewson [Wed, 7 Aug 2019 13:49:49 +0000 (09:49 -0400)] 
Merge remote-tracking branch 'tor-github/pr/1208'

6 years agochanges file for ticket 31320
Nick Mathewson [Tue, 6 Aug 2019 17:13:36 +0000 (13:13 -0400)] 
changes file for ticket 31320

6 years agoMerge remote-tracking branch 'tor-github/pr/1203'
Nick Mathewson [Tue, 6 Aug 2019 17:12:42 +0000 (13:12 -0400)] 
Merge remote-tracking branch 'tor-github/pr/1203'

6 years agoMerge branch 'maint-0.4.1'
Nick Mathewson [Tue, 6 Aug 2019 13:19:11 +0000 (09:19 -0400)] 
Merge branch 'maint-0.4.1'

6 years agoMerge branch 'ticket31311_041' into maint-0.4.1
Nick Mathewson [Tue, 6 Aug 2019 13:19:05 +0000 (09:19 -0400)] 
Merge branch 'ticket31311_041' into maint-0.4.1

6 years agopractracker: Make it happy after rebase
David Goulet [Tue, 6 Aug 2019 12:01:26 +0000 (08:01 -0400)] 
practracker: Make it happy after rebase

Signed-off-by: David Goulet <dgoulet@torproject.org>
6 years agohs-v3: Rename HS DoS default defines
David Goulet [Tue, 2 Jul 2019 11:36:36 +0000 (07:36 -0400)] 
hs-v3: Rename HS DoS default defines

Signed-off-by: David Goulet <dgoulet@torproject.org>
6 years agotest: Series of fixes for hs_dos.c unit tests
David Goulet [Thu, 27 Jun 2019 18:06:42 +0000 (14:06 -0400)] 
test: Series of fixes for hs_dos.c unit tests

Signed-off-by: David Goulet <dgoulet@torproject.org>
6 years agodos: Update HS intro circuits if parameters change
David Goulet [Thu, 27 Jun 2019 17:32:58 +0000 (13:32 -0400)] 
dos: Update HS intro circuits if parameters change

In case the consensus parameters for the rate/burst changes, we need to update
all already established introduction circuits to the newest value.

This commit introduces a "get all intro circ" function from the HS circuitmap
(v2 and v3) so it can be used by the HS DoS module to go over all circuits and
adjust the INTRODUCE2 token bucket parameters.

Signed-off-by: David Goulet <dgoulet@torproject.org>
6 years agohs-v3: Add enable/disable HS DoS introduce parameter
David Goulet [Thu, 27 Jun 2019 16:58:43 +0000 (12:58 -0400)] 
hs-v3: Add enable/disable HS DoS introduce parameter

Following prop305 values.

Signed-off-by: David Goulet <dgoulet@torproject.org>
6 years agohs-v3: Add consensus parameters for DoS defenses
David Goulet [Tue, 11 Jun 2019 12:28:13 +0000 (08:28 -0400)] 
hs-v3: Add consensus parameters for DoS defenses

Part of #15516

Signed-off-by: David Goulet <dgoulet@torproject.org>
6 years agotest: Add hs_dos.c unit tests
David Goulet [Thu, 30 May 2019 12:55:40 +0000 (08:55 -0400)] 
test: Add hs_dos.c unit tests

Currently test the only available function which is hs_dos_can_send_intro2()
within the HS anti-DoS subsystem.

Closes #15516

Signed-off-by: David Goulet <dgoulet@torproject.org>
6 years agohs: Limit the amount of relayed INTRODUCE2
David Goulet [Wed, 29 May 2019 18:05:16 +0000 (14:05 -0400)] 
hs: Limit the amount of relayed INTRODUCE2

This commit add the hs_dos.{c|h} file that has the purpose of having the
anti-DoS code for onion services.

At this commit, it only has one which is a function that decides if an
INTRODUCE2 can be sent on the given introduction service circuit (S<->IP)
using a simple token bucket.

The rate per second is 25 and allowed burst to 200.

Basic defenses on #15516.

Signed-off-by: David Goulet <dgoulet@torproject.org>
6 years agoMerge branch 'tor-github/pr/1195'
George Kadianakis [Tue, 6 Aug 2019 11:51:47 +0000 (14:51 +0300)] 
Merge branch 'tor-github/pr/1195'

6 years agoMerge branch 'tor-github/pr/1193'
David Goulet [Tue, 6 Aug 2019 11:42:20 +0000 (07:42 -0400)] 
Merge branch 'tor-github/pr/1193'

6 years ago#31320 Add IPv6 examples
Ali Raheem [Mon, 5 Aug 2019 18:24:42 +0000 (19:24 +0100)] 
#31320 Add IPv6 examples

6 years agoRename handle_relay_command to handle_relay_cell_command .
George Kadianakis [Fri, 2 Aug 2019 09:35:38 +0000 (12:35 +0300)] 
Rename handle_relay_command to handle_relay_cell_command .

As per David's review.

6 years agoTest that regular cells get ignored in padding circuits.
George Kadianakis [Tue, 23 Jul 2019 10:52:36 +0000 (13:52 +0300)] 
Test that regular cells get ignored in padding circuits.

6 years agoIgnore regular cells in padding circuits.
George Kadianakis [Tue, 23 Jul 2019 10:17:37 +0000 (13:17 +0300)] 
Ignore regular cells in padding circuits.

Padding circuits were regular cells that got closed before their padding
machine could finish. This means that they can still receive regular cells from
their past life, but they have no way or reason to answer them anymore. Hence
let's ignore them before they even get to the proper subsystems.

6 years agoSplit connection_edge_process_relay_cell() in two functions.
George Kadianakis [Tue, 23 Jul 2019 10:01:12 +0000 (13:01 +0300)] 
Split connection_edge_process_relay_cell() in two functions.

One function does the validation, the other does the handling.

6 years agoMerge branch 'maint-0.4.1'
Nick Mathewson [Mon, 5 Aug 2019 13:59:40 +0000 (09:59 -0400)] 
Merge branch 'maint-0.4.1'

6 years agoIgnore regular cells in padding circuits.
George Kadianakis [Mon, 5 Aug 2019 10:47:07 +0000 (13:47 +0300)] 
Ignore regular cells in padding circuits.

Padding circuits were regular cells that got closed before their padding
machine could finish. This means that they can still receive regular cells from
their past life, but they have no way or reason to answer them anymore. Hence
let's ignore them before they even get to the proper subsystems.

6 years agoAdjust test_practracker.sh to work on windows
Nick Mathewson [Thu, 1 Aug 2019 19:05:34 +0000 (15:05 -0400)] 
Adjust test_practracker.sh to work on windows

The required change is to ignore trailing CRs when diffing files.

6 years agopractracker: Add unit tests to test script, and test script to makefile
Nick Mathewson [Thu, 1 Aug 2019 18:01:43 +0000 (14:01 -0400)] 
practracker: Add unit tests to test script, and test script to makefile

This makes all of the practracker tests get run by make check, and
hence by our CI.

Closes ticket 31304.

6 years agoPort practracker unit tests to python 3
Nick Mathewson [Thu, 1 Aug 2019 18:00:48 +0000 (14:00 -0400)] 
Port practracker unit tests to python 3

6 years agoDistribute practracker unit and integration tests.
Nick Mathewson [Thu, 1 Aug 2019 17:59:26 +0000 (13:59 -0400)] 
Distribute practracker unit and integration tests.

6 years agoMerge branch 'ticket31311_041' into ticket31304
Nick Mathewson [Thu, 1 Aug 2019 17:48:58 +0000 (13:48 -0400)] 
Merge branch 'ticket31311_041' into ticket31304

6 years agomake dist: only include files from practracker dir intentionally.
Nick Mathewson [Thu, 1 Aug 2019 17:45:45 +0000 (13:45 -0400)] 
make dist: only include files from practracker dir intentionally.

Previously, we included temporary files and whatnot, which is not
good.

Fixes bug 31311; bugfix on 0.4.1.1-alpha.

6 years agopractracker: add envvar TOR_PRACTRACKER_OPTIONS
Nick Mathewson [Thu, 1 Aug 2019 16:57:26 +0000 (12:57 -0400)] 
practracker: add envvar TOR_PRACTRACKER_OPTIONS

We have Makefile.am use this to decide how to invoke practracker on
the Tor source.

6 years agoRegenerate the practracker exceptions.txt file
Nick Mathewson [Thu, 1 Aug 2019 14:25:42 +0000 (10:25 -0400)] 
Regenerate the practracker exceptions.txt file

6 years agopractracker: restore exceptions.txt header when running --regen
Nick Mathewson [Thu, 1 Aug 2019 14:25:20 +0000 (10:25 -0400)] 
practracker: restore exceptions.txt header when running --regen

6 years agoMerge branch 'tor-github/pr/1177'
David Goulet [Thu, 1 Aug 2019 14:18:10 +0000 (10:18 -0400)] 
Merge branch 'tor-github/pr/1177'

6 years agopractracker: replaces "overstrict" with "overbroad"
Nick Mathewson [Thu, 1 Aug 2019 13:35:33 +0000 (09:35 -0400)] 
practracker: replaces "overstrict" with "overbroad"

I had the logic reversed here.

6 years agoLower check of TOR_DISABLE_PRACTRACKER
Nick Mathewson [Thu, 1 Aug 2019 12:40:56 +0000 (08:40 -0400)] 
Lower check of TOR_DISABLE_PRACTRACKER

Since we sometimes call practracker directly, that's where we should
check the TOR_DISABLE_PRACTRACKER envvar.

6 years agoPractracker: add an integration test.
Nick Mathewson [Tue, 30 Jul 2019 16:07:40 +0000 (12:07 -0400)] 
Practracker: add an integration test.

This test runs practracker with a set of 0 thresholds, to make sure
that it enumerates all its values right.  It tries running with an
empty exceptions file, and with an exceptions file that covers
_some_ of the data, and it makes sure that the outputs are as expected.

6 years agopractracker: better warning/regen handling
Nick Mathewson [Tue, 30 Jul 2019 15:54:05 +0000 (11:54 -0400)] 
practracker: better warning/regen handling

Now that there is only one toplevel place where we print problems,
we can redirect just that one print to a file when we are
regenerating the exceptions.txt file.  Previously we redirected
sys.stdout, which is naughty, and forced us to send warnings (and
warnings alone) to stderr.

6 years agoPractracker: new flags to control output.
Nick Mathewson [Tue, 30 Jul 2019 15:49:50 +0000 (11:49 -0400)] 
Practracker: new flags to control output.

These flags let you suppress the message about the number of
problems and warnings, and let you control the thresholds above
which something counts as a problem.

I need this for testing.

6 years agopractracker: Remove problemvault global.
Nick Mathewson [Tue, 30 Jul 2019 14:17:19 +0000 (10:17 -0400)] 
practracker: Remove problemvault global.

6 years agopractracker: Move the warning/error distinction to a higher level.
Nick Mathewson [Tue, 30 Jul 2019 14:15:11 +0000 (10:15 -0400)] 
practracker: Move the warning/error distinction to a higher level.

Previously warnings were generated by magic inside ProblemVault; now
they're printed on demand.

6 years agopractracker: Refactor flow to use generators
Nick Mathewson [Tue, 30 Jul 2019 13:20:08 +0000 (09:20 -0400)] 
practracker: Refactor flow to use generators

Instead of having "consider" functions that have to call a global
ProblemVault, we can now generate all the metrics for the code
separately from the decision about what to do for them.

6 years agopractracker: Rename "Problem" to "Item".
Nick Mathewson [Tue, 30 Jul 2019 13:03:55 +0000 (09:03 -0400)] 
practracker: Rename "Problem" to "Item".

I'm about to refactor the code into a set of iterators that yield
*all* the metrics for the code, and then add a filter on top of that
to return the problems.

6 years agoMerge branch 'maint-0.4.1'
David Goulet [Mon, 29 Jul 2019 16:02:54 +0000 (12:02 -0400)] 
Merge branch 'maint-0.4.1'

6 years agoMerge branch 'tor-github/pr/1179' into maint-0.4.1
David Goulet [Mon, 29 Jul 2019 16:02:47 +0000 (12:02 -0400)] 
Merge branch 'tor-github/pr/1179' into maint-0.4.1

6 years agoMerge branch 'maint-0.4.1'
Nick Mathewson [Fri, 26 Jul 2019 01:52:02 +0000 (21:52 -0400)] 
Merge branch 'maint-0.4.1'

"ours" to avoid version bump.

6 years agobump to 0.4.1.4-rc-dev
Nick Mathewson [Fri, 26 Jul 2019 01:51:53 +0000 (21:51 -0400)] 
bump to 0.4.1.4-rc-dev

6 years agoforward-port the changelog for 0.4.1.4-rc
Nick Mathewson [Fri, 26 Jul 2019 01:44:17 +0000 (21:44 -0400)] 
forward-port the changelog for 0.4.1.4-rc

6 years agoMerge branch 'maint-0.4.1'
Nick Mathewson [Fri, 26 Jul 2019 00:11:47 +0000 (20:11 -0400)] 
Merge branch 'maint-0.4.1'

6 years agoFix more 32-bit errors with domain and tt_int_op
Nick Mathewson [Fri, 26 Jul 2019 00:11:33 +0000 (20:11 -0400)] 
Fix more 32-bit errors with domain and tt_int_op

6 years agoMerge branch 'maint-0.4.1'
Nick Mathewson [Thu, 25 Jul 2019 20:57:32 +0000 (16:57 -0400)] 
Merge branch 'maint-0.4.1'

6 years agotest: Use a 64-bit comparison for logging domains.
Nick Mathewson [Thu, 25 Jul 2019 20:57:06 +0000 (16:57 -0400)] 
test: Use a 64-bit comparison for logging domains.

6 years agopractracker: Make it happing for circuitpadding.c
David Goulet [Thu, 25 Jul 2019 14:28:38 +0000 (10:28 -0400)] 
practracker: Make it happing for circuitpadding.c

Signed-off-by: David Goulet <dgoulet@torproject.org>
6 years agoMerge branch 'maint-0.4.1'
David Goulet [Thu, 25 Jul 2019 14:27:41 +0000 (10:27 -0400)] 
Merge branch 'maint-0.4.1'

6 years agoAlways check the retval of circpad_machine_current_state().
George Kadianakis [Sat, 29 Jun 2019 16:46:43 +0000 (19:46 +0300)] 
Always check the retval of circpad_machine_current_state().

6 years agoRemove dead code from circpad_machine_remove_token().
George Kadianakis [Sat, 29 Jun 2019 16:38:14 +0000 (19:38 +0300)] 
Remove dead code from circpad_machine_remove_token().

6 years agoMerge branch 'maint-0.4.1'
David Goulet [Thu, 25 Jul 2019 13:03:01 +0000 (09:03 -0400)] 
Merge branch 'maint-0.4.1'

6 years agoMerge branch 'tor-github/pr/1171' into maint-0.4.1
David Goulet [Thu, 25 Jul 2019 13:02:53 +0000 (09:02 -0400)] 
Merge branch 'tor-github/pr/1171' into maint-0.4.1

6 years agoMerge branch 'maint-0.4.1'
Nick Mathewson [Thu, 25 Jul 2019 13:01:20 +0000 (09:01 -0400)] 
Merge branch 'maint-0.4.1'

"ours" to avoid version bump.

6 years agoBump version to 0.4.1.4-rc
Nick Mathewson [Thu, 25 Jul 2019 13:00:53 +0000 (09:00 -0400)] 
Bump version to 0.4.1.4-rc

6 years agoFix clang-detected errors related to log_domain_mask_t
Nick Mathewson [Wed, 24 Jul 2019 13:08:48 +0000 (09:08 -0400)] 
Fix clang-detected errors related to log_domain_mask_t

6 years agoMerge branch 'maint-0.4.1'
George Kadianakis [Wed, 24 Jul 2019 09:32:06 +0000 (12:32 +0300)] 
Merge branch 'maint-0.4.1'

6 years agoMerge branch 'tor-github/pr/1181' into maint-0.4.1
George Kadianakis [Wed, 24 Jul 2019 09:31:56 +0000 (12:31 +0300)] 
Merge branch 'tor-github/pr/1181' into maint-0.4.1

6 years agoMerge branch 'tor-github/pr/1165'
George Kadianakis [Wed, 24 Jul 2019 09:29:57 +0000 (12:29 +0300)] 
Merge branch 'tor-github/pr/1165'

6 years agoMerge branch 'ticket24963_042_02'
Nick Mathewson [Tue, 23 Jul 2019 18:03:30 +0000 (14:03 -0400)] 
Merge branch 'ticket24963_042_02'

6 years agoAdd a test for disallowing single-hop introductions.
Nick Mathewson [Tue, 23 Jul 2019 16:42:33 +0000 (12:42 -0400)] 
Add a test for disallowing single-hop introductions.

Code from dgoulet.

6 years agoAllow NULL circ->p_chan in circuit_is_suitable_for_introduce1()
Nick Mathewson [Tue, 23 Jul 2019 16:36:40 +0000 (12:36 -0400)] 
Allow NULL circ->p_chan in circuit_is_suitable_for_introduce1()

This shouldn't be possible while Tor is running, but the tests can
hit this code.  Rather than force the tests to add a dummy channel
object, let's just tolerate their incompletely built circuits.

6 years agoMerge remote-tracking branch 'tor-github/pr/1185'
Nick Mathewson [Tue, 23 Jul 2019 16:32:14 +0000 (12:32 -0400)] 
Merge remote-tracking branch 'tor-github/pr/1185'

6 years agoMerge remote-tracking branch 'tor-github/pr/1186'
Nick Mathewson [Tue, 23 Jul 2019 16:30:19 +0000 (12:30 -0400)] 
Merge remote-tracking branch 'tor-github/pr/1186'

6 years agoMerge branch 'tor-github/pr/1116'
David Goulet [Tue, 23 Jul 2019 13:46:29 +0000 (09:46 -0400)] 
Merge branch 'tor-github/pr/1116'

6 years agoMerge branch 'tor-github/pr/1153'
David Goulet [Tue, 23 Jul 2019 13:43:36 +0000 (09:43 -0400)] 
Merge branch 'tor-github/pr/1153'

6 years agoMerge branch 'maint-0.4.1'
David Goulet [Tue, 23 Jul 2019 13:39:51 +0000 (09:39 -0400)] 
Merge branch 'maint-0.4.1'

6 years agoMerge branch 'tor-github/pr/1158' into maint-0.4.1
David Goulet [Tue, 23 Jul 2019 13:39:43 +0000 (09:39 -0400)] 
Merge branch 'tor-github/pr/1158' into maint-0.4.1

6 years agoChanges file for #31113.
George Kadianakis [Tue, 23 Jul 2019 09:40:33 +0000 (12:40 +0300)] 
Changes file for #31113.

6 years agoImprove circpad documentation.
pulls [Mon, 8 Jul 2019 14:53:29 +0000 (16:53 +0200)] 
Improve circpad documentation.

Patch by Tobias Pulls.

6 years agoAdd changes file for #31112 and #31098.
George Kadianakis [Tue, 23 Jul 2019 08:46:07 +0000 (11:46 +0300)] 
Add changes file for #31112 and #31098.

6 years agotransition when we send our first padding packet, not on received
pulls [Mon, 8 Jul 2019 13:51:57 +0000 (15:51 +0200)] 
transition when we send our first padding packet, not on received

6 years agoremove specified target_hopnum from relay-side machines (only for origin-side machines)
pulls [Mon, 8 Jul 2019 16:09:14 +0000 (18:09 +0200)] 
remove specified target_hopnum from relay-side machines (only for origin-side machines)

6 years agoExtract the log_domain_t type to a lower-level header
Nick Mathewson [Fri, 19 Jul 2019 14:17:22 +0000 (10:17 -0400)] 
Extract the log_domain_t type to a lower-level header

This way, both err and log may depend on it.

6 years agoAdjust tor_log.rs for 64-bit log domains.
Nick Mathewson [Fri, 19 Jul 2019 14:07:32 +0000 (10:07 -0400)] 
Adjust tor_log.rs for 64-bit log domains.

6 years agoSet 'routerlist' global to NULL before freeing it.
Nick Mathewson [Fri, 19 Jul 2019 13:49:52 +0000 (09:49 -0400)] 
Set 'routerlist' global to NULL before freeing it.

There is other code that uses this value, and some of it is
apparently reachable from inside router_dir_info_changed(), which
routerlist_free() apparently calls.  (ouch!)  This is a minimal fix
to try to resolve the issue without causing other problems.

Fixes bug 31003. I'm calling this a bugfix on 0.1.2.2-alpha, where
the call to router_dir_info_changed() was added to routerlist_free().

6 years agoChanges file for bug 31001
Nick Mathewson [Fri, 19 Jul 2019 13:21:08 +0000 (09:21 -0400)] 
Changes file for bug 31001

6 years agoPrevent UB on signed overflow.
Tobias Stoeckmann [Mon, 24 Jun 2019 20:08:49 +0000 (22:08 +0200)] 
Prevent UB on signed overflow.

Overflowing a signed integer in C is an undefined behaviour.
It is possible to trigger this undefined behaviour in tor_asprintf on
Windows or systems lacking vasprintf.

On these systems, eiter _vscprintf or vsnprintf is called to retrieve
the required amount of bytes to hold the string. These functions can
return INT_MAX. The easiest way to recreate this is the use of a
specially crafted configuration file, e.g. containing the line:

FirewallPorts AAAAA<in total 2147483610 As>

This line triggers the needed tor_asprintf call which eventually
leads to an INT_MAX return value from _vscprintf or vsnprintf.

The needed byte for \0 is added to the result, triggering the
overflow and therefore the undefined behaviour.

Casting the value to size_t before addition fixes the behaviour.

Signed-off-by: Tobias Stoeckmann <tobias@stoeckmann.org>
6 years agochanges file for 30752
Nick Mathewson [Thu, 18 Jul 2019 13:27:58 +0000 (09:27 -0400)] 
changes file for 30752

6 years agoAdd a TOR_DISABLE_PRACTRACKER envvar for use by folks who don't care
Nick Mathewson [Wed, 17 Jul 2019 13:28:48 +0000 (15:28 +0200)] 
Add a TOR_DISABLE_PRACTRACKER envvar for use by folks who don't care

Fixes part of bug 30752

6 years agoPractracker: add tolerances for exceptions
Nick Mathewson [Wed, 17 Jul 2019 13:20:58 +0000 (15:20 +0200)] 
Practracker: add tolerances for exceptions

When an exception is present, we can now violate the limit by a little
bit and only produce a warning.  The strict flag overrides this
behavior.

I've given file sizes a 2% tolerances and function sizes/include
counts a 10% tolerance.

Part of 30752

6 years agoPractracker: add a --list-overstrict option
Nick Mathewson [Wed, 17 Jul 2019 13:06:34 +0000 (15:06 +0200)] 
Practracker: add a --list-overstrict option

This option lists every exception that is stricter than it needs to
be.

Part of 30752

6 years agoChanges file for 29746.
Nick Mathewson [Thu, 18 Jul 2019 13:27:49 +0000 (09:27 -0400)] 
Changes file for 29746.

6 years agoPractracker: improve exclude-directory logic
Nick Mathewson [Wed, 17 Jul 2019 12:30:12 +0000 (14:30 +0200)] 
Practracker: improve exclude-directory logic

Instead of excluding directories at the last minute if they happen
to appear in our filenames, we exclude them early, before recursing
into all their subdirectories.

Part of 29746.

6 years agoPracktracker: give the number of new errors found.
Nick Mathewson [Wed, 17 Jul 2019 12:09:47 +0000 (14:09 +0200)] 
Pracktracker: give the number of new errors found.

Part of 29746.