]> git.ipfire.org Git - thirdparty/tor.git/log
thirdparty/tor.git
5 years agoMerge branch 'maint-0.4.2' into maint-0.4.3
Nick Mathewson [Thu, 9 Jul 2020 14:30:46 +0000 (10:30 -0400)] 
Merge branch 'maint-0.4.2' into maint-0.4.3

`-s ours` to avoid version bump.

5 years agoUpdate version to 0.4.2.8.
Nick Mathewson [Thu, 9 Jul 2020 14:30:37 +0000 (10:30 -0400)] 
Update version to 0.4.2.8.

5 years agoMerge branch 'maint-0.3.5' into maint-0.4.2
Nick Mathewson [Thu, 9 Jul 2020 14:30:03 +0000 (10:30 -0400)] 
Merge branch 'maint-0.3.5' into maint-0.4.2

`-s ours` to avoid version bump.

5 years agobump to 0.3.5.11
Nick Mathewson [Thu, 9 Jul 2020 14:28:21 +0000 (10:28 -0400)] 
bump to 0.3.5.11

5 years agoMerge branch 'maint-0.4.2' into maint-0.4.3
Nick Mathewson [Thu, 9 Jul 2020 13:28:53 +0000 (09:28 -0400)] 
Merge branch 'maint-0.4.2' into maint-0.4.3

5 years agoMerge branch 'maint-0.3.5' into maint-0.4.2
Nick Mathewson [Thu, 9 Jul 2020 13:28:53 +0000 (09:28 -0400)] 
Merge branch 'maint-0.3.5' into maint-0.4.2

5 years agoMerge branch 'trove_2020_001_035' into maint-0.3.5
Nick Mathewson [Thu, 9 Jul 2020 13:28:36 +0000 (09:28 -0400)] 
Merge branch 'trove_2020_001_035' into maint-0.3.5

5 years agoMerge branch 'maint-0.4.2' into maint-0.4.3
Alexander Færøy [Wed, 8 Jul 2020 00:36:48 +0000 (00:36 +0000)] 
Merge branch 'maint-0.4.2' into maint-0.4.3

5 years agoMerge branch 'maint-0.3.5' into maint-0.4.2
Alexander Færøy [Wed, 8 Jul 2020 00:36:47 +0000 (00:36 +0000)] 
Merge branch 'maint-0.3.5' into maint-0.4.2

5 years agoResolve a compiler warning from a 32-bit signed/unsigned comparison
Nick Mathewson [Tue, 7 Jul 2020 18:58:49 +0000 (14:58 -0400)] 
Resolve a compiler warning from a 32-bit signed/unsigned comparison

This warning only affects platforms (like win32) with 32-bit time_t.

Fixes bug 40028; bugfix on 0.3.2.8-rc.

5 years agoMerge branch 'maint-0.4.2' into maint-0.4.3
Alexander Færøy [Tue, 7 Jul 2020 14:48:36 +0000 (14:48 +0000)] 
Merge branch 'maint-0.4.2' into maint-0.4.3

5 years agoMerge branch 'maint-0.3.5' into maint-0.4.2
Alexander Færøy [Tue, 7 Jul 2020 14:48:35 +0000 (14:48 +0000)] 
Merge branch 'maint-0.3.5' into maint-0.4.2

5 years agoCI: Fix Appveyor printf format error
David Goulet [Tue, 7 Jul 2020 13:20:28 +0000 (09:20 -0400)] 
CI: Fix Appveyor printf format error

For some reasons, Appveyor started to use the stdio printf format for 64 bit
values (PRIu64, ...). Mingw doesn't like that so force it to use the Windows
specific macros by setting D__USE_MINGW_ANSI_STDIO=0.

Fixes #40026

5 years agoUse ((x + 7) >> 3) instead of (x >> 3) when converting from bits to bytes.
Alexander Færøy [Sat, 16 May 2020 19:18:56 +0000 (19:18 +0000)] 
Use ((x + 7) >> 3) instead of (x >> 3) when converting from bits to bytes.

This patch changes our bits-to-bytes conversion logic in the NSS
implementation of `tor_tls_cert_matches_key()` from using (x >> 3) to
((x + 7) >> 3) since DER bit-strings are allowed to contain a number of
bits that is not a multiple of 8.

