aboutsummaryrefslogtreecommitdiff
path: root/src/test/test_circuitbuild.c
AgeCommit message (Collapse)Author
2020-03-06Skip test_new_route_len_unhandled_exit() when ALL_BUGS_ARE_FATALrl1987
2020-01-08It's 2020. Update the copyright dates with "make update-copyright"Nick Mathewson
2019-08-19Fix a memory-leak warning in test_circuitbuid.cNick Mathewson
Coverity wants us to free everything that we are potentially allocating, even stuff where allocating it would be a bug. Adding a smartlist_free() here will fix the warning. Fixes bug 31452; bugfix on 16a0b7ed6779bf72a8a471c, which is not in any released Tor. This is CID 1447292.
2019-06-19guard: Ignore marked for close circuit when changing state to openDavid Goulet
When we consider all circuits in "waiting for guard" state to be promoted to an "open" state, we were considering all circuits, even the one marked for close. This ultiamtely triggers a "circuit_has_opened()" called on the circuit that is marked for close which then leads to possible undesirable behaviors within a subsystem. For instance, the HS subsystem would be unable to find the authentication key of the introduction point circuit leading to a BUG() warning and a duplicate mark for close on the circuit. This commit also adds a unit test to make sure we never select marked for close circuits when upgrading its guard state from waiting for guard to open. Fixes #30871 Signed-off-by: David Goulet <dgoulet@torproject.org>
2019-04-26Make nodelist_get_list() return a const pointer.Nick Mathewson
2019-01-16Bump copyright date to 2019Nick Mathewson
2018-11-05In count_acceptable_nodes(), count direct and indirect nodes with ↵Neel Chauhan
node_has_preferred_descriptor()
2018-07-05Fix every include path changed in the previous commit (automated)Nick Mathewson
I am very glad to have written this script.
2018-07-01Extract more constants from or.hNick Mathewson
2018-06-20Run rectify_include_paths.pyNick Mathewson
2018-06-20Update copyrights to 2018.Nick Mathewson
2018-06-15Move extend_info_t into its own header.Nick Mathewson
2017-04-03Capture expected log in test_circuitbuild.cTaylor Yu
Capture the warning for the unhandled circuit purpose test case, both to clean up the test log and to confirm that it gets logged.
2017-04-03Test unhandled purpose in route_len_for_purpose()Taylor Yu
Check that route_len_for_purpose() (helper for new_route_len()) correctly fails a non-fatal bug assertion if it encounters an unhandled circuit purpose when it is called with exit node info.
2017-04-03Add tests for new_route_len()Taylor Yu