]> git.ipfire.org Git - thirdparty/tor.git/log
thirdparty/tor.git
5 years agotests for ticket 33039
Taylor Yu [Fri, 24 Jan 2020 16:33:01 +0000 (10:33 -0600)] 
tests for ticket 33039

5 years agofix leak in GETCONF
Taylor Yu [Fri, 24 Jan 2020 15:06:30 +0000 (09:06 -0600)] 
fix leak in GETCONF

Fix a memory leak introduced by refactoring of control reply
formatting code.  Fixes bug 33039; bugfix on 0.4.3.1-alpha.

5 years agoupdate doc/HACKING/ReleasingTor.md
Nick Mathewson [Thu, 23 Jan 2020 13:55:55 +0000 (08:55 -0500)] 
update doc/HACKING/ReleasingTor.md

5 years agoBump to 0.4.3.1-alpha-dev
Nick Mathewson [Thu, 23 Jan 2020 01:30:46 +0000 (20:30 -0500)] 
Bump to 0.4.3.1-alpha-dev

5 years agoMerge branch 'tor-github/pr/1677'
David Goulet [Wed, 22 Jan 2020 19:32:30 +0000 (14:32 -0500)] 
Merge branch 'tor-github/pr/1677'

5 years agoLower log level of standard error messages from PT's.
Alexander Færøy [Mon, 20 Jan 2020 18:29:30 +0000 (18:29 +0000)] 
Lower log level of standard error messages from PT's.

This patch lowers the log level of error messages from PT processes from
warning to debug.

See: https://bugs.torproject.org/33005

5 years agopick a release date tor-0.4.3.1-alpha
Nick Mathewson [Wed, 22 Jan 2020 18:10:54 +0000 (13:10 -0500)] 
pick a release date

5 years agoAdd some changelog edits from seborn
Nick Mathewson [Wed, 22 Jan 2020 18:10:09 +0000 (13:10 -0500)] 
Add some changelog edits from seborn

5 years agodraft a changelog blurb for 0.4.3.1-alpha
Nick Mathewson [Wed, 22 Jan 2020 16:56:44 +0000 (11:56 -0500)] 
draft a changelog blurb for 0.4.3.1-alpha

5 years agodir_connection_t: Explain dirconn_direct better
teor [Tue, 21 Jan 2020 23:27:40 +0000 (09:27 +1000)] 
dir_connection_t: Explain dirconn_direct better

Direct connections can use a DirPort or ORPort.
Indirect connections must use a multi-hop Tor circuit.

Comment-only changes.

5 years agoBump to 0.4.3.1-alpha
Nick Mathewson [Tue, 21 Jan 2020 17:33:05 +0000 (12:33 -0500)] 
Bump to 0.4.3.1-alpha

5 years agochangelog: small edits
Nick Mathewson [Tue, 21 Jan 2020 17:32:33 +0000 (12:32 -0500)] 
changelog: small edits

5 years agoRun format_changelog.py
Nick Mathewson [Tue, 21 Jan 2020 16:37:10 +0000 (11:37 -0500)] 
Run format_changelog.py

5 years agoInitial incorporation of 0.4.3.x changelogs.
Nick Mathewson [Tue, 21 Jan 2020 16:35:59 +0000 (11:35 -0500)] 
Initial incorporation of 0.4.3.x changelogs.

5 years agoRemove changes files that already appeared in 0.4.2.5
Nick Mathewson [Tue, 21 Jan 2020 16:33:26 +0000 (11:33 -0500)] 
Remove changes files that already appeared in 0.4.2.5

5 years agoMerge branch 'tor-github/pr/1675'
David Goulet [Mon, 20 Jan 2020 15:47:49 +0000 (10:47 -0500)] 
Merge branch 'tor-github/pr/1675'

5 years agoMerge branch 'tor-github/pr/1668'
David Goulet [Mon, 20 Jan 2020 15:44:03 +0000 (10:44 -0500)] 
Merge branch 'tor-github/pr/1668'

5 years agodoc: Minor man page fixes
teor [Mon, 20 Jan 2020 06:40:02 +0000 (16:40 +1000)] 
doc: Minor man page fixes

Fix a client port list that's missing HTTPTunnelPort.

Wrap a long line.