Additionally, we add a comment on why we cannot use the
`DER_ConvertBitString()` macro from NSS, as we would potentially apply
the bits-to-bytes conversion logic twice, which would lead to an
insignificant amount of bytes being compared in
`SECITEM_ItemsAreEqual()` and thus turn the logic into being a
prefix match instead of a full match.

The `DER_ConvertBitString()` macro is defined in NSS as:

    /*
    ** Macro to convert der decoded bit string into a decoded octet
    ** string. All it needs to do is fiddle with the length code.
    */
    #define DER_ConvertBitString(item)            \
        {                                         \
            (item)->len = ((item)->len + 7) >> 3; \
        }

Thanks to Taylor Yu for spotting this problem.

This patch is part of the fix for TROVE-2020-001.

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

5 years agoAdd constness to length variables in `tor_tls_cert_matches_key`.
Alexander Færøy [Sat, 16 May 2020 15:34:37 +0000 (15:34 +0000)] 
Add constness to length variables in `tor_tls_cert_matches_key`.

We add constness to `peer_info_orig_len` and `cert_info_orig_len` in
`tor_tls_cert_matches_key` to ensure that we don't accidentally alter
the variables.

This patch is part of the fix for TROVE-2020-001.

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

5 years agoFix out-of-bound memory read in `tor_tls_cert_matches_key()` for NSS.
Alexander Færøy [Tue, 31 Mar 2020 02:33:54 +0000 (02:33 +0000)] 
Fix out-of-bound memory read in `tor_tls_cert_matches_key()` for NSS.

This patch fixes an out-of-bound memory read in
`tor_tls_cert_matches_key()` when Tor is compiled to use Mozilla's NSS
instead of OpenSSL.

The NSS library stores some length fields in bits instead of bytes, but
the comparison function found in `SECITEM_ItemsAreEqual()` needs the
length to be encoded in bytes. This means that for a 140-byte,
DER-encoded, SubjectPublicKeyInfo struct (with a 1024-bit RSA public key
in it), we would ask `SECITEM_ItemsAreEqual()` to compare the first 1120
bytes instead of 140 (140bytes * 8bits = 1120bits).

This patch fixes the issue by converting from bits to bytes before
calling `SECITEM_ItemsAreEqual()` and convert the `len`-fields back to
bits before we leave the function.

This patch is part of the fix for TROVE-2020-001.

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

5 years agoRun `tor_tls_cert_matches_key()` Test Suite with both OpenSSL and NSS.
Alexander Færøy [Tue, 31 Mar 2020 02:28:12 +0000 (02:28 +0000)] 
Run `tor_tls_cert_matches_key()` Test Suite with both OpenSSL and NSS.

This patch lifts the `tor_tls_cert_matches_key()` tests out of the
OpenSSL specific TLS test suite and moves it into the generic TLS test
suite that is executed for both OpenSSL and NSS.

This patch is largely a code movement, but we had to rewrite parts of
the test to avoid using OpenSSL specific data-types (such as `X509 *`)
and replace it with the generic Tor abstraction type
(`tor_x509_cert_impl_t *`).

This patch is part of the fix for TROVE-2020-001.

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

5 years agoMerge branch 'maint-0.4.2' into maint-0.4.3
David Goulet [Thu, 2 Jul 2020 11:20:57 +0000 (07:20 -0400)] 
Merge branch 'maint-0.4.2' into maint-0.4.3

5 years agoMerge branch 'maint-0.3.5' into maint-0.4.2
David Goulet [Thu, 2 Jul 2020 11:20:57 +0000 (07:20 -0400)] 
Merge branch 'maint-0.3.5' into maint-0.4.2

5 years agoDowngrade "Bug: No entry found in extrainfo map" message.
Nick Mathewson [Tue, 30 Jun 2020 15:54:13 +0000 (11:54 -0400)] 
Downgrade "Bug: No entry found in extrainfo map" message.

This is not actually a bug!  It can happen for a bunch of reasons,
which all boil down to "trying to add an extrainfo for which we no
longer have the corresponding routerinfo".

Fixes #16016; bugfix on 0.2.6.3-alpha.

