summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2015-12-14Merge branch 'maint-0.2.7'Nick Mathewson
2015-12-14Use TESTS_ENVIRONMENT for older Automake versionscypherpunks
The AM_TESTS_ENVIRONMENT variable is available since Automake v1.12 but some distributions have older Automake versions so we use TESTS_ENVIRONMENT.
2015-12-14Merge branch 'maint-0.2.7'Nick Mathewson
2015-12-14Add changes file for 17818cypherpunks
2015-12-14Use variables instead of substitutionscypherpunks
Using variables removes the ambiguity about when to use variables and when to use substitutions. Variables always work. Substitutions only work when Autoconf knows about them which is not always the case. The variables are also placed between quotes to ensures spaces in the variables are handled properly.
2015-12-14Only setup environment variables for testscypherpunks
Using the AM_TESTS_ENVIRONMENT variable ensures the environment variables are only set during test execution and not during the compilation phase.
2015-12-11Fix a pair of dead assignmentsNick Mathewson
2015-12-10Whitespace fixNick Mathewson
2015-12-10Fix wide line; log why chmod failed.Nick Mathewson
2015-12-10Simplify cpd_opts usage.Nick Mathewson
2015-12-10Defer creation of Unix socket until after setuidJamie Nguyen
2015-12-10Introduce DataDirectoryGroupReadable booleanJamie Nguyen
2015-12-10Permit filesystem group to be rootJamie Nguyen
2015-12-10Refactor clock skew warning code to avoid duplicationArlo Breault
2015-12-10Merge branch 'maint-0.2.7'Nick Mathewson
2015-12-10bump to 0.2.7.6-devNick Mathewson
2015-12-10forward-port changelog and releasenotesNick Mathewson
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.