]> git.ipfire.org Git - thirdparty/tor.git/log
thirdparty/tor.git
3 years agoversion: Bump version to 0.4.6.12-dev maint-0.4.6
Tor CI Release [Fri, 12 Aug 2022 14:33:26 +0000 (14:33 +0000)] 
version: Bump version to 0.4.6.12-dev

3 years agoMerge branch 'maint-0.4.5' into maint-0.4.6
David Goulet [Fri, 12 Aug 2022 14:54:31 +0000 (10:54 -0400)] 
Merge branch 'maint-0.4.5' into maint-0.4.6

3 years agoversion: Bump version to 0.4.5.14-dev
Tor CI Release [Fri, 12 Aug 2022 14:33:25 +0000 (14:33 +0000)] 
version: Bump version to 0.4.5.14-dev

3 years agoversion: Bump version to 0.4.6.12 tor-0.4.6.12
Tor CI Release [Fri, 12 Aug 2022 13:37:52 +0000 (13:37 +0000)] 
version: Bump version to 0.4.6.12

3 years agoMerge branch 'maint-0.4.5' into maint-0.4.6
David Goulet [Fri, 12 Aug 2022 14:14:32 +0000 (10:14 -0400)] 
Merge branch 'maint-0.4.5' into maint-0.4.6

3 years agoversion: Bump version to 0.4.5.14 tor-0.4.5.14
Tor CI Release [Fri, 12 Aug 2022 13:37:49 +0000 (13:37 +0000)] 
version: Bump version to 0.4.5.14

3 years agoMerge branch 'maint-0.4.5' into maint-0.4.6
David Goulet [Fri, 12 Aug 2022 13:56:54 +0000 (09:56 -0400)] 
Merge branch 'maint-0.4.5' into maint-0.4.6

3 years agogeoip: Update geoip files with August 9th, 2022 database
David Goulet [Fri, 12 Aug 2022 13:55:24 +0000 (09:55 -0400)] 
geoip: Update geoip files with August 9th, 2022 database

Fixes #40658

Signed-off-by: David Goulet <dgoulet@torproject.org>
3 years agoversion: Bump version to 0.4.6.11-dev
Tor CI Release [Thu, 11 Aug 2022 14:37:39 +0000 (14:37 +0000)] 
version: Bump version to 0.4.6.11-dev

3 years agoMerge branch 'maint-0.4.5' into maint-0.4.6
David Goulet [Thu, 11 Aug 2022 15:14:34 +0000 (11:14 -0400)] 
Merge branch 'maint-0.4.5' into maint-0.4.6

3 years agoversion: Bump version to 0.4.5.13-dev
Tor CI Release [Thu, 11 Aug 2022 14:37:39 +0000 (14:37 +0000)] 
version: Bump version to 0.4.5.13-dev

3 years agoversion: Bump version to 0.4.6.11
Tor CI Release [Thu, 11 Aug 2022 13:40:38 +0000 (13:40 +0000)] 
version: Bump version to 0.4.6.11

3 years agoMerge branch 'maint-0.4.5' into maint-0.4.6
David Goulet [Thu, 11 Aug 2022 14:17:30 +0000 (10:17 -0400)] 
Merge branch 'maint-0.4.5' into maint-0.4.6

3 years agoversion: Bump version to 0.4.5.13
Tor CI Release [Thu, 11 Aug 2022 13:40:32 +0000 (13:40 +0000)] 
version: Bump version to 0.4.5.13

3 years agoMerge branch 'maint-0.4.5' into maint-0.4.6
David Goulet [Thu, 11 Aug 2022 13:44:47 +0000 (09:44 -0400)] 
Merge branch 'maint-0.4.5' into maint-0.4.6

3 years agofallbackdir: Update list generated on August 11, 2022
Tor CI Release [Thu, 11 Aug 2022 13:39:29 +0000 (13:39 +0000)] 
fallbackdir: Update list generated on August 11, 2022

3 years agoUpdate geoip files to match ipfire location db, 2022/08/11.
Tor CI Release [Thu, 11 Aug 2022 13:38:23 +0000 (13:38 +0000)] 
Update geoip files to match ipfire location db, 2022/08/11.