5 years agoMerge branch 'maint-0.4.2' into maint-0.4.3
Alexander Færøy [Tue, 30 Jun 2020 14:23:41 +0000 (14:23 +0000)] 
Merge branch 'maint-0.4.2' into maint-0.4.3

5 years agoMerge branch 'maint-0.3.5' into maint-0.4.2
Alexander Færøy [Tue, 30 Jun 2020 14:23:41 +0000 (14:23 +0000)] 
Merge branch 'maint-0.3.5' into maint-0.4.2

5 years agoMerge branch 'tor-github/pr/1909' into maint-0.3.5
Alexander Færøy [Tue, 30 Jun 2020 14:23:17 +0000 (14:23 +0000)] 
Merge branch 'tor-github/pr/1909' into maint-0.3.5

5 years agoMerge branch 'tor-github/pr/1887' into maint-0.4.3
Alexander Færøy [Tue, 30 Jun 2020 14:19:28 +0000 (14:19 +0000)] 
Merge branch 'tor-github/pr/1887' into maint-0.4.3

5 years agoMerge branch 'maint-0.4.2' into maint-0.4.3
Alexander Færøy [Tue, 30 Jun 2020 14:16:16 +0000 (14:16 +0000)] 
Merge branch 'maint-0.4.2' into maint-0.4.3

5 years agoMerge branch 'tor-github/pr/1806' into maint-0.4.2
Alexander Færøy [Tue, 30 Jun 2020 14:15:57 +0000 (14:15 +0000)] 
Merge branch 'tor-github/pr/1806' into maint-0.4.2

5 years agoMerge branch 'maint-0.4.2' into maint-0.4.3
Alexander Færøy [Tue, 30 Jun 2020 14:03:04 +0000 (14:03 +0000)] 
Merge branch 'maint-0.4.2' into maint-0.4.3

5 years agoMerge branch 'maint-0.3.5' into maint-0.4.2
Alexander Færøy [Tue, 30 Jun 2020 14:03:04 +0000 (14:03 +0000)] 
Merge branch 'maint-0.3.5' into maint-0.4.2

5 years agoMerge branch 'tor-github/pr/1793' into maint-0.3.5
Alexander Færøy [Tue, 30 Jun 2020 13:55:39 +0000 (13:55 +0000)] 
Merge branch 'tor-github/pr/1793' into maint-0.3.5

5 years agoMerge branch 'maint-0.4.2' into maint-0.4.3
Alexander Færøy [Tue, 30 Jun 2020 13:48:49 +0000 (13:48 +0000)] 
Merge branch 'maint-0.4.2' into maint-0.4.3

5 years agoMerge branch 'maint-0.3.5' into maint-0.4.2
Alexander Færøy [Tue, 30 Jun 2020 13:48:49 +0000 (13:48 +0000)] 
Merge branch 'maint-0.3.5' into maint-0.4.2

5 years agoMerge branch 'tor-github/pr/1785' into maint-0.3.5
Alexander Færøy [Tue, 30 Jun 2020 13:47:55 +0000 (13:47 +0000)] 
Merge branch 'tor-github/pr/1785' into maint-0.3.5

5 years agoMerge branch 'maint-0.4.2' into maint-0.4.3
Alexander Færøy [Tue, 30 Jun 2020 13:37:20 +0000 (13:37 +0000)] 
Merge branch 'maint-0.4.2' into maint-0.4.3

5 years agoMerge branch 'maint-0.3.5' into maint-0.4.2
Alexander Færøy [Tue, 30 Jun 2020 13:37:20 +0000 (13:37 +0000)] 
Merge branch 'maint-0.3.5' into maint-0.4.2

5 years agoMerge remote-tracking branch 'nickm-github/bug32884_035' into maint-0.3.5
Alexander Færøy [Tue, 30 Jun 2020 13:35:13 +0000 (13:35 +0000)] 
Merge remote-tracking branch 'nickm-github/bug32884_035' into maint-0.3.5

5 years agoMerge branch 'maint-0.4.2' into maint-0.4.3
Nick Mathewson [Mon, 29 Jun 2020 17:57:41 +0000 (13:57 -0400)] 
Merge branch 'maint-0.4.2' into maint-0.4.3