5 years agodoc: Improve port flags in man page
teor [Mon, 20 Jan 2020 06:38:02 +0000 (16:38 +1000)] 
doc: Improve port flags in man page

Explain that:
* most flags default to off
* flags that default to on are specified

Document PreferIPv6Automap in its "No" form, because it's on by
default.

Cleanup after 32637.

5 years agoconfig: Make clients tell dual-stack exits they prefer IPv6
teor [Mon, 20 Jan 2020 06:17:38 +0000 (16:17 +1000)] 
config: Make clients tell dual-stack exits they prefer IPv6

Make Tor clients tell dual-stack exits that they prefer IPv6
connections.

This change is equivalent to setting the PreferIPv6 flag on
SOCKSPorts (and most other listener ports). Tor Browser has
been setting this flag for some time, and we want to remove a
client distinguisher at exits.

Also update the man page, putting all the IP flags in their
non-default forms.

Closes ticket 32637.

5 years agoMerge remote-tracking branch 'tor-github/pr/1673'
teor [Mon, 20 Jan 2020 05:52:40 +0000 (15:52 +1000)] 
Merge remote-tracking branch 'tor-github/pr/1673'

5 years agotest/nodelist: Remove ROUTERSTATUS_FORMAT_NO_CONSENSUS_METHOD
teor [Mon, 20 Jan 2020 03:42:13 +0000 (13:42 +1000)] 
test/nodelist: Remove ROUTERSTATUS_FORMAT_NO_CONSENSUS_METHOD

When we removed obsolete consensus methods in 32695, we also
removed ROUTERSTATUS_FORMAT_NO_CONSENSUS_METHOD, so we need to
remove it from the routerstatus format tests.

Part of 20218.

5 years agoMerge branch 'ticket20218_rebased_squashed' into ticket20218_merged
teor [Mon, 20 Jan 2020 05:50:54 +0000 (15:50 +1000)] 
Merge branch 'ticket20218_rebased_squashed' into ticket20218_merged

* ticket 32695 removed networkstatus_consensus_has_ipv6(),
  keep that change in master.
* ticket 20218 modifies the function name and comment for
  routerstatus_has_visibly_changed(), keep that change
  in ticket20218_rebased_squashed.

5 years agoRename test to match new identifier.
Nick Mathewson [Fri, 17 Jan 2020 14:27:58 +0000 (09:27 -0500)] 
Rename test to match new identifier.

5 years agosplit a wide line
Nick Mathewson [Fri, 17 Jan 2020 14:23:32 +0000 (09:23 -0500)] 
split a wide line

5 years agoRename routerstatus_has_changed to routerstatus_has_visibly_changed
Nick Mathewson [Fri, 17 Jan 2020 14:22:12 +0000 (09:22 -0500)] 
Rename routerstatus_has_changed to routerstatus_has_visibly_changed

This is an automated commit, generated by this command:

./scripts/maint/rename_c_identifier.py \
        routerstatus_has_changed routerstatus_has_visibly_changed

It was generated with --no-verify, since it introduces a wide line.
I'll fix it in a subsequent commit.

5 years agoUpdate routerstatus_has_changed tests.
Nick Mathewson [Fri, 17 Jan 2020 14:20:00 +0000 (09:20 -0500)] 
Update routerstatus_has_changed tests.

Now they also check whether output of routerstatus_format_entry()
has changed.

5 years agoAdd unit test for routerstatus_has_changed()
Nick Mathewson [Thu, 16 Jan 2020 17:14:14 +0000 (12:14 -0500)] 
Add unit test for routerstatus_has_changed()

5 years agoMerge remote-tracking branch 'tor-github/pr/1671'
teor [Mon, 20 Jan 2020 05:40:42 +0000 (15:40 +1000)] 
Merge remote-tracking branch 'tor-github/pr/1671'

5 years agoMerge remote-tracking branch 'tor-github/pr/1667'
teor [Mon, 20 Jan 2020 05:40:08 +0000 (15:40 +1000)] 
Merge remote-tracking branch 'tor-github/pr/1667'

5 years agoadd_c_file: Fix "control line not preceded by a blank line"
teor [Wed, 15 Jan 2020 23:38:26 +0000 (09:38 +1000)] 
add_c_file: Fix "control line not preceded by a blank line"