3 years agoMerge branch 'maint-0.4.5' into maint-0.4.6
David Goulet [Wed, 10 Aug 2022 17:59:20 +0000 (13:59 -0400)] 
Merge branch 'maint-0.4.5' into maint-0.4.6

3 years agofallbackdirs: Update list from maint-0.4.7
David Goulet [Wed, 10 Aug 2022 17:59:14 +0000 (13:59 -0400)] 
fallbackdirs: Update list from maint-0.4.7

Signed-off-by: David Goulet <dgoulet@torproject.org>
3 years agoMerge branch 'maint-0.4.5' into maint-0.4.6
David Goulet [Wed, 10 Aug 2022 17:41:25 +0000 (13:41 -0400)] 
Merge branch 'maint-0.4.5' into maint-0.4.6

3 years agogeoip: Update files from maint-0.4.7
David Goulet [Wed, 10 Aug 2022 17:41:22 +0000 (13:41 -0400)] 
geoip: Update files from maint-0.4.7

Signed-off-by: David Goulet <dgoulet@torproject.org>
3 years agoMerge branch 'maint-0.4.5' into maint-0.4.6
David Goulet [Tue, 2 Aug 2022 20:14:02 +0000 (16:14 -0400)] 
Merge branch 'maint-0.4.5' into maint-0.4.6

3 years agoMerge branch 'tor-gitlab/mr/608' into maint-0.4.5
David Goulet [Tue, 2 Aug 2022 20:13:58 +0000 (16:13 -0400)] 
Merge branch 'tor-gitlab/mr/608' into maint-0.4.5

3 years agoMerge branch 'maint-0.4.5' into maint-0.4.6
David Goulet [Tue, 2 Aug 2022 20:08:50 +0000 (16:08 -0400)] 
Merge branch 'maint-0.4.5' into maint-0.4.6

3 years agorelay: Don't send DESTROY remote reason backward or forward
David Goulet [Tue, 2 Aug 2022 19:49:03 +0000 (15:49 -0400)] 
relay: Don't send DESTROY remote reason backward or forward

Fixes #40649

Signed-off-by: David Goulet <dgoulet@torproject.org>
3 years agoconn: Notify btrack subsys on normal OR conn close
David Goulet [Mon, 1 Aug 2022 14:58:40 +0000 (10:58 -0400)] 
conn: Notify btrack subsys on normal OR conn close

Fixes #40604

Signed-off-by: David Goulet <dgoulet@torproject.org>
3 years agoMerge branch 'maint-0.4.5' into maint-0.4.6
David Goulet [Wed, 27 Jul 2022 15:33:19 +0000 (11:33 -0400)] 
Merge branch 'maint-0.4.5' into maint-0.4.6

3 years agoMerge branch 'tor-gitlab/mr/605' into maint-0.4.5
David Goulet [Wed, 27 Jul 2022 15:33:16 +0000 (11:33 -0400)] 
Merge branch 'tor-gitlab/mr/605' into maint-0.4.5

3 years agoFix a check, make a netflow padding function more safe.
Nick Mathewson [Wed, 27 Jul 2022 13:16:50 +0000 (09:16 -0400)] 
Fix a check, make a netflow padding function more safe.

Previously, `channelpadding_get_netflow_inactive_timeout_ms` would
crash with an assertion failure if `low_timeout` was greater than
`high_timeout`. That wasn't possible in practice because of checks
in `channelpadding_update_padding_for_channel`, but it's better not
to have a function whose correctness is this tricky to prove.

Fixes #40645.  Bugfix on 0.3.1.1-alpha.

3 years agorelay: Use remote reason when sending back a DESTROY
David Goulet [Wed, 27 Jul 2022 12:32:01 +0000 (08:32 -0400)] 
relay: Use remote reason when sending back a DESTROY

Fix from previous commit where a DESTROY cell is sent instead of a
TRUNCATED.

Related to #40623

Signed-off-by: David Goulet <dgoulet@torproject.org>
3 years agoMerge branch 'maint-0.4.5' into maint-0.4.6
David Goulet [Tue, 26 Jul 2022 20:16:04 +0000 (16:16 -0400)] 
Merge branch 'maint-0.4.5' into maint-0.4.6

