aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2010-02-27Merge remote branch 'origin/maint-0.2.1'Nick Mathewson
Conflicts: src/common/test.h src/or/test.c
2010-02-27Update Tor Project copyright yearsNick Mathewson
2010-02-27fix some wide lines in routerparse.cNick Mathewson
2010-02-27Merge remote branch 'origin/maint-0.2.1'Nick Mathewson
Conflicts: ChangeLog src/or/routerparse.c
2010-02-27Properly handle non-terminated stringsSebastian Hahn
Treat strings returned from signed_descriptor_get_body_impl() as not NUL-terminated. Since the length of the strings is available, this is not a big problem. Discovered by rieo.
2010-02-26Don't segfault when checking the consensusSebastian Hahn
2010-02-26Don't believe unauthenticated info in a consensus.Nick Mathewson
Don't allow anything but directory-signature tokens in a consensus after the first directory-signature token. Fixes bug in bandwidth-weights branch. Found by "outofwords."
2010-02-26Proper NULL checking in circuit_list_path_impl()Sebastian Hahn
Another dereference-then-NULL-check sequence. No reports of this bug triggered in the wild. Fixes bugreport 1256. Thanks to ekir for discovering and reporting this bug.
2010-02-26Proper NULL checking for hsdesc publicationSebastian Hahn
Fix a dereference-then-NULL-check sequence. This bug wasn't triggered in the wild, but we should fix it anyways in case it ever happens. Also make sure users get a note about this being a bug when they see it in their log. Thanks to ekir for discovering and reporting this bug.
2010-02-26Zero a cipher completely before freeing itSebastian Hahn
We used to only zero the first ptrsize bytes of the cipher. Since cipher is large enough, we didn't zero too many bytes. Discovered and fixed by ekir. Fixes bug 1254.
2010-02-25add .exe files to gitignoreNick Mathewson
2010-02-25For integers, if !(E<G), then we can infer that E>=G.Nick Mathewson
This means that "if (E<G) {abc} else if (E>=G) {def}" can be replaced with "if (E<G) {abc} else {def}" Doing the second test explicitly made my mingw gcc nervous that we might never be initializing casename.
2010-02-25Add the MIN and MAX macros for platforms that lack themNick Mathewson
2010-02-25Fix 64-bit printf issues in consensus-bw-weights5-merge.Nick Mathewson
For my 64-bit Linux system running with GCC 4.4.3-fc12-whatever, you can't do 'printf("%lld", (int64_t)x);' Instead you need to tell the compiler 'printf("%lld", (long long int)x);' or else it doesn't believe the types match. This is why we added U64_PRINTF_ARG; it looks like we needed an I64_PRINTF_ARG too.
2010-02-25Merge remote branch 'mikeperry/consensus-bw-weights5-merge'Nick Mathewson
Conflicts: ChangeLog
2010-02-25Check snprintf return values in format_networkstatus_vote.Mike Perry
Maybe this is what parakeep was complaining about? Really wish he would stick around more. Playing these guessing games is not fun :(
2010-02-25Cast our weights down to ints from int64.Mike Perry
They are capped to be between 0 and weight_scale (10000) by the code just before the snprintf.
2010-02-25Update dir-spec.txt with begin_dir weights.Mike Perry
2010-02-25Merge remote branch 'sebastian/manpage'Nick Mathewson
2010-02-25Merge remote branch 'sebastian/polipo'Nick Mathewson
2010-02-25Restrict PerConnBWRate|Burst to INT32_MAX, update manpageSebastian Hahn
All other bandwidthrate settings are restricted to INT32_MAX, but this check was forgotten for PerConnBWRate and PerConnBWBurst. Also update the manpage to reflect the fact that specifying a bandwidth in terabytes does not make sense, because that value will be too large.
2010-02-24Make unit tests work.Mike Perry
Still not sure why they generate an empty consensus document.. Too much frobbing going on there.
2010-02-23Update a section of the exit notice file, give it a changelog.Sebastian Hahn
2010-02-23Fix some urls in the exit noticeSebastian Hahn
Patch by Christian Kujau to fix some links in the exit notice file (the file you'd use for your DirPortFrontPage), as well as making the file xhtml compatible. Thanks!
2010-02-23Update polipo build instructions for OS X 10.6Sebastian Hahn
2010-02-23Proper NULL checking for hsdesc publicationSebastian Hahn
Fix a dereference-then-NULL-check sequence. This bug wasn't triggered in the wild, but we should fix it anyways in case it ever happens. Also make sure users get a note about this being a bug when they see it in their log. Thanks to ekir for discovering and reporting this bug.
2010-02-23Fix another coverity-spotted memleakSebastian Hahn
2010-02-22Update consensus methods in spec.Mike Perry
2010-02-22Add consensus method #defines.Mike Perry
2010-02-22bump to 0.2.2.9-alpha-devRoger Dingledine
2010-02-22Mark 160 and 161 as Finished.tor-0.2.2.9-alphaNick Mathewson
2010-02-22Add a changelog entry for the bandwidth weightings.Mike Perry
2010-02-22Remove misc unnecessary newlines found by new check.Mike Perry
2010-02-22Patch from karsten to detect unnecessary \n's.Mike Perry
Also fix a spacing issue.
2010-02-22Always weight routers by bandwidth.Mike Perry
Also always predict that we need a high capacity circuit or internal circuit.
2010-02-22Update specs for weight computation and use.Mike Perry
2010-02-22Clearly mark directory footer so we parse the new weight line.Mike Perry
2010-02-22Implement bw weighting selection algorithm.Mike Perry
2010-02-22Add parsing+verification for bw weight values.Mike Perry
2010-02-22Perform calculation of consensus bandwidth weights.Mike Perry
Also add bwweightscale consensus param. Use it as our fixed-point calculation width.
2010-02-22Add %lld compat defines.Mike Perry
2010-02-22elevate a changelog entry, and get my mailto out of the man pageRoger Dingledine
2010-02-22Merge remote branch 'sebastian/coverity'Nick Mathewson
2010-02-22Merge remote branch 'sebastian/bug1254'Nick Mathewson
2010-02-22Make expand_filename into a tor_strdup() alias on windows.Nick Mathewson
On Windows, we don't have a notion of ~ meaning "our homedir", so we were deliberately using an #ifdef to avoid calling expand_filename() in multiple places. This is silly: The right place to turn a function into a no-op on a single platform is in the function itself, not in every single call-site.
2010-02-22Remove some redundant code in options_save_current()Sebastian Hahn
get_torrc_fname() does the same thing we did in this code, so let's replace it.
2010-02-22Expand homedirs in paths passed to tor-checkkeySebastian Hahn
This is so that coverity stops complaining about using a user-supplied string with the open() syscall. Let's see if it works.
2010-02-22Zero a cipher completely before freeing itSebastian Hahn
We used to only zero the first ptrsize bytes of the cipher. Since cipher is large enough, we didn't zero too many bytes. Discovered and fixed by ekir. Fixes bug 1254.
2010-02-22Break early on unknown extendcircuit purposeSebastian Hahn
Don't continue handling EXTENDCIRCUIT messages when we get an unknown purpose.
2010-02-22Fix a memory leak, found by coveritySebastian Hahn