aboutsummaryrefslogtreecommitdiff
path: root/src/test
Commit message (Collapse)AuthorAge
* Merge remote-tracking branch 'public/bug10409_023' into maint-0.2.4Nick Mathewson2013-12-17
|\
| * Avoid free()ing from an mmap on corrupted microdesc cacheNick Mathewson2013-12-16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | The 'body' field of a microdesc_t holds a strdup()'d value if the microdesc's saved_location field is SAVED_IN_JOURNAL or SAVED_NOWHERE, and holds a pointer to the middle of an mmap if the microdesc is SAVED_IN_CACHE. But we weren't setting that field until a while after we parsed the microdescriptor, which left an interval where microdesc_free() would try to free() the middle of the mmap(). This patch also includes a regression test. This is a fix for #10409; bugfix on 0.2.2.6-alpha.
* | Merge remote-tracking branch 'origin/maint-0.2.3' into maint-0.2.4Nick Mathewson2013-10-10
|\|
| * Fix unit test for format_helper_exit_statusNick Mathewson2013-10-10
| | | | | | | | | | Fix format_helper_exit_status to allow full HEX_ERRNO_SIZE answers, *and* increase the buffer length again.
* | refactor and give it unit testsRoger Dingledine2013-09-04
| |
* | Expand microdesc cache testsNick Mathewson2013-06-12
| | | | | | | | | | | | | | Is it possible that *every* attempt to replace the microdesc cache on windows 7 is going to fail because of our lack of FILE_SHARE_DELETE while opening the file? If so, this test will catch #2077 and let us know when it's fixed.
* | Fix unit tests to pass after fix for #8879Nick Mathewson2013-05-15
| |
* | Merge bug5595-v2-squashed into maint-0.2.4Andrea Shepard2013-05-10
|\ \
| * | Add some unit tests for fp_pair_map_t to test/containers.c based on the ↵Andrea Shepard2013-05-09
| |/ | | | | | | strmap tests
* | Merge remote-tracking branch 'origin/maint-0.2.3' into maint-0.2.4Nick Mathewson2013-05-09
|\|
| * Don't run off the end of the array-of-freelistsNick Mathewson2013-05-09
| | | | | | | | | | | | | | | | | | | | | | | | | | This is a fix for bug 8844, where eugenis correctly notes that there's a sentinel value at the end of the list-of-freelists that's never actually checked. It's a bug since the first version of the chunked buffer code back in 0.2.0.16-alpha. This would probably be a crash bug if it ever happens, but nobody's ever reported something like this, so I'm unsure whether it can occur. It would require write_to_buf, write_to_buf_zlib, read_to_buf, or read_to_buf_tls to get an input size of more than 32K. Still, it's a good idea to fix this kind of thing!
* | Fix bug 8845: check the right length of memory in aes unit testsNick Mathewson2013-05-08
| | | | | | | | | | This couldn't actually be a buffer overrun unless AES somehow turned into memcpy, but still it's good to fix it.
* | Merge branch 'less_charbuf_rebased' into maint-0.2.4Nick Mathewson2013-04-18
|\ \ | | | | | | | | | | | | | | | | | | Conflicts: src/or/dirserv.c src/or/dirserv.h src/test/test_dir.c
| * | Add unit test for encoding ntor key in routerinfoNick Mathewson2013-04-18
| | |
| * | Remove the unused pk3 variable from test_dir_formatsNick Mathewson2013-04-18
| | |
| * | Re-enable test for parsing and generating descriptor with exit policyNick Mathewson2013-04-18
| | | | | | | | | | | | | | | | | | Looks like I turned this off in 6ac42f5e back in 2003 and never got around to making it work again. There has been no small amount of code drift.
| * | Test networkstatus_getinfo_helper_singleNick Mathewson2013-04-18
| | |
| * | Add a quick-and-dirty-test for generate_v2_networkstatus.Nick Mathewson2013-04-18
| | | | | | | | | | | | | | | | | | | | | | | | It sure is a good thing we can run each test in its own process, or else the amount of setup I needed to do to make this thing work would have broken all the other tests. Test mocking would have made this easier to write too.
| * | Test improvement: include microdesc lines in our synthetic microdesc ↵Nick Mathewson2013-04-18
| | | | | | | | | | | | consensuses.
| * | Use chunks, not buffers, for router descriptorsNick Mathewson2013-04-18
| | |
* | | Fix some wide linesNick Mathewson2013-04-18
| | |
* | | Merge branch 'bug8683_rebased' into maint-0.2.4Nick Mathewson2013-04-14
|\ \ \
| * | | Rename all fields which measure bw in kb to end with _kbNick Mathewson2013-04-14
| | | |
* | | | socks5 will ask for username/password if we offer itRoger Dingledine2013-04-11
|/ / / | | | | | | | | | | | | Commit a264c4fe made the socks5 server prefer auth 2 if it's offered, but it didn't update the unit test to expect it.
* | | test.c: Try to create a more random temporary directory for our workspace ↵Peter Palfrader2013-04-05
| | | | | | | | | | | | (re: Bug#8638)
* | | Avoid clang warnings from implicit off_t->size_t castNick Mathewson2013-03-23
| | |
* | | Fix an uninitialized-var warning in unit testsNick Mathewson2013-03-22
| | | | | | | | | | | | Found by formorer; fix on 42fb61d172b172, not in any released Tor.
* | | Fix a small memory leak in the unit testsNick Mathewson2013-03-21
| | | | | | | | | | | | Found by coverity; this is CID 992692.
* | | Merge remote-tracking branch 'origin/maint-0.2.3' into maint-0.2.4Nick Mathewson2013-03-18
|\ \ \ | | |/ | |/| | | | | | | Conflicts: src/test/test_addr.c
| * | Add unit test for tor_addr_is_loopbackNick Mathewson2013-03-01
| | |
| * | Make unit test for bug7191 work with new smartlist_new() nameNick Mathewson2012-10-23
| | |
| * | Merge remote-tracking branch 'origin/maint-0.2.2' into maint-0.2.3Nick Mathewson2012-10-23
| |\ \
| | * | Add some unit tests for smartlist_bsearch_idx() on short listsAndrea Shepard2012-10-23
| | | | | | | | | | | | | | | | | | | | Conflicts: src/test/test_containers.c
* | | | Merge remote-tracking branch 'andrea/bug8435' into maint-0.2.4Nick Mathewson2013-03-18
|\ \ \ \
| * | | | Add unit test for dirserv measured bandwidth cacheAndrea Shepard2013-03-07
| | |_|/ | |/| |
* | | | Remove some functions which were unused except for their testsNick Mathewson2013-02-23
| | | |
* | | | Remove a bunch of unused macro definitionsNick Mathewson2013-02-23
|/ / /
* | | Fix a may-be-used-uninitialized warning.Nick Mathewson2013-02-19
| | |
* | | Merge branch 'bug2286_unit_test_squashed'Nick Mathewson2013-02-19
|\ \ \
| * | | Test alternate values of maxunmeasuredbw tooAndrea Shepard2013-02-19
| | | |
| * | | Update unmeasured bandwidth clipping unit test per NickM's bugfix for the ↵Andrea Shepard2013-02-19
| | | | | | | | | | | | | | | | Unmeasured=1 issue
| * | | Add unit test for unmeasured bandwidth clipping in consensusAndrea Shepard2013-02-19
| | | |
| * | | Refactor v3_networkstatus test to allow reuse of test for measuredbwAndrea Shepard2013-02-19
| | | |
* | | | Fix unreachable use-before-assign in test_util_join_win_cmdlineNick Mathewson2013-02-15
| | | | | | | | | | | | | | | | | | | | Apparently there is a compiler that believes this is something to warn about.
* | | | Fix a null-deref-on-fail in unit testsNick Mathewson2013-02-11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If geoip_format_bridge_stats() returned NULL when it should have returned a string, we would have tried to deref NULL, and died. Not a big deal in the unit tests, but still worth fixing. Found by coverity; This is CID 743384.
* | | | Fix even more dead code and resource leaks in the unit testsNick Mathewson2013-02-11
| | | | | | | | | | | | | | | | Found by coverity
* | | | Resolve memory leaks in the unit tests and benchmarks (found by coverity)Nick Mathewson2013-02-11
| | | | | | | | | | | | | | | | These shouldn't really matter, but it's nice to be leak-free.
* | | | Speed up the curve25519 unit test by doing fewer iterationsNick Mathewson2013-02-11
| | | | | | | | | | | | | | | | | | | | This test was accounting for about 2/3 of our unit tests' runtime, even on systems with a fast curve25519. No test should take so long.
* | | | Unit test for tor_weak_random_rangeNick Mathewson2013-02-08
| | | |
* | | | whitespace fixNick Mathewson2013-02-07
| | | |