3 years agorelay: Send DESTROY cell instead of TRUNCATED cell
David Goulet [Fri, 22 Jul 2022 17:53:52 +0000 (13:53 -0400)] 
relay: Send DESTROY cell instead of TRUNCATED cell

Note that with this commit, TRUNCATED cells won't be used anymore that
is client and relays won't emit them.

Fixes #40623

Signed-off-by: David Goulet <dgoulet@torproject.org>
3 years agoMerge branch 'maint-0.4.5' into maint-0.4.6
Alexander Færøy [Mon, 9 May 2022 14:37:26 +0000 (14:37 +0000)] 
Merge branch 'maint-0.4.5' into maint-0.4.6

3 years agoAdd changes entry to tor!575.
Alexander Færøy [Mon, 9 May 2022 14:35:42 +0000 (14:35 +0000)] 
Add changes entry to tor!575.

See: tpo/core/tor#40601.

3 years agosandbox: Permit rseq syscall as well
pmu-ipf [Sat, 30 Apr 2022 11:10:04 +0000 (11:10 +0000)] 
sandbox: Permit rseq syscall as well

This was found to be necessary in conjunction with glibc 2.35 on Linux.

Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
3 years agoMerge branch 'maint-0.4.5' into maint-0.4.6
David Goulet [Thu, 14 Apr 2022 13:37:46 +0000 (09:37 -0400)] 
Merge branch 'maint-0.4.5' into maint-0.4.6

3 years agoMerge branch 'tor-gitlab/mr/491' into maint-0.4.5
David Goulet [Thu, 14 Apr 2022 13:37:43 +0000 (09:37 -0400)] 
Merge branch 'tor-gitlab/mr/491' into maint-0.4.5

3 years agoMerge branch 'maint-0.4.5' into maint-0.4.6
David Goulet [Thu, 14 Apr 2022 13:34:49 +0000 (09:34 -0400)] 
Merge branch 'maint-0.4.5' into maint-0.4.6

3 years agoMerge branch 'tor-gitlab/mr/497' into maint-0.4.5
David Goulet [Thu, 14 Apr 2022 13:34:46 +0000 (09:34 -0400)] 
Merge branch 'tor-gitlab/mr/497' into maint-0.4.5

3 years agotest: Unit tests for overload onionskin ntor
David Goulet [Tue, 15 Mar 2022 17:28:04 +0000 (13:28 -0400)] 
test: Unit tests for overload onionskin ntor

Part of #40560

Signed-off-by: David Goulet <dgoulet@torproject.org>
3 years agorephist: Introduce a fraction and period for overload onionskin
David Goulet [Wed, 2 Mar 2022 18:20:07 +0000 (13:20 -0500)] 
rephist: Introduce a fraction and period for overload onionskin

This code was heavily reused from the previous DNS timeout work done in
ticket #40491 that was removed afterall from our code.

Closes #40560

Signed-off-by: David Goulet <dgoulet@torproject.org>
3 years agoMerge branch 'maint-0.4.5' into maint-0.4.6
David Goulet [Mon, 28 Mar 2022 13:45:16 +0000 (09:45 -0400)] 
Merge branch 'maint-0.4.5' into maint-0.4.6

3 years agoMerge branch 'tor-gitlab/mr/556' into maint-0.4.5
David Goulet [Mon, 28 Mar 2022 13:44:31 +0000 (09:44 -0400)] 
Merge branch 'tor-gitlab/mr/556' into maint-0.4.5

3 years agoSandbox: Permit the clone3 system call
Nick Mathewson [Sun, 27 Mar 2022 22:34:25 +0000 (18:34 -0400)] 
Sandbox: Permit the clone3 system call

Apparently glibc-2.34 uses clone3, when previously it just used
clone.

Closes ticket #40590.

3 years agoMerge branch 'maint-0.4.5' into maint-0.4.6
David Goulet [Wed, 16 Mar 2022 17:27:31 +0000 (13:27 -0400)] 
Merge branch 'maint-0.4.5' into maint-0.4.6