5 years agoMerge branch 'ticket33290_v2_042' into maint-0.4.2
Nick Mathewson [Mon, 29 Jun 2020 17:57:13 +0000 (13:57 -0400)] 
Merge branch 'ticket33290_v2_042' into maint-0.4.2

5 years agoMerge branch 'maint-0.4.2' into maint-0.4.3
Nick Mathewson [Mon, 29 Jun 2020 17:55:22 +0000 (13:55 -0400)] 
Merge branch 'maint-0.4.2' into maint-0.4.3

5 years agoMerge remote-tracking branch 'tor-github/pr/1696/head' into maint-0.4.2
Nick Mathewson [Mon, 29 Jun 2020 17:53:27 +0000 (13:53 -0400)] 
Merge remote-tracking branch 'tor-github/pr/1696/head' into maint-0.4.2

5 years agoMerge branch 'maint-0.4.2' into maint-0.4.3
Nick Mathewson [Mon, 29 Jun 2020 17:48:32 +0000 (13:48 -0400)] 
Merge branch 'maint-0.4.2' into maint-0.4.3

5 years agoMerge remote-tracking branch 'tor-github/pr/1697/head' into maint-0.4.2
Nick Mathewson [Mon, 29 Jun 2020 17:48:25 +0000 (13:48 -0400)] 
Merge remote-tracking branch 'tor-github/pr/1697/head' into maint-0.4.2

5 years agoMerge branch 'maint-0.4.2' into maint-0.4.3
Nick Mathewson [Mon, 29 Jun 2020 16:58:50 +0000 (12:58 -0400)] 
Merge branch 'maint-0.4.2' into maint-0.4.3

5 years agoMerge remote-tracking branch 'tor-github/pr/1722/head' into maint-0.4.2
Nick Mathewson [Mon, 29 Jun 2020 16:58:23 +0000 (12:58 -0400)] 
Merge remote-tracking branch 'tor-github/pr/1722/head' into maint-0.4.2

5 years agoMerge remote-tracking branch 'tor-github/pr/1829/head' into maint-0.4.3
Nick Mathewson [Mon, 29 Jun 2020 16:56:39 +0000 (12:56 -0400)] 
Merge remote-tracking branch 'tor-github/pr/1829/head' into maint-0.4.3

5 years agoMerge branch 'maint-0.3.5' into maint-0.4.2
Nick Mathewson [Mon, 29 Jun 2020 16:55:35 +0000 (12:55 -0400)] 
Merge branch 'maint-0.3.5' into maint-0.4.2

5 years agoMerge branch 'maint-0.4.2' into maint-0.4.3
Nick Mathewson [Mon, 29 Jun 2020 16:55:35 +0000 (12:55 -0400)] 
Merge branch 'maint-0.4.2' into maint-0.4.3

5 years agoMerge remote-tracking branch 'tor-github/pr/1725/head' into maint-0.3.5
Nick Mathewson [Mon, 29 Jun 2020 16:55:27 +0000 (12:55 -0400)] 
Merge remote-tracking branch 'tor-github/pr/1725/head' into maint-0.3.5

5 years agoMerge branch 'maint-0.3.5' into maint-0.4.2
David Goulet [Fri, 12 Jun 2020 16:55:41 +0000 (12:55 -0400)] 
Merge branch 'maint-0.3.5' into maint-0.4.2

5 years agoMerge branch 'maint-0.4.2' into maint-0.4.3
David Goulet [Fri, 12 Jun 2020 16:55:41 +0000 (12:55 -0400)] 
Merge branch 'maint-0.4.2' into maint-0.4.3

5 years agoMerge branch 'tor-github/pr/1912' into maint-0.3.5
David Goulet [Fri, 12 Jun 2020 16:55:17 +0000 (12:55 -0400)] 
Merge branch 'tor-github/pr/1912' into maint-0.3.5

5 years agoMerge branch 'maint-0.3.5' into maint-0.4.2
Nick Mathewson [Fri, 5 Jun 2020 16:37:29 +0000 (12:37 -0400)] 
Merge branch 'maint-0.3.5' into maint-0.4.2

5 years agoMerge branch 'maint-0.4.2' into maint-0.4.3
Nick Mathewson [Fri, 5 Jun 2020 16:37:29 +0000 (12:37 -0400)] 
Merge branch 'maint-0.4.2' into maint-0.4.3