Fix dirauth and relay module include.am add_c_file.py
"control line not preceded by a blank line" errors.

Also remove a duplicate ADD_C_FILE: SOURCES in the relay module.

Obviously correct fixes to already-reviewed code.

5 years agoadd_c_file: Replace asserts with exceptions
teor [Mon, 20 Jan 2020 03:20:42 +0000 (13:20 +1000)] 
add_c_file: Replace asserts with exceptions

Closes 32962.

5 years agoadd_c_file: Improve script documentation
teor [Mon, 20 Jan 2020 03:20:14 +0000 (13:20 +1000)] 
add_c_file: Improve script documentation

Part of 32962.

5 years agoadd_c_file: Improve tor source directory checks
teor [Mon, 20 Jan 2020 03:04:02 +0000 (13:04 +1000)] 
add_c_file: Improve tor source directory checks

Check that the script isn't in a tor build directory, by looking
for a src/include.am file.

Part of 32962.

5 years agoFix a small lint-changes warning.
Nick Mathewson [Fri, 17 Jan 2020 13:49:24 +0000 (08:49 -0500)] 
Fix a small lint-changes warning.

5 years agoMerge remote-tracking branch 'tor-github/pr/1529'
Nick Mathewson [Fri, 17 Jan 2020 13:49:56 +0000 (08:49 -0500)] 
Merge remote-tracking branch 'tor-github/pr/1529'

5 years agoInitialize publish/subscribe code when running as an NT service.
Nick Mathewson [Mon, 6 Jan 2020 13:45:29 +0000 (08:45 -0500)] 
Initialize publish/subscribe code when running as an NT service.

Fixes bug 32778; bugfix on 0.4.1.1-alpha.

5 years agoRevert "Use tor_api.h entry points in ntmain.c."
Nick Mathewson [Fri, 17 Jan 2020 13:39:56 +0000 (08:39 -0500)] 
Revert "Use tor_api.h entry points in ntmain.c."

This reverts commit dca2629480f143ed8deb71b73b15c7c5ff890571.

5 years agoRevert "Restore feature where nt-services detect non-"run_tor" modes."
Nick Mathewson [Fri, 17 Jan 2020 13:39:49 +0000 (08:39 -0500)] 
Revert "Restore feature where nt-services detect non-"run_tor" modes."

This reverts commit 5c240db0bf7751d74ba438a1ca4ef0d051a53df7.

5 years agoMerge branch 'ticket32806'
Nick Mathewson [Fri, 17 Jan 2020 13:37:33 +0000 (08:37 -0500)] 
Merge branch 'ticket32806'

5 years agoRemove some dead checks
Nick Mathewson [Fri, 17 Jan 2020 13:31:18 +0000 (08:31 -0500)] 
Remove some dead checks

The only code that could set these options to be negative was in the
unit tests.

5 years agofix a stray asterisk in a comment
Nick Mathewson [Fri, 17 Jan 2020 13:25:09 +0000 (08:25 -0500)] 
fix a stray asterisk in a comment

5 years agoMerge branch 'ticket32487_squashed_and_merged'
Nick Mathewson [Fri, 17 Jan 2020 12:50:50 +0000 (07:50 -0500)] 
Merge branch 'ticket32487_squashed_and_merged'

5 years agoMerge branch 'ticket32695_squashed'
Nick Mathewson [Thu, 16 Jan 2020 21:42:01 +0000 (16:42 -0500)] 
Merge branch 'ticket32695_squashed'

5 years agoRemove functions that checked for pre-ipv6 consensus.
Nick Mathewson [Wed, 15 Jan 2020 16:26:14 +0000 (11:26 -0500)] 
Remove functions that checked for pre-ipv6 consensus.

We no longer need or need to test:
  * node_awaiting_ipv6()
  * networkstatus_consensus_has_ipv6().

5 years agoRemove routerstatus_format_entry() consensus_method argument as unused
Nick Mathewson [Wed, 15 Jan 2020 16:20:30 +0000 (11:20 -0500)] 
Remove routerstatus_format_entry() consensus_method argument as unused

5 years agoRemove support for now-obsolete consensus methods before 28.
Nick Mathewson [Thu, 9 Jan 2020 17:41:56 +0000 (12:41 -0500)] 
Remove support for now-obsolete consensus methods before 28.