3 years agoMerge branch 'tor-gitlab/mr/533' into maint-0.4.5
David Goulet [Wed, 16 Mar 2022 17:27:27 +0000 (13:27 -0400)] 
Merge branch 'tor-gitlab/mr/533' into maint-0.4.5

3 years agoMerge branch 'maint-0.4.5' into maint-0.4.6
David Goulet [Thu, 10 Mar 2022 14:18:57 +0000 (09:18 -0500)] 
Merge branch 'maint-0.4.5' into maint-0.4.6

3 years agohs: Schedule mainloop event on dirinfo change
David Goulet [Wed, 9 Mar 2022 18:47:27 +0000 (13:47 -0500)] 
hs: Schedule mainloop event on dirinfo change

Due to a possible Guard subsystem recursion, when the HS client gets
notified that the directory information has changed, it must run it in a
seperate mainloop event to avoid such issue.

See the ticket for more information on the recursion. This also fixes a
fatal assert.

Fixes #40579

Signed-off-by: David Goulet <dgoulet@torproject.org>
3 years agoMerge branch 'maint-0.4.5' into maint-0.4.6
David Goulet [Wed, 9 Mar 2022 13:46:55 +0000 (08:46 -0500)] 
Merge branch 'maint-0.4.5' into maint-0.4.6

3 years agohs: Fix multiple port label on single metric
David Goulet [Tue, 8 Mar 2022 18:50:34 +0000 (13:50 -0500)] 
hs: Fix multiple port label on single metric

Prometheus needs unique labels and so this bug was causing an onion
service with multiple ports to have multiple "port=" label for the
metrics requiring a port label.

Fixes #40581

Signed-off-by: David Goulet <dgoulet@torproject.org>
3 years agoAdd CI triggers for Debian package builds
Jérôme Charaoui [Tue, 15 Feb 2022 22:07:24 +0000 (17:07 -0500)] 
Add CI triggers for Debian package builds

This enables on-demand debian packaging CI builds on maintenance
branches, to replace (often unnecessary) daily scheduled builds.

3 years agoversion: Bump version to 0.4.6.10-dev
Tor CI Release [Fri, 4 Feb 2022 16:29:20 +0000 (16:29 +0000)] 
version: Bump version to 0.4.6.10-dev

3 years agoMerge branch 'maint-0.4.5' into maint-0.4.6
David Goulet [Fri, 4 Feb 2022 17:36:19 +0000 (12:36 -0500)] 
Merge branch 'maint-0.4.5' into maint-0.4.6

3 years agoversion: Bump version to 0.4.5.12-dev
Tor CI Release [Fri, 4 Feb 2022 16:29:20 +0000 (16:29 +0000)] 
version: Bump version to 0.4.5.12-dev

3 years agoversion: Bump version to 0.4.6.10
Tor CI Release [Fri, 4 Feb 2022 16:00:39 +0000 (16:00 +0000)] 
version: Bump version to 0.4.6.10

3 years agoMerge branch 'maint-0.4.5' into maint-0.4.6
David Goulet [Fri, 4 Feb 2022 16:09:38 +0000 (11:09 -0500)] 
Merge branch 'maint-0.4.5' into maint-0.4.6

3 years agoversion: Bump version to 0.4.5.12
Tor CI Release [Fri, 4 Feb 2022 16:00:33 +0000 (16:00 +0000)] 
version: Bump version to 0.4.5.12

3 years agoMerge branch 'maint-0.4.5' into maint-0.4.6
David Goulet [Fri, 4 Feb 2022 16:07:34 +0000 (11:07 -0500)] 
Merge branch 'maint-0.4.5' into maint-0.4.6

3 years agofallbackdir: Update list generated on February 04, 2022
Tor CI Release [Fri, 4 Feb 2022 15:49:03 +0000 (15:49 +0000)] 
fallbackdir: Update list generated on February 04, 2022

3 years agoUpdate geoip files to match ipfire location db, 2022/02/04.
Tor CI Release [Fri, 4 Feb 2022 15:46:27 +0000 (15:46 +0000)] 
Update geoip files to match ipfire location db, 2022/02/04.

