summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2016-11-03Work around a behavior change in openssl's BUF_MEM codeNick Mathewson
In our code to write public keys to a string, for some unfathomable reason since 253f0f160e1185c, we would allocate a memory BIO, then set the NOCLOSE flag on it, extract its memory buffer, and free it. Then a little while later we'd free the memory buffer with BUF_MEM_free(). As of openssl 1.1 this doesn't work any more, since there is now a BIO_BUF_MEM structure that wraps the BUF_MEM structure. This BIO_BUF_MEM doesn't get freed in our code. So, we had a memory leak! Is this an openssl bug? Maybe. But our code was already pretty silly. Why mess around with the NOCLOSE flag here when we can just keep the BIO object around until we don't need the buffer any more? Fixes bug 20553; bugfix on 0.0.2pre8
2016-10-17Bump to 0.2.8.9-devNick Mathewson
2016-10-17bump to 0.2.8.9Nick Mathewson
2016-10-17Merge branch 'buf_sentinel_026_v2' into maint-0.2.8Nick Mathewson
2016-10-17Add a one-word sentinel value of 0x0 at the end of each buf_t chunkNick Mathewson
This helps protect against bugs where any part of a buf_t's memory is passed to a function that expects a NUL-terminated input. It also closes TROVE-2016-10-001 (aka bug 20384).
2016-10-06Merge branch 'maint-0.2.7' into maint-0.2.8Nick Mathewson
2016-10-06Merge branch 'maint-0.2.6' into maint-0.2.7Nick Mathewson
2016-10-06Merge branch 'maint-0.2.5' into maint-0.2.6Nick Mathewson
2016-10-06Merge branch 'maint-0.2.4' into maint-0.2.5Nick Mathewson
2016-10-05Update geoip and geoip6 to the October 6 2016 database.Karsten Loesing
2016-09-23Bump to 0.2.8.8-dev.Nick Mathewson
2016-09-23Merge remote-tracking branch 'teor/broken-028-fallbacks' into maint-0.2.8Nick Mathewson
2016-09-22Remove another fallback whose operator opted-outteor
2016-09-22Update versions to 0.2.8.8Nick Mathewson
2016-09-22Merge branch 'bug20203_027_squashed' into maint-0.2.8Nick Mathewson
2016-09-22When clearing cells from a circuit for OOM reasons, tell cmux we did so.Nick Mathewson
Not telling the cmux would sometimes cause an assertion failure in relay.c when we tried to get an active circuit and found an "active" circuit with no cells. Additionally, replace that assert with a test and a log message. Fix for bug 20203. This is actually probably a bugfix on 0.2.8.1-alpha, specifically my code in 8b4e5b7ee902fb7fa0776 where I made circuit_mark_for_close_() do less in order to simplify our call graph. Thanks to "cypherpunks" for help diagnosing.
2016-09-20Merge remote-tracking branch 'public/bug20103_028_v3' into maint-0.2.8Nick Mathewson
2016-09-21fixup! Update hard-coded fallback list based on pre-0.2.9 checksteor
2016-09-20Don't look at any routerstatus_t when the networkstatus is inconsistentNick Mathewson
For a brief moment in networkstatus_set_current_consensus(), the old consensus has been freed, but the node_t objects still have dead pointers to the routerstatus_t objects within it. During that interval, we absolutely must not do anything that would cause Tor to look at those dangling pointers. Unfortunately, calling the (badly labeled!) current_consensus macro or anything else that calls into we_use_microdescriptors_for_circuits(), can make us look at the nodelist. The fix is to make sure we identify the main consensus flavor _outside_ the danger zone, and to make the danger zone much much smaller. Fixes bug 20103. This bug has been implicitly present for AGES; we just got lucky for a very long time. It became a crash bug in 0.2.8.2-alpha when we merged 35bbf2e4a4e8ccb to make find_dl_schedule start looking at the consensus, and 4460feaf2850ef0 which made node_get_all_orports less (accidentally) tolerant of nodes with a valid ri pointer but dangling rs pointer.
2016-09-20Update hard-coded fallback list based on pre-0.2.9 checksteor
2016-09-07Merge branch 'maint-0.2.7' into maint-0.2.8Nick Mathewson
2016-09-07Merge branch 'maint-0.2.6' into maint-0.2.7Nick Mathewson
2016-09-07Merge branch 'maint-0.2.5' into maint-0.2.6Nick Mathewson
2016-09-07Merge branch 'maint-0.2.4' into maint-0.2.5Nick Mathewson
2016-09-07Update geoip and geoip6 to the September 6 2016 database.Karsten Loesing
2016-08-24bump to 0.2.8.7-devNick Mathewson
2016-08-24Bump to 0.2.8.7Nick Mathewson
2016-08-24Fix path selection on firewalled clientsteor
Signed-off-by: teor <teor2345@gmail.com>
2016-08-24Merge branch 'maint-0.2.7' into maint-0.2.8Nick Mathewson
2016-08-24Replace Tonga with Bifroest.Isis Lovecruft
* FIXES #19728: https://bugs.torproject.org/19728 * CLOSES #19690: https://bugs.torproject.org/19690
2016-08-22Do not pass NULL to log(%s) in dir_server_new.Nick Mathewson
This bug had existed since 0.2.4.7-alpha, but now that we have FallbackDirs by default, it actually matters. Fixes bug 19947; bugfix on 0.2.4.7-alpha or maybe 0.2.8.1-alpha. Rubiate wrote the patch; teor wrote the changes file.
2016-08-19Merge branch 'bug19903_028_v2' into maint-0.2.8Nick Mathewson
2016-08-19Avoid confusing GCC 4.2.1 by saying "int foo()... inline int foo() {...}"Nick Mathewson
Fixes bug 19903; bugfix on 0.2.8.1-alpha.
2016-08-12Merge branch 'maint-0.2.7' into maint-0.2.8Nick Mathewson
2016-08-12Merge branch 'maint-0.2.6' into maint-0.2.7Nick Mathewson
2016-08-12Merge branch 'maint-0.2.5' into maint-0.2.6Nick Mathewson
2016-08-12Merge branch 'maint-0.2.4' into maint-0.2.5Nick Mathewson
2016-08-12Update geoip and geoip6 to the August 2 2016 database.Karsten Loesing
2016-08-02bump maint-0.2.8 to 0.2.8.6-devNick Mathewson
2016-07-29bump to 0.2.8.6Nick Mathewson
2016-07-29Remove a fallback that was on the hardcoded list, then opted-outteor (Tim Wilson-Brown)
The fallback was added in 0.2.8.2-alpha.
2016-07-21Coverity hates it when we do "E1 ? E2 : E2".Nick Mathewson
It says, 'Incorrect expression (IDENTICAL_BRANCHES)' Fix for CID 1364127. Not in any released Tor.
2016-07-19Merge branch 'maint-0.2.7' into maint-0.2.8Nick Mathewson
2016-07-19Merge branch 'maint-0.2.6' into maint-0.2.7Nick Mathewson
2016-07-19Merge branch 'maint-0.2.5' into maint-0.2.6Nick Mathewson
2016-07-19Merge branch 'maint-0.2.4' into maint-0.2.5Nick Mathewson
2016-07-18Update geoip and geoip6 to the July 6 2016 database.Karsten Loesing
2016-07-17Merge remote-tracking branch 'weasel/bug19660' into maint-0.2.8Nick Mathewson
2016-07-17Fix warnings in test_util_formats.Nick Mathewson
Storing 255 into a char gives a warning when char is signed. Fixes bug 19682; bugfix on 0.2.8.1-alpha, where these tests were added.
2016-07-13Merge remote-tracking branch 'Jigsaw52/seccomp-fix-18397' into maint-0.2.8Nick Mathewson