Closes ticket 32695.

5 years agoexpose routerstatus_has_changed to unit tests.
Nick Mathewson [Thu, 16 Jan 2020 17:14:12 +0000 (12:14 -0500)] 
expose routerstatus_has_changed to unit tests.

5 years agoRefactor routerstatus_has_changed function
Victor Nepveu [Tue, 12 Nov 2019 21:27:36 +0000 (22:27 +0100)] 
Refactor routerstatus_has_changed function

- Check all fields that might change in a routerstatus
- Document the refactoring

Signed-off-by: Victor Nepveu <victor.nepveu@imt-atlantique.net>
5 years agoMerge remote-tracking branch 'tor-github/pr/1663'
Nick Mathewson [Thu, 16 Jan 2020 15:24:39 +0000 (10:24 -0500)] 
Merge remote-tracking branch 'tor-github/pr/1663'

5 years agoMerge branch 'ticket32487_squashed' into ticket32487_squashed_and_merged
Nick Mathewson [Thu, 16 Jan 2020 12:57:37 +0000 (07:57 -0500)] 
Merge branch 'ticket32487_squashed' into ticket32487_squashed_and_merged

Resolved conflicts in src/core/include.am

5 years agoDocument why dircache is not included in --list-modules
Nick Mathewson [Wed, 15 Jan 2020 17:46:10 +0000 (12:46 -0500)] 
Document why dircache is not included in --list-modules

5 years agoAdd have_module_dircache().
Nick Mathewson [Wed, 15 Jan 2020 17:45:56 +0000 (12:45 -0500)] 
Add have_module_dircache().

5 years agoTurn several functions from stubs into macros
Nick Mathewson [Wed, 15 Jan 2020 17:30:43 +0000 (12:30 -0500)] 
Turn several functions from stubs into macros

This may help the compiler eliminate deadcode.

5 years agoRename dirclient_modes.h identifiers to start with dirclient_
Nick Mathewson [Wed, 15 Jan 2020 16:57:49 +0000 (11:57 -0500)] 
Rename dirclient_modes.h identifiers to start with dirclient_

This is an automated commit, generated by this command:

./scripts/maint/rename_c_identifier.py \
        directory_must_use_begindir dirclient_must_use_begindir \
        directory_fetches_from_authorities dirclient_fetches_from_authorities \
        directory_fetches_dir_info_early dirclient_fetches_dir_info_early \
        directory_fetches_dir_info_later dirclient_fetches_dir_info_later \
        directory_too_idle_to_fetch_descriptors dirclient_too_idle_to_fetch_descriptors

5 years agoMove directory_must_use_begindir() to dirclient_modes.[ch]
Nick Mathewson [Wed, 15 Jan 2020 16:55:16 +0000 (11:55 -0500)] 
Move directory_must_use_begindir() to dirclient_modes.[ch]

5 years agoMove dirclient-related functions out of dirserv, and reenable them
Nick Mathewson [Wed, 15 Jan 2020 16:43:14 +0000 (11:43 -0500)] 
Move dirclient-related functions out of dirserv, and reenable them

I had incorrectly identified these functions as dircache-only, when
in fact they apply to everyone who acts a directory client.

5 years agoAdd a changes file for disabling the dircache code.
Nick Mathewson [Thu, 9 Jan 2020 02:55:41 +0000 (21:55 -0500)] 
Add a changes file for disabling the dircache code.

5 years agoDisable feature/dircache files when dircache module is disabled.
Nick Mathewson [Thu, 9 Jan 2020 02:13:29 +0000 (21:13 -0500)] 
Disable feature/dircache files when dircache module is disabled.

To make Tor still work, we define a minimal dircache_stub.c file
that defines the entry points to the module that can actually be
seen by the compiler when we're building with dircache and relay
disabled.

5 years agoUse dir_conn_clear_spool() in connection.c.
Nick Mathewson [Thu, 9 Jan 2020 02:43:02 +0000 (21:43 -0500)] 
Use dir_conn_clear_spool() in connection.c.

This is cleaner than iterating over the spool.

5 years agoMove dirserv_get_routerdescs() to control_getinfo.c
Nick Mathewson [Thu, 9 Jan 2020 02:32:16 +0000 (21:32 -0500)] 
Move dirserv_get_routerdescs() to control_getinfo.c