3 years agoMerge branch 'maint-0.4.5' into maint-0.4.6
David Goulet [Fri, 4 Feb 2022 15:56:33 +0000 (10:56 -0500)] 
Merge branch 'maint-0.4.5' into maint-0.4.6

3 years agoUpdate geoip files to match ipfire location db, 2021/12/15.
Tor CI Release [Wed, 15 Dec 2021 16:17:47 +0000 (16:17 +0000)] 
Update geoip files to match ipfire location db, 2021/12/15.

3 years agoMerge branch 'maint-0.4.5' into maint-0.4.6
David Goulet [Fri, 4 Feb 2022 15:18:25 +0000 (10:18 -0500)] 
Merge branch 'maint-0.4.5' into maint-0.4.6

3 years agofallbackdir: Update list generated on December 15, 2021
Tor CI Release [Wed, 15 Dec 2021 16:29:45 +0000 (16:29 +0000)] 
fallbackdir: Update list generated on December 15, 2021

3 years agoMerge branch 'maint-0.4.5' into maint-0.4.6
David Goulet [Thu, 3 Feb 2022 13:30:40 +0000 (08:30 -0500)] 
Merge branch 'maint-0.4.5' into maint-0.4.6

3 years agohs: Double quote the metrics label value
David Goulet [Wed, 2 Feb 2022 18:51:22 +0000 (13:51 -0500)] 
hs: Double quote the metrics label value

Fixes #40552

Signed-off-by: David Goulet <dgoulet@torproject.org>
3 years agoMerge branch 'maint-0.4.5' into maint-0.4.6
David Goulet [Mon, 24 Jan 2022 15:49:41 +0000 (10:49 -0500)] 
Merge branch 'maint-0.4.5' into maint-0.4.6

3 years agoMerge branch 'maint-0.3.5' into maint-0.4.5
David Goulet [Mon, 24 Jan 2022 15:49:32 +0000 (10:49 -0500)] 
Merge branch 'maint-0.3.5' into maint-0.4.5

3 years agoversion: Bump version to 0.3.5.18 maint-0.3.5
David Goulet [Mon, 24 Jan 2022 15:47:29 +0000 (10:47 -0500)] 
version: Bump version to 0.3.5.18

Signed-off-by: David Goulet <dgoulet@torproject.org>
3 years agofallbackdir: Update list generated on January 24, 2022
David Goulet [Mon, 24 Jan 2022 15:35:02 +0000 (10:35 -0500)] 
fallbackdir: Update list generated on January 24, 2022

Signed-off-by: David Goulet <dgoulet@torproject.org>
3 years agogeoip: Update to match ipfire location db, 2022/01/24.
David Goulet [Mon, 24 Jan 2022 15:31:43 +0000 (10:31 -0500)] 
geoip: Update to match ipfire location db, 2022/01/24.

Signed-off-by: David Goulet <dgoulet@torproject.org>
3 years agoMerge branch 'maint-0.4.5' into maint-0.4.6
David Goulet [Wed, 19 Jan 2022 18:56:43 +0000 (13:56 -0500)] 
Merge branch 'maint-0.4.5' into maint-0.4.6

3 years agotest: Remove HSv2 protover specific test
David Goulet [Wed, 19 Jan 2022 18:36:23 +0000 (13:36 -0500)] 
test: Remove HSv2 protover specific test

HSv2 is not advertised as a supported protocol version anymore.

This was introduced with the merge-forward of commit 72041c63064b461e
which didn't fix the unit test.

Fixes #40549

Signed-off-by: David Goulet <dgoulet@torproject.org>
3 years agoMerge branch 'maint-0.4.5' into maint-0.4.6
David Goulet [Tue, 18 Jan 2022 18:15:38 +0000 (13:15 -0500)] 
Merge branch 'maint-0.4.5' into maint-0.4.6

3 years agoMerge branch 'maint-0.3.5' into maint-0.4.5
David Goulet [Tue, 18 Jan 2022 18:15:38 +0000 (13:15 -0500)] 
Merge branch 'maint-0.3.5' into maint-0.4.5

