]> git.ipfire.org Git - thirdparty/tor.git/log
thirdparty/tor.git
11 years agoAdd coccinelle script to remove pointless callocs
Nick Mathewson [Tue, 16 Sep 2014 15:11:17 +0000 (11:11 -0400)] 
Add coccinelle script to remove pointless callocs

11 years agoAdd script to detect and remove unCish malloc-then-cast pattern
Nick Mathewson [Tue, 16 Sep 2014 14:57:00 +0000 (10:57 -0400)] 
Add script to detect and remove unCish malloc-then-cast pattern

Also, apply it.

11 years agoDon't pass invalid memory regions to digestmap_set/get in test_routerlist
Nick Mathewson [Mon, 15 Sep 2014 18:04:19 +0000 (14:04 -0400)] 
Don't pass invalid memory regions to digestmap_set/get in test_routerlist

Fixes bug in c887e20e6a5a2c17c65; bug in no released Tor version.

11 years agoClean up a clangalyzer warning in directory_remove_invalid
Nick Mathewson [Mon, 15 Sep 2014 17:52:56 +0000 (13:52 -0400)] 
Clean up a clangalyzer warning in directory_remove_invalid

"At this point in the code, msg has been set to a string
constant. But the tor code checks that msg is not NULL, and the
redundant NULL check confuses the analyser[...] To avoid this
spurious warning, the patch initialises msg to NULL."

Patch from teor. another part of 13157.

11 years agoClear up another clangalyzer issue
Nick Mathewson [Mon, 15 Sep 2014 17:52:13 +0000 (13:52 -0400)] 
Clear up another clangalyzer issue

"The NULL pointer warnings on the return value of
tor_addr_to_in6_addr32() are incorrect. But clang can't work this
out itself due to limited analysis depth. To teach the analyser that
the return value is safe to dereference, I applied tor_assert to the
return value."

Patch from teor.  Part of 13157.

11 years agofix typo in comment
Roger Dingledine [Sat, 13 Sep 2014 21:10:04 +0000 (17:10 -0400)] 
fix typo in comment

11 years agoMention "make check" in doc/HACKING
Nick Mathewson [Fri, 12 Sep 2014 20:14:49 +0000 (16:14 -0400)] 
Mention "make check" in doc/HACKING

11 years agoGive an example how to run the unit tests
Sebastian Hahn [Fri, 12 Sep 2014 20:08:27 +0000 (22:08 +0200)] 
Give an example how to run the unit tests

11 years agoMerge remote-tracking branch 'origin/maint-0.2.5'
Nick Mathewson [Fri, 12 Sep 2014 01:41:56 +0000 (21:41 -0400)] 
Merge remote-tracking branch 'origin/maint-0.2.5'

(Do an "ours" merge to avoid taking version number changes)

11 years agoBump maint-0.2.5 to 0.2.5.7-rc-dev
Nick Mathewson [Fri, 12 Sep 2014 01:38:32 +0000 (21:38 -0400)] 
Bump maint-0.2.5 to 0.2.5.7-rc-dev

11 years agoforward-port changelog from 0.2.5.7-rc
Nick Mathewson [Fri, 12 Sep 2014 01:25:03 +0000 (21:25 -0400)] 
forward-port changelog from 0.2.5.7-rc

11 years agoOne more whitespace fix
Nick Mathewson [Thu, 11 Sep 2014 18:40:19 +0000 (14:40 -0400)] 
One more whitespace fix

11 years agoWhitespace cleanups in test_util
Nick Mathewson [Thu, 11 Sep 2014 18:37:12 +0000 (14:37 -0400)] 
Whitespace cleanups in test_util

11 years agoWhitespace cleanups in transports/test_pt
Nick Mathewson [Thu, 11 Sep 2014 18:36:51 +0000 (14:36 -0400)] 
Whitespace cleanups in transports/test_pt

11 years agoUpdate HACKING instructions to mention format_changelog script
Nick Mathewson [Thu, 11 Sep 2014 15:34:57 +0000 (11:34 -0400)] 
Update HACKING instructions to mention format_changelog script

11 years agoUse tor_malloc_zero() in pt tests
Nick Mathewson [Thu, 11 Sep 2014 13:17:13 +0000 (09:17 -0400)] 
Use tor_malloc_zero() in pt tests

