Age | Commit message (Collapse) | Author |
|
Backport r11332: fix a user-triggerable segfault in expand_filename("~").
svn:r11608
|
|
Backport minimal parts of r10192 (fix bugs found by Benedikt) and r10248 (handle lack of nul at end of mmap).
svn:r10301
|
|
Try to build without warnings on mingw with verbose warnings on. First attempt.
svn:r9688
|
|
compile fix on mingw: mingw does not define _MSC_VER.
svn:r9682
|
|
svn:r9634
|
|
Fix 35 remaining DOCDOC comments. Yowza.
svn:r9596
|
|
Update copyright dates.
svn:r9570
|
|
Handle errors on opening cached-routers* more uniformly and sanely: log not-found errors at level INFO, and all other errors at level WARN. Needs testing on win32.
svn:r9569
|
|
Add documentation to src/common/*.h; improve documentation for SMARTLIST_FOREACH; remove never-used options and corresponding tests from tor_strpartition.
svn:r9483
|
|
Removing the last DOCDOC comment hurt so much that I had to use Doxygen to identify undocumented macros and comments, and add 150 more DOCDOCs to point out where they were. Oops. Hey, kids! Fixing some of these could be your first Tor patch!
svn:r9477
|
|
Call stat() slightly less often; use fstat() when possible.
svn:r9472
|
|
Implement SOCKS_BAD_HOSTNAME status event. Defer remaining status events. Clean up control-spec.txt a little, and fill in recommendations for events.
svn:r9374
|
|
Yes, apparently saying strcpy in front of openbsd is like saying "intellectual property" in front of RMS. They both have a point, I guess, even though they extend it to contexts where it is completely irrelevant.
svn:r9370
|
|
Apparently, the OpenBSD linker thinks it knows C better than I do, and gets to call me names for having strcat and strcpy and sprintf in my code--whether I use them safely or not. All right, OpenBSD. You win... this round.
svn:r9360
|
|
Remove dead code; make targets of addressmap commands/configs use AllowNonRFC953Hostnames
svn:r9211
|
|
Clean up logic in parse_port_range(); accept 0 on low end and 65536 on high end for people who are bad at math.
svn:r9169
|
|
Fix bug found by Keith Skinner: Treat malformed max-ports in address ranges as an error, and dont ignore errors with min-ports even if a max-port is present.
svn:r9168
|
|
Add a rudimentary line-wrapping function for use in dumping comments in config files.
svn:r9132
|
|
Make PIDFile work on windows. Reported by Arrakis.
svn:r9116
|
|
Fix a build warning on angela-sid
svn:r8949
|
|
Try to compile with fewer warnings on irix64's MIPSpro compiler /
environment, which apparently believes that:
- off_t can be bigger than size_t.
- only mean kids assign things they do not subsequently inspect.
I don't try to fix the "error" that makes it say:
cc-3970 cc: WARNING File = main.c, Line = 1277
conversion from pointer to same-sized integral type (potential portability
problem)
uintptr_t sig = (uintptr_t)arg;
Because really, what can you do about a compiler that claims to be c99
but doesn't understand that void* x = NULL; uintptr_t y = (uintptr_t) x;
is safe?
svn:r8948
|
|
Add unit tests for tor_mmap_file(); make tor_mmap_t.size always be the size of the file (not the size of the mapping); add an extra argument to read_file_to_str() so it can return the size of the result string.
svn:r8762
|
|
svn:r8649
|
|
More doxygen comments
svn:r8637
|
|
svn:r8630
|
|
Remove/clarify some XXXs for no longer being accurate; for begin things we do not indend to fix; for already being parts of big todo issues (like "/* XXX ipv6 */"); etc. Also fix some spaces.
svn:r8580
|
|
Move is_local_IP to config.c; have it check for same-/24; make it used only for reachability (not for banwidth, because that is probably not what we want). Fixes an XXX.
svn:r8578
|
|
Fix an XXXX: make path_is_relative work on windows even though we never use it there.
svn:r8577
|
|
Differentiate more duplicated log entries
svn:r8542
|
|
Make distinct all non-bug messages at notice or higher that appear 3 or more times.
svn:r8541
|
|
Doxygen comments for code in common. Also simplify a few code paths to be more clear/speedy/correct.
svn:r8536
|
|
Improvement to last entry guards patch: track when we last attempted to connect to a node in our state file along with how long it has been unreachable. Also clarify behavior of parse_iso_time() when it gets extra characters.
svn:r8520
|
|
Trivial whitespace cleanups.
svn:r8443
|
|
svn:r8434
|
|
now, we allow multiple servers with the same name in the routerlist even if that name is reserved, but we check whether names are reserved when we try to look up routers by nickname. This is a minor security fix. This makes router_add_to_routerlist O(1). This is a backport candidate.
svn:r8433
|
|
prediction for NULL returns, and skip the malloc(0) check on platforms where malloc(0) returns a pointer.
svn:r8431
|
|
crypto_pk_cmp_keys(); speed up find_whitespace a lot (8x for me) by using a switch statement. This should speed parsing a lot of routers at once by a lot.
svn:r8430
|
|
svn:r8427
|
|
svn:r8358
|
|
svn:r8357
|
|
Fix bug 327 (part 2): Cast char to unsigned char before passing to toupper/tolower. (Follow the same idiom as with isupper and friends, in case we run into the same problem on SGI or whereever it was.)
svn:r8310
|
|
Interesting how much a ! can change the behavior of an assert.
svn:r6962
|
|
Add a utility function to verify that a string has been through strlower.
svn:r6959
|
|
svn:r6816
|
|
macro (we already need this).
svn:r6810
|
|
the node operator, since he can't do anything about it.
svn:r6733
|
|
svn:r6640
|
|
svn:r6635
|
|
svn:r6579
|
|
printable. Take that, locales.
svn:r6578
|