This function had some XXX comments indicating (correctly) that it
was not actually used by the dirserver code, and that only the
controller still used it.

5 years agoMove dir_split_resource_into_spoolable() to dircache module.
Nick Mathewson [Thu, 9 Jan 2020 02:24:26 +0000 (21:24 -0500)] 
Move dir_split_resource_into_spoolable() to dircache module.

Only directory caches actually need to spool things.

5 years agoDefine a "dircache" module.
Nick Mathewson [Thu, 9 Jan 2020 02:03:20 +0000 (21:03 -0500)] 
Define a "dircache" module.

For now, this module is enabled whenever the relay module is
enabled, and disabled whenever the relay module is disabled.  Though
they are logically separate, the use cases for running one without
the other are rare enough that we don't really want to support
compiling them independently.

5 years agoMerge branch 'maint-0.4.2'
teor [Thu, 16 Jan 2020 00:00:55 +0000 (10:00 +1000)] 
Merge branch 'maint-0.4.2'

5 years agoMerge branch 'maint-0.4.1' into maint-0.4.2
teor [Thu, 16 Jan 2020 00:00:47 +0000 (10:00 +1000)] 
Merge branch 'maint-0.4.1' into maint-0.4.2

5 years agoMerge branch 'maint-0.4.0' into maint-0.4.1
teor [Thu, 16 Jan 2020 00:00:40 +0000 (10:00 +1000)] 
Merge branch 'maint-0.4.0' into maint-0.4.1

5 years agoMerge branch 'maint-0.3.5' into maint-0.4.0
teor [Thu, 16 Jan 2020 00:00:32 +0000 (10:00 +1000)] 
Merge branch 'maint-0.3.5' into maint-0.4.0

5 years agoMerge remote-tracking branch 'tor-github/pr/1513' into maint-0.3.5
teor [Wed, 15 Jan 2020 23:57:27 +0000 (09:57 +1000)] 
Merge remote-tracking branch 'tor-github/pr/1513' into maint-0.3.5

5 years agoDon't escape the bridge distribution value.
Alexander Færøy [Wed, 15 Jan 2020 23:24:18 +0000 (23:24 +0000)] 
Don't escape the bridge distribution value.

We already check if there are invalid values in
check_bridge_distribution_setting() and reject the value if that is the
case. We can therefore only have strings of [A-Z] | [a-z] | [0-9] | '-'
| '_' here which is according to the directory specification.

See: https://bugs.torproject.org/32753

5 years agoadd_c_file: Fix "control line not preceded by a blank line"
teor [Wed, 15 Jan 2020 23:38:26 +0000 (09:38 +1000)] 
add_c_file: Fix "control line not preceded by a blank line"

Fix dirauth and relay module include.am add_c_file.py
"control line not preceded by a blank line" errors.

Also remove a duplicate ADD_C_FILE: SOURCES in the relay module.

Obviously correct fixes to already-reviewed code.

5 years agoadd_c_file: Rename variables based on the type of path
teor [Wed, 15 Jan 2020 23:15:22 +0000 (09:15 +1000)] 
add_c_file: Rename variables based on the type of path

* fname for generic file paths
* tor_fname for paths relative to the top-level tor directory
* src_fname for paths relative to tor's src directory

With prefixes as required to disambiguate different paths of the same
type.

Part of 32962.

5 years agoadd_c_file: Simplify some usage of srcdir_file()
teor [Wed, 15 Jan 2020 22:55:20 +0000 (08:55 +1000)] 
add_c_file: Simplify some usage of srcdir_file()

Part of 32962.

5 years agoadd_c_file: Document the paths used by each part of the script
teor [Wed, 15 Jan 2020 22:48:44 +0000 (08:48 +1000)] 
add_c_file: Document the paths used by each part of the script

Most paths are relative to the top-level tor directory, but the
paths in the C and H files are relative to tor's src directory.

Part of 32962.

5 years agoadd_c_file: Improve path handling and canonicalisation
teor [Wed, 15 Jan 2020 22:36:45 +0000 (08:36 +1000)] 
add_c_file: Improve path handling and canonicalisation

