Age | Commit message (Collapse) | Author | |
---|---|---|---|
2019-08-28 | test_confparse: verify that clearing a routerset sets it to NULL. | Nick Mathewson | |
2019-08-27 | Merge branch 'tor-github/pr/1267' | George Kadianakis | |
2019-08-27 | Merge branch 'tor-github/pr/1258' | George Kadianakis | |
2019-08-27 | Merge branch 'tor-github/pr/1234' | George Kadianakis | |
2019-08-26 | test_address: parenthesize macro arguments. | Nick Mathewson | |
It's good style to always add parentheses when using macro arguments, in case somebody someday provides an argument that contains an operator you don't expect, or causes the expression to parse differently. | |||
2019-08-26 | In tests, make sure that "ri" is freed on all paths. | Nick Mathewson | |
In Tor's tests, the tt_*() macros can call "goto done" on failure. When that happens, we need to make sure that all of our allocated memory still gets freed, or else Coverity will complain. | |||
2019-08-26 | Add test for dirserv_router_has_valid_address() | Neel Chauhan | |
2019-08-26 | Merge branch 'tor-github/pr/1239' | David Goulet | |
2019-08-23 | Remove the unused circuit_type field from hs_ident_circuit_t and ↵ | Neel Chauhan | |
hs_ident_circuit_new() | |||
2019-08-22 | Merge branch 'ticket30935' into ticket30935_merged | Nick Mathewson | |
2019-08-23 | test/nodelist: Add unit tests for describe.c | teor | |
Part of 21003. | |||
2019-08-20 | Merge branch 'ticket30914' into ticket30914_merged | Nick Mathewson | |
2019-08-19 | Fix a memory-leak warning in test_circuitbuid.c | Nick 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-08-19 | Merge remote-tracking branch 'tor-github/pr/1235' | Nick Mathewson | |
2019-08-19 | Merge branch 'tor-github/pr/1122' | George Kadianakis | |
2019-08-19 | Merge branch 'tor-github/pr/1214' | George Kadianakis | |
2019-08-19 | Merge branch 'tor-github/pr/1154' | George Kadianakis | |
2019-08-19 | Merge remote-tracking branch 'mike/bug31356+logs-rebased2' into bug31356_final | George Kadianakis | |
2019-08-19 | Merge branch 'tor-github/pr/1213' | David Goulet | |
2019-08-19 | test/nodelist: Fix a typo | teor | |
2019-08-12 | Bug 31356: Propogate protover padding support to circpad | Mike Perry | |
2019-08-07 | Merge remote-tracking branch 'tor-github/pr/1208' | Nick Mathewson | |
2019-08-06 | test_token_bucket: negate after casting to signed type. | Nick Mathewson | |
Previously we tried multiplying by -1 before casting to int32_t, which would cause us to cast the -1 to an unsigned before we multiplied. This gave us compiler warnings on windows. Fixes bug 31353; bug not in any released Tor. | |||
2019-08-06 | test_util: Do not check for ENETUNREACH unless it exists. | Nick Mathewson | |
Fixes bug 31352; bug not in any released Tor. | |||
2019-08-06 | test: Series of fixes for hs_dos.c unit tests | David Goulet | |
Signed-off-by: David Goulet <dgoulet@torproject.org> | |||
2019-08-06 | hs-v3: Add consensus parameters for DoS defenses | David Goulet | |
Part of #15516 Signed-off-by: David Goulet <dgoulet@torproject.org> | |||
2019-08-06 | test: Add hs_dos.c unit tests | David Goulet | |
Currently test the only available function which is hs_dos_can_send_intro2() within the HS anti-DoS subsystem. Closes #15516 Signed-off-by: David Goulet <dgoulet@torproject.org> | |||
2019-08-06 | hs: Limit the amount of relayed INTRODUCE2 | David Goulet | |
This commit add the hs_dos.{c|h} file that has the purpose of having the anti-DoS code for onion services. At this commit, it only has one which is a function that decides if an INTRODUCE2 can be sent on the given introduction service circuit (S<->IP) using a simple token bucket. The rate per second is 25 and allowed burst to 200. Basic defenses on #15516. Signed-off-by: David Goulet <dgoulet@torproject.org> | |||
2019-08-06 | Merge branch 'tor-github/pr/1195' | George Kadianakis | |
2019-08-05 | Rename handle_relay_command to handle_relay_cell_command . | George Kadianakis | |
As per David's review. | |||
2019-08-05 | Test that regular cells get ignored in padding circuits. | George Kadianakis | |
2019-08-01 | practracker: Add unit tests to test script, and test script to makefile | Nick Mathewson | |
This makes all of the practracker tests get run by make check, and hence by our CI. Closes ticket 31304. | |||
2019-07-25 | Merge branch 'maint-0.4.1' | Nick Mathewson | |
2019-07-25 | Fix more 32-bit errors with domain and tt_int_op | Nick Mathewson | |
2019-07-25 | Merge branch 'maint-0.4.1' | Nick Mathewson | |
2019-07-25 | test: Use a 64-bit comparison for logging domains. | Nick Mathewson | |
2019-07-25 | Merge branch 'maint-0.4.1' | David Goulet | |
2019-07-24 | Make config_var and config_fmt const. | Nick Mathewson | |
Now that we have a reasonable implementation for overriding the default options for TestingTorNetwork, we don't need to modify config_var_t structs any more. And therefore, we can have constant format options, like reasonable people. | |||
2019-07-24 | Fix clang-detected errors related to log_domain_mask_t | Nick Mathewson | |
2019-07-23 | Merge branch 'ticket24963_042_02' | Nick Mathewson | |
2019-07-23 | Add a test for disallowing single-hop introductions. | Nick Mathewson | |
Code from dgoulet. | |||
2019-07-23 | Merge branch 'tor-github/pr/1116' | David Goulet | |
2019-07-08 | Adjust log callback type to use log_domain_mask_t | Nick Mathewson | |
2019-07-03 | hs-v3: Disallow single hop client to post/get a descriptor | David Goulet | |
Closes #24964 Signed-off-by: David Goulet <dgoulet@torproject.org> | |||
2019-07-02 | Merge remote-tracking branch 'tor-github/pr/1120' | Nick Mathewson | |
2019-06-28 | Coverity: fix memory leak on error in test function. | Nick Mathewson | |
The function make_intro_from_plaintext() in test_introduce.c would leak memory if we ever hit a failure from our underlying crypto functions. This kind of failure should be impossible, but it's best to be safe here. Bugfix on 0.2.4.1-alpha. | |||
2019-06-28 | Coverity: fix test issues with always-present 'service' var. | Nick Mathewson | |
Coverity is worried that we check "service" at the end of these test functions, since it doesn't see any way to reach the cleanup code without having first dereferenced the variable. Removing the check would be unwise in this case: instead we add a tt_assert check before using "service" so that coverity thinks that the check is doing something useful. Bugfix on 0.3.2.1-alpha. | |||
2019-06-28 | Fix a few coverity unitinitialzed-value warnings in the unit tests. | Nick Mathewson | |
Coverity can't see that it is not in fact going to read uninitialized memory here, so we initialize these values unconditionally. Bugfix on 0.4.0.1-alpha. | |||
2019-06-26 | Merge branch 'bug30721_squashed' | Nick Mathewson | |
2019-06-26 | test/addr: test that tor_addr_port_lookup() handles IP addresses and ports | teor | |
And that it does something sensible with host and host:port. Also reorder the tests into valid, invalid, and ambiguous. And add some missing cases. Note: tor_addr_port_lookup() handles ip, ip:port, host, and host:port. Tests for 30721. |