Nick Mathewson
228ac47c2c
Fix memory leak in vote generation
2020-09-23 15:41:27 -04:00
Nick Mathewson
2b39543dfc
Move a DIGESTMAP_FOREACH_END (cosmetic)
2020-09-23 15:19:25 -04:00
Nick Mathewson
458897e3c5
Remove parseconf test with AndroidIdentityTag.
2020-09-23 14:40:38 -04:00
Nick Mathewson
5c9b4a0060
Remove support for old android "logcat" API
...
This is apparently obsolete; syslog is modern instead. If users
have an android log configured, given them a syslog if we can.
Closes #32181 .
2020-09-23 12:33:58 -04:00
Nick Mathewson
ca16433eb7
Update changes file
2020-09-23 12:09:27 -04:00
Nick Mathewson
d07f17f676
IPv6 sybil: consider addresses in the same /64 to be equal.
2020-09-23 12:06:38 -04:00
Nick Mathewson
1be9e84b9c
Refactor address comparison in get_sybil_list_by_ip_version
2020-09-23 12:04:09 -04:00
Nick Mathewson
2dba667928
get_all_possible_sybil: small indentation and comment cleanups
2020-09-23 11:53:28 -04:00
Nick Mathewson
e0f6047ea0
Remove needless sort operation.
2020-09-23 11:50:57 -04:00
Nick Mathewson
3196de33a5
Tidy up compare_routerinfo_by_ipv{4,6} to match better.
2020-09-23 11:48:20 -04:00
Nick Mathewson
81c05e1e98
Style and correctness issues in test_dirvote.
...
Style:
- We end our types with _t.
- Use 'static' to declare functions that only exist in a single
module.
Correctness:
- Many tt_...() macros can invoke "goto done;" -- we need to make
sure that all the variables that could get freed are initialized
before any "goto done" is hit, or else we might free an
uninitialized variable.
2020-09-23 11:32:28 -04:00
Nick Mathewson
939d12be58
Fix memory leaks.
2020-09-23 11:32:22 -04:00
vnepveu
43672f9fca
Implement IPv6 sybil protection.
...
[This is a squashed patch for ticket 7193, based on taking a "git
diff" for the original branch, then applying it with "git apply
-3". I earlier attempted to squash the branch with "git rebase",
but there were too many conflicts. --nickm]
2020-09-23 11:30:15 -04:00
Nick Mathewson
ff300b384f
configure.ac: Give a warning if openssl headers don't match library.
...
We don't look at the patchlevel, since that tends not to have any
API changes, and sometimes gets out of sync when distributors are
careless.
We only give the warning when the test program compiles but gives a
nonzero exit status: sadly, autoconf doesn't give us an easy way to
distinguish these.
Fixes #40138
2020-09-23 09:52:43 -04:00
Nick Mathewson
10e40ca1de
Merge branch 'ticket40136'
2020-09-22 16:54:35 -04:00
Nick Mathewson
d0b83c7423
state-contents: correcct the description of unusable_circuits
2020-09-22 16:51:26 -04:00
Nick Mathewson
ce1dfb46fc
Add a changes file for 40136 (state-contents.txt updates)
2020-09-22 14:46:41 -04:00
Nick Mathewson
5ffd8bf2b8
state-contents.txt: try to document circ-build-timeout fields
...
This should also get feedback from @mikeperry.
Closes #40136
2020-09-22 14:44:30 -04:00
Nick Mathewson
371cd7ac4f
Try to document pathbias fields in state file.
...
This will require feedback from @mikeperry, since these are a bit
subtle and I've likely mangled some of these.
2020-09-22 14:35:11 -04:00
Nick Mathewson
d1a94a3a7f
Improve doc/state-contents.txt
...
Part of a fix for #40136 .
This patch adds all the state file entries to the documentation, and
documents the ones that I understand well.
2020-09-22 14:17:26 -04:00
David Goulet
beffad8529
Merge branch 'maint-0.3.5' into maint-0.4.3
2020-09-22 13:47:08 -04:00
David Goulet
b6429430c6
Merge branch 'maint-0.4.3' into maint-0.4.4
2020-09-22 13:47:08 -04:00
David Goulet
3f8201f229
Merge branch 'maint-0.4.4'
2020-09-22 13:47:08 -04:00
David Goulet
4dbbc000b5
Merge branch 'tor-gitlab/mr/145'
2020-09-22 13:39:55 -04:00
David Goulet
faf89ec6c2
srv: Remove spammy debug log
...
Fixes #40135
Signed-off-by: David Goulet <dgoulet@torproject.org>
2020-09-22 11:06:34 -04:00
Nick Mathewson
88d99fc1bd
Fix warnings when using two unusual options together.
...
The option `--enable-all-bugs-are-fatal` when used with
`--disable-module-relay` caused GCC to warn about functions that
it thought should be labeled noreturn.
I've tried a couple of approaches, but disabling the warning on
these functions seems to be the best approach.
Fixed #40129 ; bugfix on 0.4.4.1-alpha.
2020-09-22 10:07:14 -04:00
Nick Mathewson
679ba1a226
Merge branch 'maint-0.4.4'
2020-09-21 12:59:03 -04:00
Nick Mathewson
0d78fbb718
Merge branch 'maint-0.3.5' into maint-0.4.3
2020-09-21 12:59:03 -04:00
Nick Mathewson
1cce0588e1
Merge branch 'maint-0.4.3' into maint-0.4.4
2020-09-21 12:59:03 -04:00
Nick Mathewson
8458c8211e
gitlab-ci: Use test-network-all for debian-integration
2020-09-21 12:58:49 -04:00
Nick Mathewson
7280bb50b2
gitlab-ci: add an NSS check.
2020-09-21 12:58:49 -04:00
Nick Mathewson
3ee0f6371d
gitlab-ci: Add all-bugs-are-fatal on hardened and integration builds.
2020-09-21 12:58:49 -04:00
Nick Mathewson
ab03ca9c75
gitlab-ci: Add disable-module builds.
2020-09-21 12:58:49 -04:00
Nick Mathewson
1bbeddf99e
Add a few more options for the CI script.
...
These are:
--disable-module-relay
--disable-module-dirauth
--enable-all-bugs-are-fatal
--enable-nss
2020-09-21 12:58:49 -04:00
Nick Mathewson
e411360f6d
Merge branch 'maint-0.4.4'
2020-09-18 19:06:39 -04:00
Nick Mathewson
b643ced022
Merge branch 'maint-0.3.5' into maint-0.4.3
2020-09-18 19:06:16 -04:00
Nick Mathewson
09813fe31e
Merge branch 'maint-0.4.3' into maint-0.4.4
2020-09-18 19:06:16 -04:00
Nick Mathewson
0b77c706a1
Make debian-trace job conditional on src/lib/trace/trace_sys.c
2020-09-18 19:05:51 -04:00
Nick Mathewson
6bf964a3e5
Renerate src/test/fuzz/include.am
2020-09-18 16:08:41 -04:00
Nick Mathewson
4ae881928b
Add TOR_TRACE_LIBS to fuzzing_include_am.py
...
(It looks like it was forgotten previously)
2020-09-18 16:08:29 -04:00
Nick Mathewson
e9dbb5e395
Build one big .a library full of Tor's implementation.
...
This is experimental and probably will break some platforms
2020-09-18 16:08:24 -04:00
Nick Mathewson
f8f3e57016
.gitlab.yml: missing comments
2020-09-18 15:55:06 -04:00
Nick Mathewson
122b297a20
Copy tracing things back to maint-0.3.5, for consistency.
2020-09-18 15:53:06 -04:00
Alexander Færøy
485990641b
Merge remote-tracking branch 'tor-gitlab/mr/137'
2020-09-18 14:51:54 +00:00
Nick Mathewson
781ab9eea4
Add flag for whether an OR conn "counts" for bootstrap tracking
...
We set this flag if we've launched the connection in order to
satisfy an origin circuit, or when we decide the connection _would_
satisfy an origin circuit. These are the only or_connections we
want to consider for bootstrapping: other or_connections are opened
because of client EXTEND requests, and they may succeed or fail
because of the clients' confusion or misconfiguration.
Closes #25061 .
2020-09-18 10:03:57 -04:00
David Goulet
2ddbfc64af
Merge branch 'maint-0.3.5' into maint-0.4.3
2020-09-18 09:45:25 -04:00
David Goulet
2e3603d96d
Merge branch 'maint-0.4.3' into maint-0.4.4
2020-09-18 09:45:25 -04:00
David Goulet
e8a4482335
Merge branch 'maint-0.4.4'
2020-09-18 09:45:25 -04:00
Nick Mathewson
7945e075a4
Fix underflow in rend_cache/free_all test.
...
We already fixed these in #40099 and #40125 .
This patch fixes #40126 . Bugfix on 0.2.8.1-alpha.
2020-09-17 14:04:54 -04:00
Nick Mathewson
404c224c71
Merge branch 'maint-0.4.4'
2020-09-17 13:56:40 -04:00