* distinguish between paths relative to the top-level tor directory,
  and paths relative to tor's src directory
* canonicalise paths before using them
* check that the script is run from the top-level tor directory
* check that the file is being created in tor's src directory

Part of 32962.

5 years agoadd_c_file: tolerate ./ in filenames.
Nick Mathewson [Wed, 15 Jan 2020 17:58:52 +0000 (12:58 -0500)] 
add_c_file: tolerate ./ in filenames.

5 years agoadd_c_file: handle adding to the end of a list correctly.
Nick Mathewson [Wed, 15 Jan 2020 17:54:47 +0000 (12:54 -0500)] 
add_c_file: handle adding to the end of a list correctly.

Fixes bug 32962.

5 years agoRemove "hyphae" as a known value for BridgeDistribution.
Alexander Færøy [Wed, 15 Jan 2020 23:20:27 +0000 (23:20 +0000)] 
Remove "hyphae" as a known value for BridgeDistribution.

This patch removes hyphae as a known value for the BridgeDistribution
option in torrc.

5 years agoMerge remote-tracking branch 'tor-github/pr/1657'
Nick Mathewson [Wed, 15 Jan 2020 18:10:14 +0000 (13:10 -0500)] 
Merge remote-tracking branch 'tor-github/pr/1657'

5 years agoLowercase BridgeDistribution value before adding it to the descriptor.
Alexander Færøy [Wed, 15 Jan 2020 17:22:47 +0000 (17:22 +0000)] 
Lowercase BridgeDistribution value before adding it to the descriptor.

This patch makes sure we lowercase the value of BridgeDistribution
before we add it to the descriptor as `bridge-distribution-request`.

See: https://bugs.torproject.org/32753

5 years agoMake BridgeDistribution setting validator case-insensitive.
Alexander Færøy [Wed, 15 Jan 2020 17:21:10 +0000 (17:21 +0000)] 
Make BridgeDistribution setting validator case-insensitive.

This patch makes sure that we accept values such as "nOne", "None", and
"AnY" as valid values for BridgeDistribution. We later ensure to
lower-case the values before they are forwarded to the BridgeDB.

See: https://bugs.torproject.org/32753

5 years agoAlways escape BridgeDistribution value from torrc in descriptors.
Alexander Færøy [Wed, 15 Jan 2020 17:18:30 +0000 (17:18 +0000)] 
Always escape BridgeDistribution value from torrc in descriptors.

When the BridgeDistribution value was added in commit
ebab5215252f9fa810ae091c335c5ae6e619faaf the check for whether the value
contains '\n' or '\r' was added as a requirement for whether or not the
value should be escaped.

This patch removes this check and makes sure we call `escaped()` on the
value every time before we add it to a descriptor.

See: https://bugs.torproject.org/32753

5 years agoTell static analyzer that having ntservice functions not exist is ok
Nick Mathewson [Wed, 15 Jan 2020 15:30:03 +0000 (10:30 -0500)] 
Tell static analyzer that having ntservice functions not exist is ok

When we made these functions exist unconditionally (as macros on
non-windows platforms), we started to get a dead-code warning on
Coverity.  We now use a macro to tell coverity not to worry about
this particular dead-code instance.

5 years agocompat_compiler: add a macro to prevent coverity deadcode warnings.
Nick Mathewson [Wed, 15 Jan 2020 15:21:18 +0000 (10:21 -0500)] 
compat_compiler: add a macro to prevent coverity deadcode warnings.

The POSSIBLE(e) macro evaluates to the value of (e), but does so in
a way that a static analyzer will not conclude that (e) is
impossible.  We can use this when we expect our regular compilers to
eliminate deadcode, but we don't want coverity to complain about it.

Part of a fix for 32960.

5 years agoMerge remote-tracking branch 'tor-github/pr/1661'
teor [Wed, 15 Jan 2020 14:46:31 +0000 (00:46 +1000)] 
Merge remote-tracking branch 'tor-github/pr/1661'

5 years agoMerge remote-tracking branch 'tor-github/pr/1634'
teor [Wed, 15 Jan 2020 12:31:10 +0000 (22:31 +1000)] 
Merge remote-tracking branch 'tor-github/pr/1634'

"Ours" merge, because ticket 32883 replaces this code with calls
to tor_run_main(). (Which then calls the pubsub functions.)