Fixes for PT tests merged with 8402; patch from Yawning.

11 years agoMerge remote-tracking branch 'origin/maint-0.2.5'
Nick Mathewson [Thu, 11 Sep 2014 12:59:24 +0000 (08:59 -0400)] 
Merge remote-tracking branch 'origin/maint-0.2.5'

11 years agoMerge remote-tracking branch 'public/bug13104_025'
Nick Mathewson [Thu, 11 Sep 2014 12:30:41 +0000 (08:30 -0400)] 
Merge remote-tracking branch 'public/bug13104_025'

11 years agoFix "comparison is always false" warnings in new test_util_di_ops
Nick Mathewson [Thu, 11 Sep 2014 12:28:46 +0000 (08:28 -0400)] 
Fix "comparison is always false" warnings in new test_util_di_ops

Having a constant zero means that unsigned < 0 is always false.

11 years agoReduce log severity for unused ClientTransportPlugin lines
Roger Dingledine [Thu, 11 Sep 2014 12:02:37 +0000 (08:02 -0400)] 
Reduce log severity for unused ClientTransportPlugin lines

Tor Browser includes several ClientTransportPlugin lines in its
torrc-defaults file, leading every Tor Browser user who looks at her
logs to see these notices and wonder if they're dangerous.

Resolves bug 13124; bugfix on 0.2.5.3-alpha.

11 years agoMerge remote-tracking branch 'public/bug13104_025'
Nick Mathewson [Thu, 11 Sep 2014 04:11:26 +0000 (00:11 -0400)] 
Merge remote-tracking branch 'public/bug13104_025'

11 years agoC90 compliance for #13104 fixes
Nick Mathewson [Thu, 11 Sep 2014 04:10:53 +0000 (00:10 -0400)] 
C90 compliance for #13104 fixes

11 years agoAdd a changes file for bug 13104
Nick Mathewson [Thu, 11 Sep 2014 04:05:56 +0000 (00:05 -0400)] 
Add a changes file for bug 13104

11 years agoAvoid an overflow on negation in format_helper_exit_status
Nick Mathewson [Thu, 11 Sep 2014 04:00:13 +0000 (00:00 -0400)] 
Avoid an overflow on negation in format_helper_exit_status

Part of 13104; patch from teor.

11 years agoAvoid divide by zero and NaNs in scale_array_elements_to_u64
Nick Mathewson [Thu, 11 Sep 2014 03:59:21 +0000 (23:59 -0400)] 
Avoid divide by zero and NaNs in scale_array_elements_to_u64

Patch from teor; part of 13104

11 years agoExtra tests for tor_memeq and memcmp
Nick Mathewson [Thu, 11 Sep 2014 03:58:02 +0000 (23:58 -0400)] 
Extra tests for tor_memeq and memcmp

(Patch from teor; part of 13104)

11 years agoAvoid overflows and underflows in sscanf and friends
Nick Mathewson [Thu, 11 Sep 2014 03:57:31 +0000 (23:57 -0400)] 
Avoid overflows and underflows in sscanf and friends

(Patch from teor on 13104)

11 years agoMerge remote-tracking branch 'origin/maint-0.2.5'
Nick Mathewson [Thu, 11 Sep 2014 03:48:59 +0000 (23:48 -0400)] 
Merge remote-tracking branch 'origin/maint-0.2.5'

11 years agoIn routerlist_assert_ok(), check r2 before taking &(r2->cache_info)
Nick Mathewson [Thu, 11 Sep 2014 03:46:20 +0000 (23:46 -0400)] 
In routerlist_assert_ok(), check r2 before taking &(r2->cache_info)

Technically, we're not allowed to take the address of a member can't
exist relative to the null pointer.  That makes me wonder how any sane
compliant system implements the offsetof macro, but let's let sleeping
balrogs lie.

Fixes 13096; patch on 0.1.1.9-alpha; patch from "teor", who was using
clang -fsanitize=undefined-trap -fsanitize-undefined-trap-on-error -ftrapv

11 years agoMerge remote-tracking branch 'yawning/bug_8402'
Nick Mathewson [Thu, 11 Sep 2014 03:41:55 +0000 (23:41 -0400)] 
Merge remote-tracking branch 'yawning/bug_8402'

