aboutsummaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
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-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-08Ensure node is a guard candidate when picking a directory guardArlo Breault
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-08Fix memory leak in ntor testcypherpunks
2015-12-07Merge remote-tracking branch 'teor/exitpolicy-multicast'Nick Mathewson
2015-12-07Merge remote-tracking branch 'teor/comments-20151204'Nick Mathewson
2015-12-07Merge branch 'maint-0.2.7'Nick Mathewson
2015-12-07Merge branch 'maint-0.2.6' into maint-0.2.7Nick Mathewson
2015-12-07Merge branch 'maint-0.2.5' into maint-0.2.6Nick Mathewson
2015-12-07Merge branch 'maint-0.2.4' into maint-0.2.5Nick Mathewson
2015-12-07Comment-only change to connection_get_by_type_addr_port_purposeteor (Tim Wilson-Brown)
connection_get_by_type_addr_port_purpose also ignores connections that are marked for close.
2015-12-07Comment-only changes to connection_connectteor (Tim Wilson-Brown)
port is in host order (addr is tor_addr_t, endianness is abstracted). addr and port can be different to conn->addr and conn->port if connecting via a proxy.
2015-12-07Move a comment in router_get_my_descriptor to the correct lineteor (Tim Wilson-Brown)
2015-12-07Update comment: get_connection_array no longer takes "n"teor (Tim Wilson-Brown)
2015-12-07Consistently ignore multicast in internal reject private exit policiesteor (Tim Wilson-Brown)
Consistently ignore multicast addresses when automatically generating reject private exit policies. Closes ticket 17763. Bug fix on 10a6390deb3c9, not in any released version of Tor. Patch by "teor".
2015-12-05Update geoip and geoip6 to the December 1 2015 database.Karsten Loesing
2015-11-30Merge branch 'maint-0.2.7'Nick Mathewson
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-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-25Fix documentation for crypto_rand*Nick Mathewson