3 years agoMerge branch 'tor-gitlab/mr/511' into maint-0.3.5
David Goulet [Tue, 18 Jan 2022 18:15:33 +0000 (13:15 -0500)] 
Merge branch 'tor-gitlab/mr/511' into maint-0.3.5

3 years agoMerge branch 'maint-0.4.5' into maint-0.4.6
David Goulet [Tue, 18 Jan 2022 18:15:29 +0000 (13:15 -0500)] 
Merge branch 'maint-0.4.5' into maint-0.4.6

3 years agoMerge branch 'maint-0.3.5' into maint-0.4.5
David Goulet [Tue, 18 Jan 2022 18:15:29 +0000 (13:15 -0500)] 
Merge branch 'maint-0.3.5' into maint-0.4.5

3 years agoMerge branch 'tor-gitlab/mr/510' into maint-0.3.5
David Goulet [Tue, 18 Jan 2022 18:15:23 +0000 (13:15 -0500)] 
Merge branch 'tor-gitlab/mr/510' into maint-0.3.5

3 years agoMerge branch 'maint-0.4.5' into maint-0.4.6
David Goulet [Tue, 18 Jan 2022 18:12:35 +0000 (13:12 -0500)] 
Merge branch 'maint-0.4.5' into maint-0.4.6

3 years agoMerge branch 'maint-0.3.5' into maint-0.4.5
David Goulet [Tue, 18 Jan 2022 18:12:13 +0000 (13:12 -0500)] 
Merge branch 'maint-0.3.5' into maint-0.4.5

3 years agoUpdate new relay blogpost URL
Jérôme Charaoui [Mon, 10 Jan 2022 15:16:24 +0000 (15:16 +0000)] 
Update new relay blogpost URL

This removes the '/blog/' URL component which relies on a
redirection since the blog has been migrated to Lektor

3 years agomain: Update a dead URL in a log notice
David Goulet [Tue, 18 Jan 2022 17:51:52 +0000 (12:51 -0500)] 
main: Update a dead URL in a log notice

Change https://www.torproject.org/download/download#warning to
https://support.torproject.org/faq/staying-anonymous/

Closes #40544

Signed-off-by: David Goulet <dgoulet@torproject.org>
3 years agorelay: Don't advertise HSv2 protocol version
David Goulet [Thu, 4 Nov 2021 18:44:58 +0000 (14:44 -0400)] 
relay: Don't advertise HSv2 protocol version

We removed HSIntro=3 and HSDir=1 that are v2 specific. Since 0.3.5.17,
we do not support introducing or being a directory for onion service v2.

Closes #40509

Signed-off-by: David Goulet <dgoulet@torproject.org>
3 years agoconfigure: Remove typo created by CI patch
David Goulet [Thu, 16 Dec 2021 18:03:23 +0000 (13:03 -0500)] 
configure: Remove typo created by CI patch

Signed-off-by: David Goulet <dgoulet@torproject.org>
3 years agoversion: Bump version to 0.4.6.9-dev
Tor CI Release [Thu, 16 Dec 2021 15:01:28 +0000 (15:01 +0000)] 
version: Bump version to 0.4.6.9-dev

3 years agoconfigure: Fix typo in version tor-0.4.6.9
David Goulet [Thu, 16 Dec 2021 14:53:16 +0000 (09:53 -0500)] 
configure: Fix typo in version

Signed-off-by: David Goulet <dgoulet@torproject.org>
3 years agoUpdate geoip files to match ipfire location db, 2021/12/15.
Tor CI Release [Wed, 15 Dec 2021 16:17:47 +0000 (16:17 +0000)] 
Update geoip files to match ipfire location db, 2021/12/15.

3 years agofallbackdir: Update list generated on December 15, 2021
Tor CI Release [Wed, 15 Dec 2021 16:29:45 +0000 (16:29 +0000)] 
fallbackdir: Update list generated on December 15, 2021

3 years agoversion: Bump version to 0.4.6.9
Tor CI Release [Wed, 15 Dec 2021 16:31:03 +0000 (16:31 +0000)] 
version: Bump version to 0.4.6.9