11 years agoMerge remote-tracking branch 'public/torrc_minimal'
Nick Mathewson [Thu, 11 Sep 2014 03:36:27 +0000 (23:36 -0400)] 
Merge remote-tracking branch 'public/torrc_minimal'

11 years agoMerge remote-tracking branch 'public/bug12908_025' into maint-0.2.5
Nick Mathewson [Thu, 11 Sep 2014 02:12:47 +0000 (22:12 -0400)] 
Merge remote-tracking branch 'public/bug12908_025' into maint-0.2.5

11 years agoMark StrictE{ntry,xit}Nodes as obsolete.
Nick Mathewson [Mon, 18 Aug 2014 17:03:21 +0000 (13:03 -0400)] 
Mark StrictE{ntry,xit}Nodes as obsolete.

11 years agoFix issues brought up in nickm's review.
Yawning Angel [Tue, 9 Sep 2014 18:21:19 +0000 (18:21 +0000)] 
Fix issues brought up in nickm's review.

 * Update pt_get_proxy_uri() documentation.
 * proxy_supported is now unsigned.
 * Added a changes file.

11 years agoAdd unittests for finding the third quartile of a set.
George Kadianakis [Thu, 24 Jul 2014 11:31:49 +0000 (14:31 +0300)] 
Add unittests for finding the third quartile of a set.

11 years agoMerge remote-tracking branch 'asn/bug13064'
Nick Mathewson [Tue, 9 Sep 2014 16:26:16 +0000 (12:26 -0400)] 
Merge remote-tracking branch 'asn/bug13064'

11 years agoRemove now-pointless SIZE_MAX stanza from OpenBSD_malloc_linux
Nick Mathewson [Tue, 9 Sep 2014 16:09:18 +0000 (12:09 -0400)] 
Remove now-pointless SIZE_MAX stanza from OpenBSD_malloc_linux

11 years agoUse S?SIZE_MAX, not S?SIZE_T_MAX
Nick Mathewson [Tue, 9 Sep 2014 16:08:03 +0000 (12:08 -0400)] 
Use S?SIZE_MAX, not S?SIZE_T_MAX

This fixes bug 13102 (not on any released Tor) where using the
standard SSIZE_MAX name broke mingw64, and we didn't realize.

