summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2015-12-10make stack-protector happyNick Mathewson
2015-12-10Merge branch 'maint-0.2.7'Nick Mathewson
2015-12-10bump maint version to 0.2.7.6Nick Mathewson
2015-12-10Remove already-merged changes files.Nick Mathewson
2015-12-10add a staticNick Mathewson
2015-12-10improve a comment in memwipeNick Mathewson
2015-12-10Merge remote-tracking branch 'public/feature17694_strongest_027'Nick Mathewson
2015-12-10Assert when the TLS contexts fail to initializecypherpunks
2015-12-09Merge remote-tracking branch 'teor/fix-exitpolicy-leak'Nick Mathewson
2015-12-09Mark a couple more arguments as unused.Nick Mathewson
2015-12-09Try to fix windows build more.Nick Mathewson
patch from rubiate on #16651
2015-12-09Assert that memory held by rephist is freedcypherpunks
The internal memory allocation and history object counters of the reputation code can be used to verify the correctness of (part of) the code. Using these counters revealed an issue where the memory allocation counter is not decreased when the bandwidth arrays are freed. A new function ensures the memory allocation counter is decreased when a bandwidth array is freed. This commit also removes an unnecessary cast which was found while working on the code.
2015-12-09Merge branch 'refactor-effective-entry'Nick Mathewson
2015-12-09Tweak policies_log_first_redundant_entry even moreNick Mathewson
* Use smartlist_foreach_begin/end instead of a plain for loop. * constify the pointers.
2015-12-09Tweak policies_log_first_redundant_entry more.Nick Mathewson
* Since the variable is no longer modified, it should be called 'policy' instead of 'dest'. ("Dest" is short for "destination".) * Fixed the space issue that dgoulet found on the ticket. * Fixed the comment a little. (We use the imperative for function documentation.)
2015-12-09Merge remote-tracking branch 'teor/first-hop-no-private'Nick Mathewson
2015-12-09changes file for bug17791Nick Mathewson
2015-12-09Fix formatting typo in manpage.Andrew Kvalheim
2015-12-09Merge branch 'bug17776'Nick Mathewson
2015-12-09Assert that the directory server digest is givencypherpunks
This prevents a possible crash when memory is copied from a pointer to NULL.
2015-12-09Mention the expected length of the digestscypherpunks
Some functions that use digest maps did not mention that the digests are expected to have DIGEST_LEN bytes. This lead to buffer over-reads in the past.
2015-12-09Add changes file for 17776cypherpunks
2015-12-09Remove unnecessary castingcypherpunks
2015-12-09Fix buffer over-reads in the rendcache testscypherpunks
The hidden service descriptor cache (rendcache) tests use digest maps which expect keys to have a length of DIGEST_LEN. Because the tests use key strings with a length lower than DIGEST_LEN, the internal copy operation reads outside the key strings which leads to buffer over-reads. The issue is resolved by using character arrays with a size of DIGEST_LEN. Patch on ade5005853c17b3ae5923c194680442e0f86db4d.
2015-12-09Fix buffer over-reads in the directory testscypherpunks
The tests pass empty digest strings to the dir_server_new function which copies it into a directory server structure. The copy operation expects the digest strings to be DIGEST_LEN characters long. Because the length of the empty digest strings are lower than DIGEST_LEN, the copy operation reads outside the digest strings which leads to buffer over-reads. The issue is resolved by using character arrays with a size of DIGEST_LEN. Patch on 4ff08bb5811ddfe554e597d129ec48a774364480.
2015-12-09Small cleanups and comment fixes to rng functions.Nick Mathewson
2015-12-09Try to fix windows buildNick Mathewson
patch from rubiate on #16651
2015-12-09try a little harder with getrandom types to avoid warningsNick Mathewson
2015-12-08mark a variable unused.Nick Mathewson
2015-12-08Fix comment switcheroo. Spotted by skruffyNick Mathewson
2015-12-08Fix spaces.Nick Mathewson
2015-12-08Merge branch 'feature13696_squashed'Nick Mathewson
2015-12-08Add support for getrandom() and getentropy() when availableYawning Angel
Implements feature #13696.
2015-12-08Always hash crypto_strongest_rand() along with some prngNick Mathewson
(before using it for anything besides feeding the PRNG) Part of #17694
2015-12-08Merge branch 'maint-0.2.7'Nick Mathewson
2015-12-08Merge branch 'maint-0.2.6' into maint-0.2.7Nick Mathewson
2015-12-08Merge branch 'maint-0.2.5' into maint-0.2.6Nick Mathewson
2015-12-08Merge branch 'maint-0.2.4' into maint-0.2.5Nick Mathewson
2015-12-08Merge branch 'bug17772_024' into maint-0.2.4Nick Mathewson
2015-12-08Ensure node is a guard candidate when picking a directory guardArlo Breault
2015-12-08Merge branch 'maint-0.2.7'Nick Mathewson
2015-12-08Merge branch 'maint-0.2.6' into maint-0.2.7Nick Mathewson
2015-12-08Merge branch 'maint-0.2.5' into maint-0.2.6Nick Mathewson
2015-12-08Merge branch 'maint-0.2.4' into maint-0.2.5Nick Mathewson
2015-12-08Fix a compilation warning introduced by clang 3.6Nick Mathewson
There was a dead check when we made sure that an array member of a struct was non-NULL. Tor has been doing this check since at least 0.2.3, maybe earlier. Fixes bug 17781.
2015-12-08Fix memory leak by circuit marked for close listcypherpunks
This commit fixes a memory leak introduced by commit 8b4e5b7ee902fb7fa07767410a18433d752c7aef.
2015-12-08Merge branch 'maint-0.2.7'Nick Mathewson
2015-12-08Format IPv6 policies correctly.Nick Mathewson
Previously we'd suppressed the mask-bits field in the output when formatting a policy if it was >=32. But that should be a >=128 if we're talking about IPv6. Since we didn't put these in descriptors, this bug affects only log messages and controller outputs. Fix for bug 16056. The code in question was new in 0.2.0, but the bug was introduced in 0.2.4 when we started supporting IPv6 exits.
2015-12-08Add changes file for 17778cypherpunks
2015-12-08Fix memory leak in ntor testcypherpunks