summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2012-08-17Merge branch 'bug6379' into maint-0.2.3Nick Mathewson
2012-08-17Fix more warnings from openbsd_mallocNick Mathewson
Apparently, (void)writev is not enough to suppress the "you are ignoring the return value!" warnings on Linux. Instead, remove the whole warning/error logic when compiling openbsd_malloc for Tor: we can't use it.
2012-08-17Merge remote-tracking branch 'public/bug6244_part_c' into maint-0.2.3Nick Mathewson
2012-08-17Merge remote-tracking branch 'public/bug6507' into maint-0.2.3Nick Mathewson
2012-08-17Whitespace and build fixes on 6475 patchNick Mathewson
2012-08-17Merge remote-tracking branch 'mikeperry/bug6475' into maint-0.2.3Nick Mathewson
2012-08-17Merge remote-tracking branch 'public/bug6514' into maint-0.2.3Nick Mathewson
2012-08-16Address Nick's comments from code review.Mike Perry
Also promote log messages to notice and rate-limit them.
2012-08-15Bug 6475: Explicitly track our path bias state.Mike Perry
This is done to avoid spurious warns. Additional log lines are also added to try to track down the codepaths where we are somehow overcounting success counts.
2012-08-15Fix warnings and 64-bit problems in openbsd-malloc codeNick Mathewson
The warning fixes are: - Only define issetugid if it's missing. - Explicitly ignore the return value of writev. - Explicitly cast the retval of readlink() to int. The 64-bit problems are related to just storing a size_t in an int. Not cool! Use a size_t instead. Fix for bug 6379. Bugfix on 0.2.0.20-rc, which introduced openbsd-malloc.
2012-08-15Fix wildcarded address mappings from the control portNick Mathewson
Apparently, we weren't actually detecting wildcardedness when parsing them: whoops! bug 6244. Bugfix on 0.2.3.9-alpha
2012-08-15Raise the part of torrc mapaddress handling that knows wildcardsNick Mathewson
This patch extracts the inner part of config_register_addressmaps -- the part that knows about detecting wildcard addresses addresses -- and makes it into a new function. The new function is deliberately not moved or reindented, so that the diff is smaller. I need this to fix bug 6244.
2012-08-09Reject attempts to say FooPort and FooPort 0 in the same cfg domainNick Mathewson
2012-08-09Fix spaces from last patchNick Mathewson
2012-08-09Don't infer we have a FooPort from the presence of a FooPort lineNick Mathewson
Thanks to the changes we started making with SocksPort and friends in 0.2.3.3-alpha, any of our code that did "if (options->Sockport)" became wrong, since "SocksPort 0" would make that test true whereas using the default SocksPort value would make it false. (We didn't actually do "if (options->SockPort)" but we did have tests for TransPort. When we moved DirPort, ORPort, and ControlPort over to the same system in 0.2.3.9-alpha, the problem got worse, since our code is littered with checks for DirPort and ORPort as booleans. This code renames the current linelist-based FooPort options to FooPort_lines, and adds new FooPort_set options which get set at parse-and-validate time on the or_options_t. FooPort_set is true iff we will actually try to open a listener of the given type. (I renamed the FooPort options rather than leave them alone so that every previous user of a FooPort would need to get inspected, and so that any new code that forgetfully uses FooPort will need fail to compile.) Fix for bug 6507.
2012-08-09Merge remote-tracking branch 'public/bug6252_again' into maint-0.2.3Nick Mathewson
2012-08-03Merge remote-tracking branch 'origin/maint-0.2.2' into maint-0.2.3Nick Mathewson
Conflicts: src/or/routerlist.c
2012-08-03Mitigate a side-channel leak of which relays Tor chooses for a circuitRobert Ransom
Tor's and OpenSSL's current design guarantee that there are other leaks, but this one is likely to be more easily exploitable, and is easy to fix.
2012-08-03Remove bogus comment claiming that an assertion is triggerable by consensusRobert Ransom
2012-08-03Merge remote-tracking branch 'origin/maint-0.2.2' into maint-0.2.3Nick Mathewson
2012-08-03Avoid possible segfault when handling networkstatus vote with bad flavorNick Mathewson
Fix for 6530; fix on 0.2.2.6-alpha.
2012-08-01Defensive programming: clear rs_out between iterations.Nick Mathewson
I can't currently find a bug here, but there are a couple of near-misses. Addresses ticket 6514; reported pseudonymously on IRC.
2012-07-31Avoid hard (impossible?)-to-trigger double-free in dns_resolve()Nick Mathewson
Fixes 6480; fix on 0.2.0.1-alpha; based on pseudonymous patch.
2012-07-31Merge branch 'bug6490_v2' into maint-0.2.3Nick Mathewson
2012-07-31Warn when accounting is used in a way likely to link hidden servicesNick Mathewson
Fix for 6490.
2012-07-31trivial grammar fixRoger Dingledine
2012-07-23Merge remote-tracking branch 'asn/bug6274_take3' into maint-0.2.3Nick Mathewson
2012-07-18Better handling of server managed proxies when Tor is not a relay.George Kadianakis
2012-07-18Detect bug 6252 (unexpected sendme cell)Roger Dingledine
I only check on circuits, not streams, since bloating your stream window past the initial circuit window can't help you much. Also, I compare to CIRCWINDOW_START_MAX so we don't have surprising races if we lower CIRCWINDOW_START for an experiment.
2012-07-18Merge branch 'smartlist_shorten' into maint-0.2.3Nick Mathewson
2012-07-18Tweaks to 6400 changes file and docs as suggested by armaNick Mathewson
2012-07-17Improve message on spurious SOCKSListenAddressNick Mathewson
2012-07-17Fix the remaining instances of nexted SMARTLIST_FOREACHNick Mathewson
2012-07-17Change all SMARTLIST_FOREACH loops of >=10 lines to use BEGIN/ENDNick Mathewson
The SMARTLIST_FOREACH macro is more convenient than BEGIN/END when you have a nice short loop body, but using it for long bodies makes your preprocessor tell the compiler that all the code is on the same line. That causes grief, since compiler warnings and debugger lines will all refer to that one line. So, here's a new style rule: SMARTLIST_FOREACH blocks need to be short.
2012-07-17Allow TestingTorNetwork when alternate dir and bridge authorities are set.Linus Nordberg
Allow TestingTorNetwork when AlternateDirAuthority and AlternateBridgeAuthority is set even if DirServer is not.
2012-07-16Refer to the correct variable in a loop when parsing entry guard stateNick Mathewson
Fixes bug 6397 and coverity issue 709599. Bugfix on 0.2.3.17-beta.
2012-07-16Coverity 709056: Check return value on fputs in tor-gencertNick Mathewson
2012-07-06Merge branch 'maint-0.2.2' into maint-0.2.3Roger Dingledine
2012-07-06Revert to the May 2012 geoip dbRoger Dingledine
The June 2012 db marks too many relays as country "A1". Addresses bug 6334.
2012-07-06Merge remote-tracking branch 'nickm/bug6271_part_a' into maint-0.2.3Roger Dingledine
2012-07-06Fix port range in parse_port_range().George Kadianakis
2012-07-06Fix a bug handling SENDME cells on nonexistent streams.Nick Mathewson
This could result in bizarre window values. Report and patch contributed pseudymously. Fixes part of bug 6271. This bug was introduced before the first Tor release, in svn commit r152. (bug 6271, part a.)
2012-07-05On windows, ENOBUFS starts with WSA. #6296. Fix on 0.2.18-rcNick Mathewson
2012-07-01Revert "Detect bug 6252 (unexpected sendme cell)"Roger Dingledine
This reverts commit c32ec9c425e9539bcc8ede95612e2d331c2cc2dd. It turns out the two sides of the circuit don't actually stay in sync, so it is perfectly normal for the circuit window on the exit relay to grow to 2000+. We should fix that bug and then reconsider this patch.
2012-07-01Detect bug 6252 (unexpected sendme cell)Roger Dingledine
I only check on circuits, not streams, since bloating your stream window past the initial circuit window can't help you much. Also, I compare to CIRCWINDOW_START_MAX so we don't have surprising races if we lower CIRCWINDOW_START for an experiment.
2012-06-28bump version to 0.2.3.18-rc-devNick Mathewson
2012-06-28bump to 0.2.3.18-rctor-0.2.3.18-rcRoger Dingledine
2012-06-28add a blurb for 0.2.3.18-rc, other minor cleanupsRoger Dingledine
2012-06-28fix grammar in commentRoger Dingledine
2012-06-28Merge remote-tracking branch 'public/bug6244_part2' into maint-0.2.3Nick Mathewson