summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2015-08-17Logs and debug info that I used for finding bug 16844Roger Dingledine
2015-08-17Bring the dimap tests up to 100%Nick Mathewson
2015-08-17Fix an assertion failure introduced in 20254907d7Nick Mathewson
Fixes bug 16829; bug not in any released Tor.
2015-08-17Fix a stupid memory leak I introduced in 8afbc154. Bug not in any released Tor.Nick Mathewson
2015-08-17Remove redundant tor_free() in command_process_create_cell().Isis Lovecruft
* FIXES #16823: https://bugs.torproject.org/16823 If an OP were to send a CREATE_FAST cell to an OR, and that CREATE_FAST cell had unparseable key material, then tor_free() would be called on the create cell twice. This fix removes the second (conditional on the key material being bad) call to tor_free(), so that now the create cell is always freed once, regardless of the status of the key material. (This isn't actually a double-free bug, since tor_free() sets its input to NULL, and has no effect when called with input NULL.)
2015-08-17Merge remote-tracking branch 'isis/fix/circuitlist-docstring-typo'Nick Mathewson
2015-08-15Merge branch 'analyze_cg_more'Nick Mathewson
2015-08-15Hack up the scripts/maint/*callgraph* scripts to do more, betterNick Mathewson
These scripts are now a little more bulletproof, cache data a little better, and generate more information. Notably, they search for the vectors or edges to cut that would lower the size of the largest SCC.
2015-08-14Increase AccountingMax example value to 40 GB.Nick Mathewson
(Change not made in torrc.minimal.in; only in torrc.sample and torrc.minimal.in-staging) Closes ticket 16742.
2015-08-14Fix an overzealous compiler warning in the testsNick Mathewson
2015-08-14Merge remote-tracking branch 'public/decouple_init_keys'Nick Mathewson
2015-08-13Increase unit test coverage on container.cNick Mathewson
2015-08-13Fix some types on container fnsNick Mathewson
2015-08-13Add changes file for #16389David Goulet
Signed-off-by: David Goulet <dgoulet@ev0ke.net>
2015-08-12Merge branch 'bug16539'Nick Mathewson
2015-08-12whoops; add a stale changes fileNick Mathewson
2015-08-12Fix a memory leak when adding an ri with expired ed certsNick Mathewson
Fixes bug 16539; bugfix on 0.2.7.2-alpha.
2015-08-12Merge branch 'ticket16762_squashed'Nick Mathewson
2015-08-12Decouple the backend for directory_all_unreachable to simplify our CFGNick Mathewson
See ticket 16762.
2015-08-11Split the client-only parts of init_keys() into a separate functionNick Mathewson
This should simplify the callgraph a little more.
2015-08-11Merge branch 'bug16389_027_03_squashed'Nick Mathewson
2015-08-11Expire after 5 minutes rend cache failure entriesDavid Goulet
Signed-off-by: David Goulet <dgoulet@ev0ke.net>
2015-08-11Add created timestamp to a rend cache failure entryDavid Goulet
Signed-off-by: David Goulet <dgoulet@ev0ke.net>
2015-08-11Fix typo in comment about digest256map_tDavid Goulet
Signed-off-by: David Goulet <dgoulet@ev0ke.net>
2015-08-11Use an enum for INTRO_POINT_FAILURE_*David Goulet
Safer, wiser, stronger! Signed-off-by: David Goulet <dgoulet@ev0ke.net>
2015-08-11Purge client HS failure cache on NEWNYMDavid Goulet
Signed-off-by: David Goulet <dgoulet@ev0ke.net>
2015-08-11Add rend failure cacheDavid Goulet
When fetching a descriptor, we know test every introduction points in it against our rend failure cache to know if we keep it or not. For this to work, now everytime an introduction points is discareded (ex: receiving a NACK), we note it down in our introduction cache. See rendcache.c for a detailed explanation of the cache's behavior. Fixes #16389 Signed-off-by: David Goulet <dgoulet@ev0ke.net>
2015-08-11Fix windows compilationNick Mathewson
2015-08-11Fix a 32-bit compilation warningNick Mathewson
2015-08-11Make HSDir depend on Running/Valid again.Nick Mathewson
When we removed Running/Valid checks from Fast and Stable in 8712, I removed them from HSDir too, which apparently wasn't a good idea. Reverts part of a65e835800b1af2c2a4c215b. Fixes bug 16524. Bugfix on 0.2.7.2-alpha.
2015-08-10Merge remote-tracking branch 'public/feature16734'Nick Mathewson
2015-08-10Remove a 9-function strongly connected component of tor's callgraph.Nick Mathewson
microdesc_free_() called get_microdesc_cache(), which had the fun side-effect of potentially reloading the whole cache from disk. Replace it with a variant that doesn't.
2015-08-10Update callgraph code to find and output strongly connected componentsNick Mathewson
2015-08-10Merge remote-tracking branch 'dgoulet/bug16274_027_02'Nick Mathewson
2015-08-06Merge remote-tracking branch 'public/decouple-write'Nick Mathewson
2015-08-06Merge remote-tracking branch 'public/bug16286'Nick Mathewson
2015-08-06Fix misnamed parameter in or_circuit_new docstring.Isis Lovecruft
* CHANGES `p_conn` to `p_chan` in `or_circuit_new()` docstring.
2015-08-05add dSYM files to gitignore (they are an osx thing)Nick Mathewson
2015-08-05Update tor-fw-helper URLNick Mathewson
2015-08-05Add a compat function to check how much disk space is free.Nick Mathewson
Closes ticket 16734.
2015-08-05Set the open file limit to the current value before changing itDavid Goulet
If setrlimit() failed, max_out wasn't set in set_max_file_descriptors() ending in a state where we don't use ULIMIT_BUFFER for things like tor private key files. Also fix the set_max_file_descriptors() documentation. Fixes #16274 Signed-off-by: David Goulet <dgoulet@ev0ke.net>
2015-08-05Write a bunch more test for doc/WritingTestsNick Mathewson
2015-08-05Allow cov-display to take directories as argumentsNick Mathewson
2015-08-05Let's try to get test_workqueue working on windowsNick Mathewson
2015-08-04Merge remote-tracking branch 'public/bug13338'Nick Mathewson
2015-08-04Switch order of unblocking threads and releasing the mutex.cypherpunks
According to POSIX, the mutex must be locked by the thread calling the signal functions to ensure predictable scheduling behavior. Found the issue using Helgrind which gave the warning `dubious: associated lock is not held by any thread`.
2015-08-03Update doc/HACKING with more coverage instructionsNick Mathewson
2015-08-03When building with coverage, run chutney with coverageNick Mathewson
Previously, this required me to do stuff like 'cp src/or/tor-cov src/or/tor' , which is pretty embarrassing.
2015-08-03Improved targets for "run all the tests, no, all of them."Nick Mathewson
2015-07-31Move formatting functions around.Nick Mathewson
The base64 and base32 functions used to be in crypto.c; crypto_format.h had no header; some general-purpose functions were in crypto_curve25519.c. This patch makes a {crypto,util}_format.[ch], and puts more functions there. Small modules are beautiful!