I did this with
   perl -i -pe 's/SIZE_T_MAX/SIZE_MAX/' src/*/*.[ch] src/*/*/*.[ch]

11 years agoRemove client-side bad directory logic
Sebastian Hahn [Thu, 4 Sep 2014 23:49:47 +0000 (01:49 +0200)] 
Remove client-side bad directory logic

Implements the second half of #13060.

11 years agoRemove dirauth support for the BadDirectory flag
Sebastian Hahn [Thu, 4 Sep 2014 23:37:25 +0000 (01:37 +0200)] 
Remove dirauth support for the BadDirectory flag

Implements the first half of #13060. The second half will be to remove
client support, too.

11 years agoMerge branch 'bug12899_squashed'
Nick Mathewson [Tue, 9 Sep 2014 15:51:18 +0000 (11:51 -0400)] 
Merge branch 'bug12899_squashed'

11 years agoRemove support for naming directory authorities
Sebastian Hahn [Thu, 4 Sep 2014 21:16:51 +0000 (23:16 +0200)] 
Remove support for naming directory authorities

This implements the meat of #12899. This commit should simply remove the
parts of Tor dirauths used to check whether a relay was supposed to be
named or not, it doesn't yet convert to a new mechanism for
reject/invalid/baddir/badexiting relays.

11 years agoMerge remote-tracking branch 'origin/maint-0.2.5'
Nick Mathewson [Tue, 9 Sep 2014 15:05:28 +0000 (11:05 -0400)] 
Merge remote-tracking branch 'origin/maint-0.2.5'

11 years agoMerge remote-tracking branch 'andrea/bug12160_025' into maint-0.2.5
Nick Mathewson [Tue, 9 Sep 2014 15:04:54 +0000 (11:04 -0400)] 
Merge remote-tracking branch 'andrea/bug12160_025' into maint-0.2.5

11 years agoMerge remote-tracking branch 'origin/maint-0.2.5'
Nick Mathewson [Tue, 9 Sep 2014 14:57:09 +0000 (10:57 -0400)] 
Merge remote-tracking branch 'origin/maint-0.2.5'

11 years agoMerge remote-tracking branch 'public/bug12700_024' into maint-0.2.5
Nick Mathewson [Tue, 9 Sep 2014 14:51:39 +0000 (10:51 -0400)] 
Merge remote-tracking branch 'public/bug12700_024' into maint-0.2.5

11 years agoUpdated building-tor-msvc.txt
Nick Mathewson [Tue, 9 Sep 2014 14:33:45 +0000 (10:33 -0400)] 
Updated building-tor-msvc.txt

11 years agoAdd instructions for building Tor with MSVC.
Nick Mathewson [Tue, 9 Sep 2014 14:30:57 +0000 (10:30 -0400)] 
Add instructions for building Tor with MSVC.

Written by "NewEraCracker" on ticket 13081; I've added a note that
this is not our preferred or supported build method.

11 years agoMerge remote-tracking branch 'origin/maint-0.2.5'
Nick Mathewson [Tue, 9 Sep 2014 14:27:41 +0000 (10:27 -0400)] 
Merge remote-tracking branch 'origin/maint-0.2.5'

11 years agoClean up the MVSC nmake files so they work again.
Nick Mathewson [Tue, 9 Sep 2014 14:27:05 +0000 (10:27 -0400)] 
Clean up the MVSC nmake files so they work again.

Fixes bug 13081; bugfix on 0.2.5.1-alpha. Patch from "NewEraCracker."

11 years agoMerge remote-tracking branch 'origin/maint-0.2.5'
Nick Mathewson [Tue, 9 Sep 2014 14:22:42 +0000 (10:22 -0400)] 
Merge remote-tracking branch 'origin/maint-0.2.5'

11 years agoAdd more escaped() calls in directory.c
Nick Mathewson [Tue, 9 Sep 2014 14:22:01 +0000 (10:22 -0400)] 
Add more escaped() calls in directory.c

Patch from teor to fix 13071.

11 years agoMerge remote-tracking branch 'origin/maint-0.2.5'
Nick Mathewson [Mon, 8 Sep 2014 19:16:45 +0000 (15:16 -0400)] 
Merge remote-tracking branch 'origin/maint-0.2.5'

11 years agoExpand the event_mask field in controller conns to 64 bits
Nick Mathewson [Mon, 8 Sep 2014 19:15:05 +0000 (15:15 -0400)] 
Expand the event_mask field in controller conns to 64 bits

Back in 078d6bcd, we added an event number 0x20, but we didn't make
the event_mask field big enough to compensate.

Patch by "teor". Fixes 13085; bugfix on 0.2.5.1-alpha.

11 years agoMerge remote-tracking branch 'origin/maint-0.2.5'
Nick Mathewson [Mon, 8 Sep 2014 19:08:51 +0000 (15:08 -0400)] 
Merge remote-tracking branch 'origin/maint-0.2.5'

11 years agoAdd cscope generated files to .gitignore.
Nick Mathewson [Mon, 8 Sep 2014 19:07:54 +0000 (15:07 -0400)] 
Add cscope generated files to .gitignore.

Closes #13092; patch from dgoulet.

11 years agoEvaluate TestingDirAuthVoteGuard only after filling all rs elements.
George Kadianakis [Sat, 6 Sep 2014 11:37:41 +0000 (14:37 +0300)] 
Evaluate TestingDirAuthVoteGuard only after filling all rs elements.

11 years agoCorrectly update channel local mark when address of incoming connection changes after...
Andrea Shepard [Fri, 5 Sep 2014 18:08:46 +0000 (11:08 -0700)] 
Correctly update channel local mark when address of incoming connection changes after handshake; fixes bug #12160

11 years agoFix add_fingerprint_to_dir() doc and signature
Sebastian Hahn [Thu, 4 Sep 2014 20:20:58 +0000 (22:20 +0200)] 
Fix add_fingerprint_to_dir() doc and signature

This function never returns non-null, but its usage doesn't reflect
that. Let's make it explicit. This will be mostly overridden by later
commits, so no changes file here.

11 years agoRemove the AuthDirRejectUnlisted config option
Sebastian Hahn [Thu, 4 Sep 2014 04:25:38 +0000 (06:25 +0200)] 
Remove the AuthDirRejectUnlisted config option

This is in preparation for a big patch series removing the entire Naming
system from Tor. In its wake, the approved-routers file is being
deprecated, and a replacement option to allow only pre-approved routers
is not being implemented.

11 years agoMerge remote-tracking branch 'intrigeri/bug12939-systemd-no-new-privileges'
Nick Mathewson [Wed, 3 Sep 2014 17:29:43 +0000 (13:29 -0400)] 
Merge remote-tracking branch 'intrigeri/bug12939-systemd-no-new-privileges'

Conflicts:
contrib/dist/tor.service.in

11 years agoMerge remote-tracking branch 'intrigeri/bug12751-systemd-filesystem-sandbox'
Nick Mathewson [Wed, 3 Sep 2014 17:28:46 +0000 (13:28 -0400)] 
Merge remote-tracking branch 'intrigeri/bug12751-systemd-filesystem-sandbox'

11 years agoFix a couple of small memory leaks on failure cases.
Nick Mathewson [Wed, 3 Sep 2014 14:59:39 +0000 (10:59 -0400)] 
Fix a couple of small memory leaks on failure cases.

[CID 12347021234703]

11 years agoFix some 'dereference-before-null-check' warnings in test_circuitlist.c
Nick Mathewson [Wed, 3 Sep 2014 14:58:11 +0000 (10:58 -0400)] 
Fix some 'dereference-before-null-check' warnings in test_circuitlist.c

Found by Coverity Scan.

[CID 123470412347051234706]

11 years agoFix the leaks that valgrind found in the new routerset tests.
Nick Mathewson [Wed, 3 Sep 2014 13:51:14 +0000 (09:51 -0400)] 
Fix the leaks that valgrind found in the new routerset tests.

(We have a tests-shouldn't-leak policy so that we won't accidentally
ignore true-positives.)

11 years agoUse 'Bytes', not 'B', in torrc.sample.
Nick Mathewson [Tue, 2 Sep 2014 23:18:21 +0000 (19:18 -0400)] 
Use 'Bytes', not 'B', in torrc.sample.

Also put this change into torrc.minimal.in-staging

Closes ticket 10343

11 years agoFix: typo in torrc.sample.in
Magnus Nord [Tue, 2 Sep 2014 23:16:16 +0000 (19:16 -0400)] 
Fix: typo in torrc.sample.in

11 years agoDivide torrc.sample into torrc.sample and torrc.minimal
Nick Mathewson [Tue, 2 Sep 2014 23:10:42 +0000 (19:10 -0400)] 
Divide torrc.sample into torrc.sample and torrc.minimal

torrc.minimal is now the one that should change as infrequently as
possible.  To schedule an change to go into it eventually, make your
change to torrc.minimal.in-sample.

torrc.sample is now the volatile one: we can change it to our hearts'
content.

Closes ticket #11144

11 years agoMerge remote-tracking branch 'origin/maint-0.2.5'
Nick Mathewson [Tue, 2 Sep 2014 23:00:00 +0000 (19:00 -0400)] 
Merge remote-tracking branch 'origin/maint-0.2.5'

11 years agoDocumenting reject6 and accept6 ExitPolicy entries in manpage.
rl1987 [Sun, 31 Aug 2014 11:09:06 +0000 (14:09 +0300)] 
Documenting reject6 and accept6 ExitPolicy entries in manpage.

11 years agoDon't list relays w/ bw estimate of 0 in the consensus
Sebastian Hahn [Sat, 30 Aug 2014 07:00:40 +0000 (09:00 +0200)] 
Don't list relays w/ bw estimate of 0 in the consensus

This implements a feature from bug 13000. Instead of starting a bwauth
run with this wrong idea about their bw, relays should do the self-test
and then get measured.

11 years agoDon't delay uploading a new desc if bw estimate was 0
Sebastian Hahn [Sat, 30 Aug 2014 06:36:20 +0000 (08:36 +0200)] 
Don't delay uploading a new desc if bw estimate was 0

When a tor relay starts up and has no historical information about its
bandwidth capability, it uploads a descriptor with a bw estimate of 0.
It then starts its bw selftest, but has to wait 20 minutes to upload the
next descriptor due to the MAX_BANDWIDTH_CHANGE_FREQ delay. This change
should mean that on average, relays start seeing meaningful traffic a
little quicker, since they will have a higher chance to appear in the
consensus with a nonzero bw.

Patch by Roger, changes file and comment by Sebastian.

11 years agoFix more (void*)11 warnings in the tests
Nick Mathewson [Tue, 2 Sep 2014 19:40:47 +0000 (15:40 -0400)] 
Fix more (void*)11 warnings in the tests

11 years agoMake iter for DECLARE_TYPED_DIGESTMAP_FNS be a pointer.
Nick Mathewson [Tue, 2 Sep 2014 19:40:04 +0000 (15:40 -0400)] 
Make iter for DECLARE_TYPED_DIGESTMAP_FNS be a pointer.

This fixes a clangalyzer warning, and makes our C slightly better C.

11 years agoUse real pointers in unit tests, not (void*)101 etc
Nick Mathewson [Tue, 2 Sep 2014 17:56:54 +0000 (13:56 -0400)] 
Use real pointers in unit tests, not (void*)101 etc

The clangalyzer hates (void*)101 etc

11 years agoDon't include a backtrace test for dereferencing 0 under analyzers
Nick Mathewson [Tue, 2 Sep 2014 17:56:31 +0000 (13:56 -0400)] 
Don't include a backtrace test for dereferencing 0 under analyzers

They hate this.

11 years agoAdd more assertions to esc_for_log to please the clangalyzer.
Nick Mathewson [Tue, 2 Sep 2014 17:29:45 +0000 (13:29 -0400)] 
Add more assertions to esc_for_log to please the clangalyzer.

11 years agoAdd an assertion to read_file_to_str_until_eof
Nick Mathewson [Tue, 2 Sep 2014 17:29:11 +0000 (13:29 -0400)] 
Add an assertion to read_file_to_str_until_eof

The clangalyzer doesn't believe our math here.  I'm pretty sure our
math is right.  Also, add some unit tests.

11 years agoExplicitly initialize addresses in tor_ersatz_socketpair
Nick Mathewson [Tue, 2 Sep 2014 16:58:32 +0000 (12:58 -0400)] 
Explicitly initialize addresses in tor_ersatz_socketpair

This should stop a false positive from the clangalyzer.

11 years agoApply the MALLOC_ZERO_WORKS fixup to tor_realloc as well.
Nick Mathewson [Tue, 2 Sep 2014 16:53:11 +0000 (12:53 -0400)] 
Apply the MALLOC_ZERO_WORKS fixup to tor_realloc as well.

Also, make MALLOC_ZERO_WORKS never get applied when clang analyzer is
running.  This should make the clangalyzer a little happier.

11 years agoAnother clang analyzer complaint wrt HT_GENERATE
Nick Mathewson [Tue, 2 Sep 2014 16:48:34 +0000 (12:48 -0400)] 
Another clang analyzer complaint wrt HT_GENERATE

We're calling mallocfn() and reallocfn() in the HT_GENERATE macro
with the result of a product.  But that makes any sane analyzer
worry about overflow.

This patch keeps HT_GENERATE having its old semantics, since we
aren't the only project using ht.h.  Instead, define a HT_GENERATE2
that takes a reallocarrayfn.

11 years agoMerge remote-tracking branch 'origin/maint-0.2.5'
Nick Mathewson [Tue, 2 Sep 2014 15:58:08 +0000 (11:58 -0400)] 
Merge remote-tracking branch 'origin/maint-0.2.5'

11 years agoFix a number of clang analyzer false-positives
Nick Mathewson [Tue, 2 Sep 2014 15:55:53 +0000 (11:55 -0400)] 
Fix a number of clang analyzer false-positives

Most of these are in somewhat non-obvious code where it is probably
a good idea to initialize variables and add extra assertions anyway.

Closes 13036.  Patches from "teor".

11 years agoMerge remote-tracking branch 'origin/maint-0.2.5'
Nick Mathewson [Mon, 1 Sep 2014 20:23:34 +0000 (16:23 -0400)] 
Merge remote-tracking branch 'origin/maint-0.2.5'

11 years agoAdding changes file.
rl1987 [Sun, 31 Aug 2014 11:35:30 +0000 (14:35 +0300)] 
Adding changes file.

11 years agoAvoid unsigned/sign compare warning from last patch.
Nick Mathewson [Mon, 1 Sep 2014 19:42:17 +0000 (15:42 -0400)] 
Avoid unsigned/sign compare warning from last patch.

11 years agoBounds check while looping over a fixed size table or array
Philip Van Hoof [Fri, 22 Aug 2014 22:35:26 +0000 (00:35 +0200)] 
Bounds check while looping over a fixed size table or array

(Edited to use existing ARRAY_LENGTH macro --nickm)

11 years agoMerge remote-tracking branch 'origin/maint-0.2.5'
Nick Mathewson [Fri, 29 Aug 2014 20:45:56 +0000 (16:45 -0400)] 
Merge remote-tracking branch 'origin/maint-0.2.5'

11 years agoMerge remote-tracking branch 'arma/bug12996b' into maint-0.2.5
Nick Mathewson [Fri, 29 Aug 2014 20:44:50 +0000 (16:44 -0400)] 
Merge remote-tracking branch 'arma/bug12996b' into maint-0.2.5

11 years agoDowngrade "Unexpected onionskin length after decryption" warning
Roger Dingledine [Fri, 29 Aug 2014 20:38:54 +0000 (16:38 -0400)] 
Downgrade "Unexpected onionskin length after decryption" warning

It's now a protocol-warn, since there's nothing relay operators can
do about a client that sends them a malformed create cell.

Resolves bug 12996; bugfix on 0.0.6rc1.

11 years agoMerge remote-tracking branch 'origin/maint-0.2.5'
Nick Mathewson [Fri, 29 Aug 2014 20:13:04 +0000 (16:13 -0400)] 
Merge remote-tracking branch 'origin/maint-0.2.5'

11 years agoImprove "Tried to establish rendezvous on non-OR or non-edge circuit"
Nick Mathewson [Fri, 29 Aug 2014 20:05:58 +0000 (16:05 -0400)] 
Improve "Tried to establish rendezvous on non-OR or non-edge circuit"

Instead of putting it all in one warning message, log what exactly
was wrong with the circuit.

Resolves ticket 12997.

11 years agoFix some coverity warnings in new routerset tests
Nick Mathewson [Fri, 29 Aug 2014 19:09:27 +0000 (15:09 -0400)] 
Fix some coverity warnings in new routerset tests

11 years agoIntroduce full coverage tests for module routerset.c.
dana koch [Wed, 27 Aug 2014 10:41:25 +0000 (20:41 +1000)] 
Introduce full coverage tests for module routerset.c.

This is using the paradigm introduced for test_status.c.

11 years agoMerge remote-tracking branch 'origin/maint-0.2.5'
Nick Mathewson [Thu, 28 Aug 2014 12:36:00 +0000 (08:36 -0400)] 
Merge remote-tracking branch 'origin/maint-0.2.5'

11 years agoResume expanding abbreviations for command-line options
Roger Dingledine [Wed, 27 Aug 2014 10:10:35 +0000 (06:10 -0400)] 
Resume expanding abbreviations for command-line options

The fix for bug 4647 accidentally removed our hack from bug 586 that
rewrote HashedControlPassword to __HashedControlSessionPassword when
it appears on the commandline (which allowed the user to set her own
HashedControlPassword in the torrc file while the controller generates
a fresh session password for each run).

Fixes bug 12948; bugfix on 0.2.5.1-alpha.

11 years agoInitialize crash handler in unit tests
Nick Mathewson [Wed, 27 Aug 2014 22:15:02 +0000 (18:15 -0400)] 
Initialize crash handler in unit tests

This way, we don't get locking failures when we hit an assertion in
the unit tests.  Also, we might find out about unit test bugs from
folks who can't do gdb.

11 years agoAdd changes file for #12751.
intrigeri [Wed, 27 Aug 2014 03:13:32 +0000 (03:13 +0000)] 
Add changes file for #12751.

11 years agoAdd changes file for #12939.
intrigeri [Wed, 27 Aug 2014 03:19:40 +0000 (03:19 +0000)] 
Add changes file for #12939.

11 years agosystemd unit file: ensures that the process and all its children can never gain
intrigeri [Wed, 27 Aug 2014 03:18:26 +0000 (03:18 +0000)] 
systemd unit file: ensures that the process and all its children can never gain
new privileges (#12939).