5 years agoUpdate and upgrade Pacman before installing dependencies in AppVeyor.
Alexander Færøy [Tue, 2 Jun 2020 13:07:54 +0000 (13:07 +0000)] 
Update and upgrade Pacman before installing dependencies in AppVeyor.

This patch makes sures that AppVeyor upgrades its Pacman (the package
manager) before installing the Tor dependencies.

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

5 years agoRevert "Travis: temporarily fix stem version to d1174a83c2dcb7b8"
Nick Mathewson [Wed, 3 Jun 2020 18:48:05 +0000 (14:48 -0400)] 
Revert "Travis: temporarily fix stem version to d1174a83c2dcb7b8"

This reverts commit e63bfca5f2d98788d11b9a0a82bf67277a228c71, now
that Stem has been upgraded to fix the underlying issue.

5 years agoMerge branch 'tor-github/pr/1909' into maint-0.4.3
George Kadianakis [Tue, 2 Jun 2020 11:05:33 +0000 (14:05 +0300)] 
Merge branch 'tor-github/pr/1909' into maint-0.4.3

5 years agoMerge remote-tracking branch 'tor-github/pr/1905/head' into maint-0.4.3
Nick Mathewson [Mon, 1 Jun 2020 13:47:37 +0000 (09:47 -0400)] 
Merge remote-tracking branch 'tor-github/pr/1905/head' into maint-0.4.3

5 years agoPreemptive circs should work with UseEntryGuards 0
Roger Dingledine [Sat, 30 May 2020 05:54:22 +0000 (01:54 -0400)] 
Preemptive circs should work with UseEntryGuards 0

