| Commit message (Expand) | Author | Age |
* | Add a unit test for the old crash input of tor_timegm(). | George Kadianakis | 2012-09-13 |
* | Merge remote-tracking branch 'public/bug6538'•••Conflicts:
configure.ac
| Nick Mathewson | 2012-09-11 |
|\ |
|
| * | In choose-by-bw, scale to better use the range of uint64•••The smart part of this is based on an approach and a suggestion by
rransom. The unsmart part is my own fault.
| Nick Mathewson | 2012-08-27 |
| * | Refactor the core of choosing by weights into a function•••This eliminates duplicated code, and lets us test a hairy piece of
functionality.
| Nick Mathewson | 2012-08-09 |
* | | Merge remote-tracking branch 'origin/maint-0.2.3' | Nick Mathewson | 2012-09-11 |
|\ \ |
|
| * \ | Merge remote-tracking branch 'origin/maint-0.2.2' into maint-0.2.3•••Conflicts:
src/test/test_util.c
| Nick Mathewson | 2012-09-11 |
| |\ \
| | |/
| |/| |
|
| | * | Fix assertion failure in tor_timegm.•••Fixes bug 6811.
| Nick Mathewson | 2012-09-11 |
* | | | Have directory authorities vote on IPv6 OR ports according to the spec•••Define new new consensus method 14 adding "a" lines to vote and
consensus documents.
From proposal 186:
As with other data in the vote derived from the descriptor, the
consensus will include whichever set of "a" lines are given by the
most authorities who voted for the descriptor digest that will be
used for the router.
This patch implements this.
| Linus Nordberg | 2012-09-04 |
* | | | Merge branch 'bug6524_nm' | Nick Mathewson | 2012-08-27 |
|\ \ \ |
|
| * | | | fix TESTS to include full path to src/test/test | Stewart Smith | 2012-08-09 |
| * | | | Move to non-recursive make•••This gives us a few benefits:
1) make -j clean all
this will start working, as it should. It currently doesn't.
2) increased parallel build
recursive make will max out at number of files in a directory,
non-recursive make doesn't have such a limitation
3) Removal of duplicate information in make files,
less error prone
I've also slightly updated how we call AM_INIT_AUTOMAKE, as the way
that was used was not only deprecated but will be *removed* in the next
major automake release (1.13).... so probably best that we can continue
to bulid tor without requiring old automake.
(see http://www.gnu.org/software/automake/manual/html_node/Public-Macros.html )
For more reasons why, see resources such as:
http://miller.emu.id.au/pmiller/books/rmch/
| Stewart Smith | 2012-08-09 |
* | | | | Merge remote-tracking branch 'public/bug5124' | Nick Mathewson | 2012-08-17 |
|\ \ \ \
| |/ / /
|/| | | |
|
| * | | | Never emit the "opt" prefix in any directory stuff•••Fix for bug 5124.
| Nick Mathewson | 2012-06-28 |
* | | | | Speak not the name of INT_MIN; it can upset older compilers•••And more to the point, some GCCs will warn that you can't say it
before C90.
Bug not in any released version of Tor.
| Nick Mathewson | 2012-08-03 |
* | | | | Fix a bunch of "implicit 64->32" warnings from introduce refactoring | Nick Mathewson | 2012-08-03 |
* | | | | test_assert is always in affect: no need for extra gotos | Nick Mathewson | 2012-07-31 |
* | | | | Remove duplicate code in test_introduce.c•••Two of the do_*_test functions were actually prefixes of the third,
which suggests a trivial code elimination step
| Nick Mathewson | 2012-07-31 |
* | | | | Unit tests for new rend_intro_cell_t parser | Andrea Shepard | 2012-07-31 |
* | | | | Implement replaycache_t for bug 6177, and unit tests for the preceding | Andrea Shepard | 2012-07-31 |
* | | | | Merge remote-tracking branch 'origin/maint-0.2.3' | Nick Mathewson | 2012-07-18 |
|\ \ \ \
| | |/ /
| |/| | |
|
| * | | | Change all SMARTLIST_FOREACH loops of >=10 lines to use BEGIN/END•••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.
| Nick Mathewson | 2012-07-17 |
* | | | | Fix compilation on 32-bit. Fix for bug 6277, not in any released tor. | Nick Mathewson | 2012-07-05 |
| |/ /
|/| | |
|
* | | | Make check-spaces happy again | Nick Mathewson | 2012-06-28 |
* | | | Extend tor_sscanf so it can replace sscanf in rephist.c•••Fixes bug 4195 and Coverity CID 448
| Nick Mathewson | 2012-06-28 |
|/ / |
|
* | | Merge remote-tracking branch 'public/bug6227' into maint-0.2.3 | Nick Mathewson | 2012-06-26 |
|\ \ |
|
| * | | Bump the test util/threads timeout up to 150 sec•••This should make some debian build systems happier.
Also, increase the select() timeout to a more reasonable 100 msec.
| Nick Mathewson | 2012-06-25 |
* | | | Add a unit test for environment_variable_names_equal•••I need this because I'm about to frob that function to stop using
strcspn() in order to get rid of a clang warning.
| Nick Mathewson | 2012-06-26 |
|/ / |
|
* | | Resolve crash caused by format_helper_exit_status changes in #5557•••Because the string output was no longer equal in length to
HEX_ERRNO_SIZE, the write() call would add some extra spaces and
maybe a NUL, and the NUL would trigger an assert in
get_string_from_pipe.
Fixes bug 6225; bug not in any released version of Tor.
| Nick Mathewson | 2012-06-23 |
* | | Add unit test for format_hex_number_for_helper_exit_status() | Andrea Shepard | 2012-06-22 |
* | | Make format_helper_exit_status() avoid unnecessary spaces | Andrea Shepard | 2012-06-22 |
* | | Merge remote-tracking branch 'public/bug3940_redux' | Nick Mathewson | 2012-06-13 |
|\ \ |
|
| * | | An attempt at bug3940 and making AllowDotExit 0 work with MapAddress•••This time, I follow grarpamp's suggestion and move the check for
.exit+AllowDotExit 0 to the top of connection_ap_rewrite_and_attach,
before any rewriting occurs. This way, .exit addresses are
forbidden as they arrive from a socks connection or a DNSPort
request, and not otherwise.
It _is_ a little more complicated than that, though. We need to
treat any .exit addresses whose source is TrackHostExits as meaning
that we can retry without that exit. We also need to treat any
.exit address that comes from an AutomapHostsOnResolve operation as
user-provided (and thus forbidden if AllowDotExits==0), so that
transitioning from AllowDotExits==1 to AllowDotExits==0 will
actually turn off automapped .exit addresses.
| Nick Mathewson | 2012-05-11 |
* | | | Fix mingw build with -DUNICODE -D_UNICODE•••This is a very blunt fix, and mostly just turns some func() calls
into FuncA() to make things build again. Fixes bug 6097.
| Nick Mathewson | 2012-06-07 |
* | | | Fix some mingw build warnings•••These include:
- Having a weird in_addr that can't be initialized with {0}
- Needing INVALID_HANDLE_VALUE instead of -1 for file handles.
- Having a weird dependent definition for struct stat.
- pid is signed, not unsigned.
| Nick Mathewson | 2012-06-05 |
* | | | Update copyright dates to 2012; add a few missing copyright statements | Nick Mathewson | 2012-06-04 |
* | | | Fix build warning on Lenny about strtok_r unit test•••This fixes a warning in efb8a09f, where Debain Lenny's GCC doesn't get
that
for (i=0; i<3; ++i) {
const char *p;
switch(i) {
case 0:
p="X"; break;
case 1:
p="Y"; break;
case 2:
p="Z"; break;
}
printf("%s\n", p);
}
will never try to print an uninitialezed value.
Found by buildbots. Bug in no released versions of Tor.
| Nick Mathewson | 2012-06-04 |
* | | | Merge remote-tracking branch 'public/bug5089'•••Conflicts:
src/test/test_util.c
Merge the unit tests; I added some when I did this branch against
0.2.2, and then the test format changed and master added more tests.
| Nick Mathewson | 2012-05-31 |
|\ \ \ |
|
| * | | | A few more get_parent_directory tests. | Nick Mathewson | 2012-05-31 |
| * | | | Have get_parent_directory() handle "/foo" and "/" correctly.•••The parent of "/foo" is "/"; and "/" is its own parent.
This would cause Tor to fail if you tried to have a PF_UNIX control
socket in the root directory. That would be a stupid thing to do
for other reasons, but there's no reason to fail like _this_.
Bug found by Esteban Manchado Velázquez. Fix for bug 5089; bugfix on
Tor 0.2.2.26-beta. Unit test included.
| Nick Mathewson | 2012-05-24 |
| | |/
| |/| |
|
* | | | Fix the unittest breakage introduced by a8a862c. | George Kadianakis | 2012-05-18 |
* | | | Merge remote-tracking branch 'origin/maint-0.2.2' | Nick Mathewson | 2012-05-16 |
|\| | |
|
| * | | Make the succeeding parse_http_time tests more obviously right•••(When the correct answer is given in terms of seconds since the
epoch, it's hard to be sure that it really is the right answer
just by reading the code.)
| Nick Mathewson | 2012-05-16 |
| * | | Fix month check in parse_http_time, add test | Sebastian Hahn | 2012-05-16 |
| * | | Reject an additional type of bad date in parse_http_time | Nick Mathewson | 2012-05-16 |
| * | | Fix parse_http_time and add tests•••* It seems parse_http_time wasn't parsing correctly any date with commas (RFCs
1123 and 850). Fix that.
* It seems parse_http_time was reporting the wrong month (they start at 0, not
1). Fix that.
* Add some tests for parse_http_time, covering all three formats.
| Esteban Manchado Velázquez | 2012-05-16 |
* | | | Fix some remaining nmake/msvc build issues | Nick Mathewson | 2012-05-16 |
| |/
|/| |
|
* | | Fix a couple of wide lines | Nick Mathewson | 2012-05-11 |
* | | Merge remote-tracking branch 'public/bug5091' | Nick Mathewson | 2012-05-11 |
|\ \ |
|
| * | | Fix tor_strtok_r_impl and test cases per bug #5091•••==
Nick here. I tweaked this patch a little to make it apply cleanly to
master, to extract some common code into a function, and to replace
snprintf with tor_snprintf.
-- nickm
| nils | 2012-03-30 |
* | | | Merge remote-tracking branch 'origin/maint-0.2.2'•••Conflicts:
src/common/util.c
src/test/test_util.c
| Nick Mathewson | 2012-05-10 |
|\ \ \
| | |/
| |/| |
|