3 years agorelay: Don't make DNS timeout trigger an overload
David Goulet [Mon, 13 Dec 2021 15:22:29 +0000 (10:22 -0500)] 
relay: Don't make DNS timeout trigger an overload

Tor has configure libevent to attempt up to 3 times a DNS query for a
maximum of 5 seconds each. Once that 5 seconds has elapsed, it consider
the query "Timed Out" but tor only gets a timeout if all 3 attempts have
failed.

For example, using Unbound, it has a much higher threshold of timeout.
It is well defined in
https://www.nlnetlabs.nl/documentation/unbound/info-timeout/ and has
some complexity to it. But the gist is that if it times out, it will be
much more than 5 seconds.

And so the Tor DNS timeouts are more of a "UX issue" rather than a
"network issue". For this reason, we are removing this metric from the
overload general signal.

See https://gitlab.torproject.org/tpo/network-health/team/-/issues/139
for more information.

Fixes #40527

Signed-off-by: David Goulet <dgoulet@torproject.org>
3 years agoLimit the number of elements in a consdiff hash line.
Nick Mathewson [Mon, 6 Dec 2021 17:35:08 +0000 (12:35 -0500)] 
Limit the number of elements in a consdiff hash line.

This avoids performing and then freeing a lot of small mallocs() if
the hash line has too many elements.

Fixes one case of bug 40472; resolves OSS-Fuzz 38363.  Bugfix on
0.3.1.1-alpha when the consdiff parsing code was introduced.

3 years agoDo not count controller-selected paths towards path bias.
Nick Mathewson [Mon, 15 Nov 2021 13:55:47 +0000 (08:55 -0500)] 
Do not count controller-selected paths towards path bias.

As a side effect, this fixes a "Bug" warning.

Closes #40515.  Bugfix on 0.2.4.10-alpha.

3 years agoMerge branch 'maint-0.4.5' into maint-0.4.6
Alexander Færøy [Mon, 8 Nov 2021 14:16:19 +0000 (14:16 +0000)] 
Merge branch 'maint-0.4.5' into maint-0.4.6

3 years agoMerge branch 'maint-0.3.5' into maint-0.4.5
Alexander Færøy [Mon, 8 Nov 2021 14:16:18 +0000 (14:16 +0000)] 
Merge branch 'maint-0.3.5' into maint-0.4.5

3 years agoMerge remote-tracking branch 'tor-gitlab/mr/487' into maint-0.3.5
Alexander Færøy [Mon, 8 Nov 2021 14:15:59 +0000 (14:15 +0000)] 
Merge remote-tracking branch 'tor-gitlab/mr/487' into maint-0.3.5

3 years agoMerge remote-tracking branch 'tor-gitlab/mr/486' into maint-0.3.5
Alexander Færøy [Mon, 8 Nov 2021 14:15:56 +0000 (14:15 +0000)] 
Merge remote-tracking branch 'tor-gitlab/mr/486' into maint-0.3.5

3 years agoGive an error message if LibreSSL's TLSv1.3 APIs aren't what we need
Nick Mathewson [Sat, 6 Nov 2021 15:04:08 +0000 (11:04 -0400)] 
Give an error message if LibreSSL's TLSv1.3 APIs aren't what we need

From LibreSSL versions 3.2.1 through 3.4.0, our configure script
would conclude that TLSv1.3 as supported, but it actually wasn't.
This led to annoying breakage like #40128 and #40445.

Now we give an error message if we try to build with one of those
versions.

Closes #40511.

3 years agoReverse the direction of the test for openssl 3.0.0
Nick Mathewson [Fri, 5 Nov 2021 17:23:05 +0000 (13:23 -0400)] 
Reverse the direction of the test for openssl 3.0.0

Previously the logic was reversed, and always gave the wrong answer.
This has no other effect than to change whether we suppress
deprecated API warnings.

Fixes #40429; bugfix on 0.3.5.13.

3 years agoMerge branch 'maint-0.4.5' into maint-0.4.6
David Goulet [Fri, 5 Nov 2021 14:44:10 +0000 (10:44 -0400)] 
Merge branch 'maint-0.4.5' into maint-0.4.6