summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2015-11-30Merge branch 'maint-0.2.7'Nick Mathewson
2015-11-30Add changes file for 17722cypherpunks
2015-11-30Fix undefined behavior caused by memory overlapcypherpunks
The tor_cert_get_checkable_sig function uses the signing key included in the certificate (if available) when a separate public key is not given. When the signature is valid, the tor_cert_checksig function copies the public key from the checkable structure to the public key field of the certificate signing key. In situations where the separate public key is not given but the certificate includes a signing key, the source and destination pointers in the copy operation are equal and invoke undefined behavior. Undefined behaviour is avoided by ensuring both pointers are different.
2015-12-01Avoid relying on malloc internals in test_rend_cache_purge.teor (Tim Wilson-Brown)
Closes ticket 17724. Bug fix on ade5005853c1 and 5e9f2384cf0f, not in any released version of Tor. Patch by "teor".
2015-11-27More fixes/debugging attempts for 17659Nick Mathewson
2015-11-27Add a stack trace for help debugging one part of 17659Nick Mathewson
2015-11-27Merge branch 'fix-policies-memory-v2-squashed'Nick Mathewson
2015-11-27Fix memory leak in policies testcypherpunks
2015-11-27Fix use-after-free of stack memory in getinfo_helper_policiesteor (Tim Wilson-Brown)
2015-11-27Fix use-after-free of stack memory in policies_parse_exit_policy*teor (Tim Wilson-Brown)
Change the function names & comments to make the copying explicit.
2015-11-27use sockaddr_storage for stack-allocated sockets in ersatz socketpairNick Mathewson
2015-11-27Make SIZEOF_SOCKADDR return socklen_t to avoid bad compares.Nick Mathewson
2015-11-27Use uint16_t, not in_port_t (which does not exist on Windows). See #17638.Nick Mathewson
2015-11-27Check magic number in connection_ap_attach_pendingNick Mathewson
2015-11-26improve log messages to try to track down #17659Nick Mathewson
2015-11-27Unit test the full length of SHA256 and SHA512 digeststeor (Tim Wilson-Brown)
Bugfix on a tor version before the refactoring in git commit cea12251995d (23 Sep 2009). Patch by "teor".
2015-11-26Merge remote-tracking branch 'teor/rand-failure-modes-v2'Nick Mathewson
2015-11-26Fix buffer size in sha512 unit testNick Mathewson
Nobody likes a stack overflow, even in unit tests. Closes 17699; but not in any released tor.
2015-11-26Fix test_tortls.c to no longer test failing crypto_rand.Nick Mathewson
(crypto_rand is no longer allowed to fail.) Closes bug 17686; bug not in any released tor. (No backport, since the tortls tests aren't in 0.2.7)
2015-11-26Correctly free a smartlist in getinfo_helper_policiesteor (Tim Wilson-Brown)
2015-11-26Quote variables in case they contain spacescypherpunks
2015-11-26Add unit tests that check for common RNG failure modesteor (Tim Wilson-Brown)
Check that crypto_rand doesn't return all zeroes, identical values, or incrementing values (OpenSSL's rand_predictable feature).
2015-11-25Merge branch 'bug17686_v2_027'Nick Mathewson
2015-11-25Add a changes file for bug 17686Nick Mathewson
2015-11-25Fix documentation for crypto_rand*Nick Mathewson
2015-11-25Now that crypto_rand() cannot fail, it should return void.Nick Mathewson
2015-11-25Add crypto-initializer functions to those whose return values must be checkedNick Mathewson
2015-11-25Make crypto_seed_rng() and crypto_rand() less scary.Nick Mathewson
These functions must really never fail; so have crypto_rand() assert that it's working okay, and have crypto_seed_rng() demand that callers check its return value. Also have crypto_seed_rng() check RAND_status() before returning.
2015-11-25Merge remote-tracking branch 'teor/check-crypto-errors-v2'Nick Mathewson
2015-11-25fixup! Add controller getinfo exit-policy/reject-privateteor (Tim Wilson-Brown)
Stop ignoring ExitPolicyRejectPrivate in getinfo exit-policy/reject-private. Fix a memory leak. Set ExitPolicyRejectPrivate in the unit tests, and make a mock function declaration static.
2015-11-26Check the return value of HMAC in crypto.c and assert on errorteor (Tim Wilson-Brown)
Fixes bug #17658; bugfix on commit in fdbb9cdf746b (11 Oct 2011) in tor version 0.2.3.5-alpha-dev.
2015-11-25Merge branch 'bug17654_try1'Nick Mathewson
2015-11-25Attempt to make openbsd compilation happier with libevent2 installedNick Mathewson
Fix for bug 16651; patch from "rubiate".
2015-11-25Initialize libevent before periodic eventscypherpunks
The initialization of libevent interferes with other tests so we also fork the circuit_timeout test.
2015-11-25fixup! Block OutboundBindAddressIPv[4|6]_ and configured ports on exit relaysteor (Tim Wilson-Brown)
Fix unit tests for get_interface_address6_list to assume less about the interface addresses on the system. Instead, mock get_interface_address6_list and use the mocked function to provide a range of address combinations.
2015-11-25Merge branch 'maint-0.2.7'Nick Mathewson
2015-11-25Include netinet/in.h (if detected) in check for net/pfvar.hNick Mathewson
Patch from rubiate; fixes bug 17551.
2015-11-25Merge remote-tracking branch 'public/decouple_dir_request_failed'Nick Mathewson
2015-11-25Fix a logic error in connection_tls_continue_handshake().Nick Mathewson
(If we take the branch above this assertion, than we *didn't* have a v1 handshake. So if we don't take the branch, we did. So if we reach this assertion, we must be running as a server, since clients no longer attempt v1 handshakes.) Fix for bug 17654; bugfix on 9d019a7db725dca3dfdbf8d4dbc3b51835e0b49e. Bug not in any released Tor.
2015-11-25Merge remote-tracking branch 'teor/comments-20151123'Nick Mathewson
2015-11-25Merge remote-tracking branch 'atagar/man_page_fixes'Nick Mathewson
2015-11-25Tweak gtank's sha512 patch a littleNick Mathewson
2015-11-25Merge remote-tracking branch 'gtank/feature17663'Nick Mathewson
2015-11-25Merge remote-tracking branch 'teor/feature8961-replaycache-sha256'Nick Mathewson
2015-11-25Merge branch 'maint-0.2.7'Nick Mathewson
2015-11-23Fixes for tor's man pageDamian Johnson
I'm adding Stem test coverage for tor's man page and in doing so ran into quite a few issues. All of them are pretty minor (worst was misnaming a couple config options), but still good things to fix. :P
2015-11-23Drop HidServDirectoryV2 and VoteOnHidServDirectoriesV2Damian Johnson
These options were removed from tor in July. Time to axe them from our man page. :P https://gitweb.torproject.org/tor.git/commit/?id=2f8cf524ba4e565ab613504a4c41fd724d32facc
2015-11-24add changes for feature17663George Tankersley
2015-11-23Split 'slop' man page options to their own linesDamian Johnson
The slop testing options are the only spot where we try to enumerate multiple options on the same line. Changing them to each be on their own line as we do elsewhere.
2015-11-24implement teor's commentsGeorge Tankersley