Resume being willing to use preemptively-built circuits when
UseEntryGuards is set to 0. We accidentally disabled this feature with
that config setting (in our fix for #24469), leading to slower load times.

Fixes bug 34303; bugfix on 0.3.3.2-alpha.

5 years agoMerge branch 'tor-github/pr/1792' into maint-0.4.3
George Kadianakis [Thu, 28 May 2020 09:25:57 +0000 (12:25 +0300)] 
Merge branch 'tor-github/pr/1792' into maint-0.4.3

5 years agochanges: Add changes file for ticket 33458
David Goulet [Wed, 18 Mar 2020 14:16:31 +0000 (10:16 -0400)] 
changes: Add changes file for ticket 33458

Signed-off-by: David Goulet <dgoulet@torproject.org>
5 years agohs-v3: Improve accessor semantic of client cached object
David Goulet [Tue, 10 Mar 2020 14:58:51 +0000 (10:58 -0400)] 
hs-v3: Improve accessor semantic of client cached object

Add an inline helper function that indicates if the cached object contains a
decrypted descriptor or not.

The descriptor object is NULL if tor is unable to decrypt it (lacking client
authorization) and some actions need to be done only when we have a decrypted
object.

This improves code semantic.

Fixes #33458

Signed-off-by: David Goulet <dgoulet@torproject.org>
5 years agoMan page: MinUptimeHidServDirectoryV2 defaults to 96 hours
Roger Dingledine [Sat, 23 May 2020 08:27:56 +0000 (04:27 -0400)] 
Man page: MinUptimeHidServDirectoryV2 defaults to 96 hours

Bugfix on 0.2.6.3-alpha; fixes bug 34299.

5 years agoMerge branch 'ticket34255_043' into maint-0.4.3
Nick Mathewson [Tue, 19 May 2020 13:39:04 +0000 (09:39 -0400)] 
Merge branch 'ticket34255_043' into maint-0.4.3

5 years agoDoxygen: fix unbalanced groups.
Nick Mathewson [Tue, 19 May 2020 13:18:39 +0000 (09:18 -0400)] 
Doxygen: fix unbalanced groups.

Closes ticket 34255.

5 years agoAdd a changes file for 34233.
Nick Mathewson [Fri, 15 May 2020 14:27:49 +0000 (10:27 -0400)] 
Add a changes file for 34233.

This bug was merged back to 0.3.5 with our #34078 fix, but only
released in 0.4.3.5, so the changes file goes here.

5 years agoMerge branch 'maint-0.4.1' into maint-0.4.2
Nick Mathewson [Fri, 15 May 2020 14:25:27 +0000 (10:25 -0400)] 
Merge branch 'maint-0.4.1' into maint-0.4.2

5 years agoMerge branch 'maint-0.4.2' into maint-0.4.3
Nick Mathewson [Fri, 15 May 2020 14:25:27 +0000 (10:25 -0400)] 
Merge branch 'maint-0.4.2' into maint-0.4.3

5 years agoMerge branch 'maint-0.3.5' into maint-0.4.1 maint-0.4.1
Nick Mathewson [Fri, 15 May 2020 14:25:27 +0000 (10:25 -0400)] 
Merge branch 'maint-0.3.5' into maint-0.4.1

5 years agoFix use of non-portable == in configure.ac.
Nick Mathewson [Fri, 15 May 2020 13:58:49 +0000 (09:58 -0400)] 
Fix use of non-portable == in configure.ac.

Fixes bug 34233.

(This has bug has been backported to 0.3.5, but only released in
0.4.3, so it only needs a changes file there.)

5 years agobump to 0.4.3.5-dev
Nick Mathewson [Fri, 15 May 2020 13:02:12 +0000 (09:02 -0400)] 
bump to 0.4.3.5-dev

5 years agobump to 0.4.3.5
Nick Mathewson [Thu, 14 May 2020 14:37:42 +0000 (10:37 -0400)] 
bump to 0.4.3.5

5 years agoMerge branch 'maint-0.4.1' into maint-0.4.2
Nick Mathewson [Thu, 14 May 2020 14:20:08 +0000 (10:20 -0400)] 
Merge branch 'maint-0.4.1' into maint-0.4.2

5 years agoMerge branch 'maint-0.3.5' into maint-0.4.1
Nick Mathewson [Thu, 14 May 2020 14:20:08 +0000 (10:20 -0400)] 
Merge branch 'maint-0.3.5' into maint-0.4.1

5 years agoMerge branch 'maint-0.4.2' into maint-0.4.3
Nick Mathewson [Thu, 14 May 2020 14:20:08 +0000 (10:20 -0400)] 
Merge branch 'maint-0.4.2' into maint-0.4.3

5 years agoTravis: temporarily fix stem version to d1174a83c2dcb7b8
Nick Mathewson [Wed, 13 May 2020 12:53:02 +0000 (08:53 -0400)] 
Travis: temporarily fix stem version to d1174a83c2dcb7b8

This is a workaround for https://github.com/torproject/stem/issues/63

5 years agoFix crash when tor is compiled with NSS and seccomp sandbox is enabled
Daniel Pinto [Wed, 6 May 2020 21:00:50 +0000 (22:00 +0100)] 
Fix crash when tor is compiled with NSS and seccomp sandbox is enabled

Adds seccomp rules for socket and getpeername used by NSS

5 years agoFix a boolean logic error when logging about invalid hostnames.
Nick Mathewson [Wed, 6 May 2020 21:15:37 +0000 (17:15 -0400)] 
Fix a boolean logic error when logging about invalid hostnames.

Fixes bug 34131; bugfix on 0.4.3.1-alpha.

5 years agoconnection_or_finished_flushing(): add a missing "break;"
Nick Mathewson [Wed, 6 May 2020 21:09:27 +0000 (17:09 -0400)] 
connection_or_finished_flushing(): add a missing "break;"

This one is harmless like the others (so far)

5 years agoMerge branch 'maint-0.4.2' into maint-0.4.3
Nick Mathewson [Wed, 6 May 2020 21:07:47 +0000 (17:07 -0400)] 
Merge branch 'maint-0.4.2' into maint-0.4.3

5 years agoMerge branch 'maint-0.4.1' into maint-0.4.2
Nick Mathewson [Wed, 6 May 2020 21:07:27 +0000 (17:07 -0400)] 
Merge branch 'maint-0.4.1' into maint-0.4.2

5 years agobtrack_orconn_cevent.c: Add a missing "break;"
Nick Mathewson [Wed, 6 May 2020 21:07:12 +0000 (17:07 -0400)] 
btrack_orconn_cevent.c: Add a missing "break;"

5 years agoMerge branch 'maint-0.4.2' into maint-0.4.3
Nick Mathewson [Wed, 6 May 2020 20:58:12 +0000 (16:58 -0400)] 
Merge branch 'maint-0.4.2' into maint-0.4.3

5 years agoMerge branch 'maint-0.4.1' into maint-0.4.2
Nick Mathewson [Wed, 6 May 2020 20:58:12 +0000 (16:58 -0400)] 
Merge branch 'maint-0.4.1' into maint-0.4.2

5 years agoMerge branch 'maint-0.3.5' into maint-0.4.1
Nick Mathewson [Wed, 6 May 2020 20:58:12 +0000 (16:58 -0400)] 
Merge branch 'maint-0.3.5' into maint-0.4.1

5 years agochanges file for bug 34078.
Nick Mathewson [Wed, 6 May 2020 20:58:06 +0000 (16:58 -0400)] 
changes file for bug 34078.

5 years agoUse __attribute__((fallthrough)) rather than magic GCC comments.
Nick Mathewson [Wed, 6 May 2020 14:45:48 +0000 (10:45 -0400)] 
Use __attribute__((fallthrough)) rather than magic GCC comments.

GCC added an implicit-fallthrough warning a while back, where it
would complain if you had a nontrivial "case:" block that didn't end
with break, return, or something like that.  Clang recently added
the same thing.

GCC, however, would let you annotate a fall-through as intended by
any of various magic "/* fall through */" comments.  Clang, however,
only seems to like "__attribute__((fallthrough))".  Fortunately, GCC
accepts that too.

A previous commit in this branch defined a FALLTHROUGH macro to do
the right thing if GNUC is defined; here we replace all of our "fall
through" comments with uses of that macro.

This is an automated commit, made with the following perl one-liner:

  #!/usr/bin/perl -i -p
  s#/\* *falls? ?thr.*?\*/#FALLTHROUGH;#i;

(In order to avoid conflicts, I'm applying this script separately to
each maint branch. This is the 0.4.3 version.)

5 years agoMerge branch 'maint-0.4.2' into maint-0.4.3
Nick Mathewson [Wed, 6 May 2020 20:54:12 +0000 (16:54 -0400)] 
Merge branch 'maint-0.4.2' into maint-0.4.3

This is an "ours" merge to avoid taking the maint-0.4.2 version of the 34078
fix.

5 years agoUse __attribute__((fallthrough)) rather than magic GCC comments.
Nick Mathewson [Wed, 6 May 2020 14:45:48 +0000 (10:45 -0400)] 
Use __attribute__((fallthrough)) rather than magic GCC comments.

GCC added an implicit-fallthrough warning a while back, where it
would complain if you had a nontrivial "case:" block that didn't end
with break, return, or something like that.  Clang recently added
the same thing.

GCC, however, would let you annotate a fall-through as intended by
any of various magic "/* fall through */" comments.  Clang, however,
only seems to like "__attribute__((fallthrough))".  Fortunately, GCC
accepts that too.

A previous commit in this branch defined a FALLTHROUGH macro to do
the right thing if GNUC is defined; here we replace all of our "fall
through" comments with uses of that macro.

This is an automated commit, made with the following perl one-liner:

  #!/usr/bin/perl -i -p
  s#/\* *falls? ?thr.*?\*/#FALLTHROUGH;#i;

(In order to avoid conflicts, I'm applying this script separately to
each maint branch. This is the 0.4.2 version.)

5 years agoMerge branch 'maint-0.4.1' into maint-0.4.2
Nick Mathewson [Wed, 6 May 2020 20:53:06 +0000 (16:53 -0400)] 
Merge branch 'maint-0.4.1' into maint-0.4.2

This is an "ours" merge to avoid taking the 0.4.1 version of the 34078 fix.

5 years agoUse __attribute__((fallthrough)) rather than magic GCC comments.
Nick Mathewson [Wed, 6 May 2020 14:45:48 +0000 (10:45 -0400)] 
Use __attribute__((fallthrough)) rather than magic GCC comments.

GCC added an implicit-fallthrough warning a while back, where it
would complain if you had a nontrivial "case:" block that didn't end
with break, return, or something like that.  Clang recently added
the same thing.

GCC, however, would let you annotate a fall-through as intended by
any of various magic "/* fall through */" comments.  Clang, however,
only seems to like "__attribute__((fallthrough))".  Fortunately, GCC
accepts that too.

A previous commit in this branch defined a FALLTHROUGH macro to do
the right thing if GNUC is defined; here we replace all of our "fall
through" comments with uses of that macro.

This is an automated commit, made with the following perl one-liner:

  #!/usr/bin/perl -i -p
  s#/\* *falls? ?thr.*?\*/#FALLTHROUGH;#i;

(In order to avoid conflicts, I'm applying this script separately to
each maint branch. This is the 0.4.1 version.)

5 years agoMerge branch 'maint-0.3.5' into maint-0.4.1
Nick Mathewson [Wed, 6 May 2020 20:51:33 +0000 (16:51 -0400)] 
Merge branch 'maint-0.3.5' into maint-0.4.1

This is an "ours" merge to avoid taking the 0.3.5 fix for 34078.

5 years agoUse __attribute__((fallthrough)) rather than magic GCC comments.
Nick Mathewson [Wed, 6 May 2020 14:45:48 +0000 (10:45 -0400)] 
Use __attribute__((fallthrough)) rather than magic GCC comments.

GCC added an implicit-fallthrough warning a while back, where it
would complain if you had a nontrivial "case:" block that didn't end
with break, return, or something like that.  Clang recently added
the same thing.

GCC, however, would let you annotate a fall-through as intended by
any of various magic "/* fall through */" comments.  Clang, however,
only seems to like "__attribute__((fallthrough))".  Fortunately, GCC
accepts that too.

A previous commit in this branch defined a FALLTHROUGH macro to do
the right thing if GNUC is defined; here we replace all of our "fall
through" comments with uses of that macro.

This is an automated commit, made with the following perl one-liner:

  #!/usr/bin/perl -i -p
  s#/\* *falls? ?thr.*?\*/#FALLTHROUGH;#i;

5 years agohs_dos.c: rewrite a comment not to say "fallthrough"
Nick Mathewson [Wed, 6 May 2020 20:49:57 +0000 (16:49 -0400)] 
hs_dos.c: rewrite a comment not to say "fallthrough"

There's nothing wrong with the comment, but the script I'm about to
apply wouldn't like it.

5 years agoMerge branch 'maint-0.4.1' into maint-0.4.2
Nick Mathewson [Wed, 6 May 2020 20:47:03 +0000 (16:47 -0400)] 
Merge branch 'maint-0.4.1' into maint-0.4.2

5 years agoMerge branch 'maint-0.3.5' into maint-0.4.1
Nick Mathewson [Wed, 6 May 2020 20:47:03 +0000 (16:47 -0400)] 
Merge branch 'maint-0.3.5' into maint-0.4.1

5 years agoMerge branch 'maint-0.4.2' into maint-0.4.3
Nick Mathewson [Wed, 6 May 2020 20:47:03 +0000 (16:47 -0400)] 
Merge branch 'maint-0.4.2' into maint-0.4.3

5 years agoMerge branch 'bug34078_prelim_041' into maint-0.4.1
Nick Mathewson [Wed, 6 May 2020 20:46:52 +0000 (16:46 -0400)] 
Merge branch 'bug34078_prelim_041' into maint-0.4.1

5 years agoMerge branch 'bug34078_prelim_035' into maint-0.3.5
Nick Mathewson [Wed, 6 May 2020 20:46:31 +0000 (16:46 -0400)] 
Merge branch 'bug34078_prelim_035' into maint-0.3.5

5 years agoMerge branch 'bug34078_prelim_035' into bug34078_prelim_041
Nick Mathewson [Wed, 6 May 2020 19:18:36 +0000 (15:18 -0400)] 
Merge branch 'bug34078_prelim_035' into bug34078_prelim_041

5 years agoRemove an incorrect "Fall through" comment.
Nick Mathewson [Wed, 6 May 2020 18:47:38 +0000 (14:47 -0400)] 
Remove an incorrect "Fall through" comment.

5 years agoaddress.c: add a single (harmless) missing break;
Nick Mathewson [Wed, 6 May 2020 14:42:17 +0000 (10:42 -0400)] 
address.c: add a single (harmless) missing break;