Age | Commit message (Collapse) | Author | |
---|---|---|---|
2018-09-01 | Test for descriptor does not change when hibernating | juga0 | |
2018-09-01 | Add missing router_tests to test.h | juga0 | |
2018-09-01 | Add test for check_descriptor_bandwidth_changed | juga0 | |
2018-09-01 | Add test log helpers for msgs not containing str | juga0 | |
2018-05-24 | Add a unit test for PEM-encrypted documents. | Nick Mathewson | |
2018-05-09 | Test read bandwidth measurements with empty file | juga0 | |
2018-03-01 | Protover tests: disable some obsoleted tests | Nick Mathewson | |
These were meant to demonstrate old behavior, or old rust behavior. One of them _should_ work in Rust, but won't because of implementation details. We'll fix that up later. | |||
2018-03-01 | Forbid UINT32_MAX as a protocol version | Nick Mathewson | |
The C code and the rust code had different separate integer overflow bugs here. That suggests that we're better off just forbidding this pathological case. Also, add tests for expected behavior on receiving a bad protocol list in a consensus. Fixes another part of 25249. | |||
2018-03-01 | Forbid "-0" as a protocol version. | Nick Mathewson | |
Fixes part of 24249; bugfix on 0.2.9.4-alpha. | |||
2018-03-01 | Add more of Teor's protover tests. | Nick Mathewson | |
These are as Teor wrote them; I've disabled the ones that don't pass yet, with XXXX comments. | |||
2018-03-01 | Add some protover vote round-trip tests from Teor. | Nick Mathewson | |
I've refactored these to be a separate function, to avoid tricky merge conflicts. Some of these are disabled with "XXXX" comments; they should get fixed moving forward. | |||
2018-02-09 | test: DoS test to make sure we exclude known relays | David Goulet | |
Part of #25193 Signed-off-by: David Goulet <dgoulet@torproject.org> | |||
2018-02-08 | Merge branch 'ticket25183_029_01' into ticket24902_029_05 | David Goulet | |
2018-02-08 | test: Add unit tests for addressset.c | David Goulet | |
This also adds one that tests the integration with the nodelist. Signed-off-by: David Goulet <dgoulet@torproject.org> | |||
2018-02-06 | remove a redundant semicolon | Nick Mathewson | |
2018-02-02 | Use tt_u64_op() for uint64_t inputs. | Nick Mathewson | |
2018-02-02 | Merge branch 'ticket25122_029_02' into ticket24902_029_05 | David Goulet | |
2018-02-02 | geoip: Hook the client history cache into the OOM handler | David Goulet | |
If the cache is using 20% of our maximum allowed memory, clean 10% of it. Same behavior as the HS descriptor cache. Closes #25122 Signed-off-by: David Goulet <dgoulet@torproject.org> | |||
2018-01-31 | test: Add unit tests for overflows and underflows in cc_stats_refill_bucket | teor | |
Closes #25094. Signed-off-by: David Goulet <dgoulet@torproject.org> | |||
2018-01-31 | dos: Make sure cc_stats_refill_bucket can't overflow while calculating | teor | |
Debug log the elapsed time in cc_stats_refill_bucket Part of #25094. Signed-off-by: David Goulet <dgoulet@torproject.org> | |||
2018-01-31 | test: Remove a redundant round from test_dos_bucket_refill | teor | |
This round is left over from the tenths of a second code. Part of #25094. | |||
2018-01-30 | test: Add unit tests for the DoS subsystem | George Kadianakis | |
Signed-off-by: David Goulet <dgoulet@torproject.org> | |||
2017-12-21 | Merge branch 'maint-0.2.8' into maint-0.2.9 | Nick Mathewson | |
2017-12-21 | Merge branch 'maint-0.2.5' into maint-0.2.8maint-0.2.8 | Nick Mathewson | |
2017-12-21 | Move free to end of test function so coverity won't complain. | Nick Mathewson | |
2017-12-21 | Move destroy cells into a separate queue type of their own, to save RAM | Nick Mathewson | |
We've been seeing problems with destroy cells queues taking up a huge amount of RAM. We can mitigate this, since while a full packed destroy cell takes 514 bytes, we only need 5 bytes to remember a circuit ID and a reason. Fixes bug 24666. Bugfix on 0.2.5.1-alpha, when destroy cell queues were introduced. | |||
2017-11-13 | Merge branch 'maint-0.2.8' into maint-0.2.9 | Nick Mathewson | |
2017-11-13 | Merge branch 'bug23291_028' into maint-0.2.8 | Nick Mathewson | |
2017-10-23 | Merge branch 'maint-0.2.8' into maint-0.2.9 | Nick Mathewson | |
2017-10-23 | Adjust test, now that there are 9 dirauths again | Nick Mathewson | |
2017-09-12 | Avoid sscanf() warnings from openbsd in the unit tests | Nick Mathewson | |
OpenBSD doesn't like tricks where you use a too-wide sscanf argument for a too-narrow array, even when you know the input string statically. The fix here is just to use bigger buffers. Fixes 15582; bugfix on a3dafd3f58bb312 in 0.2.6.2-alpha. | |||
2017-08-21 | 22839: fix check_heap_buffer buffer size in test-memwipe | Ties Stuij | |
2017-08-01 | Merge remote-tracking branch 'public/bug19769_19025_029' into maint-0.2.9 | Nick Mathewson | |
2017-07-14 | Merge branch 'bug22916_027' into maint-0.2.9 | Nick Mathewson | |
2017-07-13 | Fix compiler warnings with openssl-scrypt/libscrypt test on clang | Nick Mathewson | |
Clang didn't like that we were passing uint64_t values to an API that wanted uint32_t. GCC has either not cared, or has figured out that the values in question were safe to cast to uint32_t. Fixes bug22916; bugfix on 0.2.7.2-alpha. | |||
2017-07-07 | Merge branch 'maint-0.2.8' into maint-0.2.9 | Nick Mathewson | |
2017-07-07 | mingw fix: avoid "unused var" warning. | Nick Mathewson | |
This is a backport of 19615bce64cd381a925bc3910120ac39ca918e7c to fix bug 22838. | |||
2017-07-05 | Merge branch 'maint-0.2.8' into maint-0.2.9 | Nick Mathewson | |
2017-07-05 | Merge branch 'maint-0.2.7-redux' into maint-0.2.8 | Nick Mathewson | |
2017-07-05 | Merge branch 'maint-0.2.6' into maint-0.2.7-redux | Nick Mathewson | |
2017-07-05 | Merge branch 'maint-0.2.5' into maint-0.2.6 | Nick Mathewson | |
2017-07-05 | Merge branch 'maint-0.2.4' into maint-0.2.5 | Nick Mathewson | |
2017-07-03 | Fix assertion failure related to openbsd strtol(). | Nick Mathewson | |
Fixes bug 22789; bugfix on 0.2.3.8-alpha. | |||
2017-06-05 | Rename "link" variable to avoid shadowing warning. | Nick Mathewson | |
2017-06-05 | Repair link_handshake unit tests to mock tor_tls_get_own_cert() | Nick Mathewson | |
The tests previously assumed that the link handshake code would be calling get_my_certs() -- when I changed it to call get_own_cert() instead for the (case 2) 22460 fix, the tests failed, since the tls connection wasn't really there. This change makes us start mocking out the tor_tls_get_own_cert() function too. It also corrects the behavior of the mock_get_peer_cert() function -- it should have been returning a newly allocated copy. | |||
2017-02-14 | Fix policies.c instance of the "if (r=(a-b)) return r" pattern | Nick Mathewson | |
I think this one probably can't underflow, since the input ranges are small. But let's not tempt fate. This patch also replaces the "cmp" functions here with just "eq" functions, since nothing actually checked for anything besides 0 and nonzero. Related to 21278. | |||
2017-02-07 | Merge branch 'teor_bug21357-v2_029' into maint-0.2.9 | Nick Mathewson | |
2017-02-01 | Support LibreSSL with opaque structures | rubiate | |
Determining if OpenSSL structures are opaque now uses an autoconf check instead of comparing the version number. Some definitions have been moved to their own check as assumptions which were true for OpenSSL with opaque structures did not hold for LibreSSL. Closes ticket 21359. | |||
2017-02-01 | Scale IPv6 address counts in policy_summary_reject to avoid overflow | teor | |
This disregards anything smaller than an IPv6 /64, and rejects ports that are rejected on an IPv6 /16 or larger. Adjust existing unit tests, and add more to cover exceptional cases. No IPv4 behaviour changes. Fixes bug 21357 | |||
2017-02-01 | Add unit tests for IPv6 address summaries and IPv4 netblock rejection | teor | |
These tests currently fail due to bug 21357 |