Therefore, this PR is obsolete in master, but it still needs to be
merged, to avoid conflicts during any future backport.

5 years agoMerge branch 'pr1599_squashed'
teor [Wed, 15 Jan 2020 12:31:01 +0000 (22:31 +1000)] 
Merge branch 'pr1599_squashed'

5 years agopractracker: Wrap long lines in the test script
teor [Tue, 14 Jan 2020 07:24:11 +0000 (17:24 +1000)] 
practracker: Wrap long lines in the test script

5 years agopractracker: Test practracker exit status
teor [Tue, 14 Jan 2020 07:23:41 +0000 (17:23 +1000)] 
practracker: Test practracker exit status

Part of 32705.

5 years agopractracker: Fail tests if any process exits unexpectedly
teor [Tue, 14 Jan 2020 07:20:36 +0000 (17:20 +1000)] 
practracker: Fail tests if any process exits unexpectedly

Part of 32705.

5 years agopractracker: Capture stderr output in test_practracker.sh
teor [Thu, 12 Dec 2019 06:15:29 +0000 (16:15 +1000)] 
practracker: Capture stderr output in test_practracker.sh

And canonicalise file paths, so that output is consistent, even in
out-of-tree builds.

Capturing stderr output produces better diagnostics.

Diagnostics for 32705.

5 years agoscripts/git: Improve branch list comments
teor [Wed, 15 Jan 2020 02:28:00 +0000 (12:28 +1000)] 
scripts/git: Improve branch list comments

Hopefully, these explanations make it easier to get the next branch
transition right.

Part of 32772.

5 years agoscripts/git: Fix git-merge-forward after removing 0.2.9
teor [Wed, 15 Jan 2020 02:22:38 +0000 (12:22 +1000)] 
scripts/git: Fix git-merge-forward after removing 0.2.9

We need a test branch for the earliest maint branch (maint-0.3.5),
but we can't merge forward into it, because there is no previous
active maint branch.

Also, edit a git-push-all comment that still said "029".

Bugfix on 32772; bug not in any released version of tor.

5 years agoMerge branch 'tor-github/pr/1633'
David Goulet [Tue, 14 Jan 2020 19:03:21 +0000 (14:03 -0500)] 
Merge branch 'tor-github/pr/1633'

5 years agoMerge branch 'ticket32892_043_01_squashed'
Nick Mathewson [Tue, 14 Jan 2020 18:31:20 +0000 (13:31 -0500)] 
Merge branch 'ticket32892_043_01_squashed'

5 years agochan: Remove dead var cell handler from channel_t
David Goulet [Tue, 7 Jan 2020 20:03:24 +0000 (15:03 -0500)] 
chan: Remove dead var cell handler from channel_t

The variable lenght cells are handled directly by
channel_tls_handle_var_cell() from an OR connection reading its inbuf. The
channel var cell handler (agnostic) was never used.

Closes #32892

Signed-off-by: David Goulet <dgoulet@torproject.org>
5 years agoReplace an assertion with a check-and-log
Nick Mathewson [Tue, 14 Jan 2020 18:16:39 +0000 (13:16 -0500)] 
Replace an assertion with a check-and-log

We hit this assertion with bug 32868, but I'm stymied figuring out
how we wound up with a routerstatus like this.  This patch is a
diagnostic to attempt to figure out what is going on, and to avoid a
crash in the meantime.

5 years agoMerge remote-tracking branch 'tor-github/pr/1636'
Nick Mathewson [Tue, 14 Jan 2020 17:46:14 +0000 (12:46 -0500)] 
Merge remote-tracking branch 'tor-github/pr/1636'

5 years agoMerge branch 'ticket32883'
Nick Mathewson [Tue, 14 Jan 2020 17:42:41 +0000 (12:42 -0500)] 
Merge branch 'ticket32883'

5 years agoMerge branch 'ticket32825_squashed'
Nick Mathewson [Tue, 14 Jan 2020 17:42:19 +0000 (12:42 -0500)] 
Merge branch 'ticket32825_squashed'

5 years agochanges file for 32825
Nick Mathewson [Fri, 20 Dec 2019 15:06:08 +0000 (10:06 -0500)] 
changes file for 32825