aboutsummaryrefslogtreecommitdiff
path: root/src/common/util.c
Commit message (Expand)AuthorAge
* r18336@catbus: nickm | 2008-02-21 09:33:15 -0500••• Patch from Sebastian Hahn: remove obsolete timeval manipulation functions. svn:r13653 Nick Mathewson2008-02-21
* r14185@tombo: nickm | 2008-02-15 18:05:54 -0500••• Replace the hefty tor_strpartition with a simple function to replace its only (trivial) use. svn:r13532 Nick Mathewson2008-02-15
* doxygen and other cleanups•••svn:r13440 Roger Dingledine2008-02-09
* r17967@catbus: nickm | 2008-02-07 11:44:51 -0500••• Fix some warnings identified by building with -D_FORTIFY_SOURCE=2. Remove a redundant (and nuts) definition of _FORTIFY_SOURCE from eventdns.c. svn:r13424 Nick Mathewson2008-02-08
* Update some copyright notices: it is now 2008.•••svn:r13412 Nick Mathewson2008-02-07
* r17947@catbus: nickm | 2008-02-06 11:57:53 -0500••• Fix a bunch of DOCDOC items; document the --quiet flag; refactor a couple of XXXX020 items. svn:r13405 Nick Mathewson2008-02-06
* r17903@catbus: nickm | 2008-02-05 14:40:03 -0500••• Remove some dead code; fix some XXX020s; turn some XXX020s into XXXX_IP6s (i.e., "needs to be fixed when we add ipv6 support"). svn:r13382 Nick Mathewson2008-02-05
* r13971@tombo: nickm | 2008-01-30 14:25:25 -0500••• Write a new autoconf macro to test whether a function is declared. It is suboptimal and possibly buggy in some way, but it seems to work for me. use it to test for a declaration of malloc_good_size, so we can workaround operating systems (like older OSX) that have the function in their libc but do not deign to declare it in their headers. Should resolve bug 587. svn:r13339 Nick Mathewson2008-01-30
* r17624@catbus: nickm | 2008-01-15 00:42:01 -0500••• Fixes to more anonymously-reported typos and logic errors. svn:r13136 Nick Mathewson2008-01-15
* <tup> tor segfaults when reading a config value that contains a malformed•••escape sequence; this patch fixes it svn:r13086 Roger Dingledine2008-01-09
* r17472@catbus: nickm | 2008-01-05 22:10:19 -0500••• Another test for the increasingly bad check-spaces style checker to check: #else\n#if is almost a sure sign of a failure to use #elif. Fortunately, we only did that 3 times. svn:r13039 Nick Mathewson2008-01-06
* r17467@catbus: nickm | 2008-01-05 19:54:20 -0500••• fix whitespace svn:r13035 Nick Mathewson2008-01-06
* r15787@tombo: nickm | 2008-01-02 01:59:07 -0500••• Allow config values in quotes to contain special characters, with full C escape syntax. With tests. Addresses bug 557. svn:r13021 Nick Mathewson2008-01-02
* r15786@tombo: nickm | 2008-01-02 01:11:51 -0500••• Push the strdups used for parsing configuration lines into parse_line_from_string(). This will make it easier to parse more complex value formats, which in turn will help fix bug 557 svn:r13020 Nick Mathewson2008-01-02
* r15779@tombo: nickm | 2008-01-01 23:43:24 -0500••• Use reference-counting to avoid allocating a zillion little addr_policy_t objects. (This is an old patch that had been sitting on my hard drive for a while.) svn:r13017 Nick Mathewson2008-01-02
* r17423@catbus: nickm | 2007-12-28 01:54:42 -0500••• Fix compilation with dmalloc svn:r12998 Nick Mathewson2007-12-28
* r15691@tombo: nickm | 2007-12-25 18:13:54 -0500••• New, slightly esoteric function, tor_malloc_roundup(). While tor_malloc(x) allocates x bytes, tor_malloc_roundup(&x) allocates the same size of chunk it would use to store x bytes, and sets x to the usable size of that chunk. svn:r12981 Nick Mathewson2007-12-26
* clean up copyrights, and assign 2007 copyrights to The Tor Project, Inc•••svn:r12786 Roger Dingledine2007-12-12
* r15106@tombo: nickm | 2007-12-04 00:08:35 -0500••• Change tor_addr_t to be a tagged union of in_addr and in6_addr, not of sockaddr_in and sockaddr_in6. It's hardly used in the main code as it is, but let's get it right before it gets popular. svn:r12660 Nick Mathewson2007-12-04
* r16879@catbus: nickm | 2007-11-30 14:07:05 -0500••• Log *useful* information from dmalloc. (Unfreed pointers, not total of freed and unfreed). svn:r12616 Nick Mathewson2007-11-30
* make dmalloc 5.4.2 work again too•••svn:r12615 Roger Dingledine2007-11-30
* r16874@catbus: nickm | 2007-11-30 13:11:09 -0500••• When using dmalloc, dump the top ten memory consumers to the _DMALLOC_ logfile when we get a SIGUSR1. Hint: it is not what you would think. svn:r12613 Nick Mathewson2007-11-30
* cleanups while i was trying to figure out how it worked•••svn:r12612 Roger Dingledine2007-11-30
* r16279@catbus: nickm | 2007-10-30 11:14:29 -0400••• Improved skew reporting: "You are 365 days in the duture" is more useful than "You are 525600 minutes in the future". Also, when we get something that proves we are at least an hour in the past, tell the controller "CLOCK_SKEW MIN_SKEW=-3600" rather than just "CLOCK_SKEW" svn:r12283 Nick Mathewson2007-10-30
* r16100@catbus: nickm | 2007-10-24 11:33:52 -0400••• Make tor_mmap_file() set and preserve errno in a useful way. svn:r12153 Nick Mathewson2007-10-24
* bugfix on r11301:•••Fix a minor memory leak whenever we wrote out a file. Bugfix on 0.2.0.7-alpha. svn:r11863 Roger Dingledine2007-10-11
* bugfix on r11298:•••Fix a minor memory leak whenever we parse guards from our state file. Bugfix on 0.2.0.7-alpha. svn:r11862 Roger Dingledine2007-10-11
* r15530@catbus: nickm | 2007-10-04 12:16:27 -0400••• Add a bunch of function documentation; clean up a little code; fix some XXXXs; tag the nonsensical EXTRAINFO_PURPOSE_GENERAL as nonsesnse; note another bit of "do not cache special routers" code to nuke. svn:r11761 Nick Mathewson2007-10-04
* r14363@Kushana: nickm | 2007-09-08 16:25:45 -0400••• Another round of whitespeace fixes. svn:r11407 Nick Mathewson2007-09-08
* r14359@Kushana: nickm | 2007-09-08 15:07:17 -0400••• Add some generic skew-and-tolerance functions so we can handle time more sanely. svn:r11406 Nick Mathewson2007-09-08
* r14869@catbus: nickm | 2007-08-31 08:49:26 -0400••• Fix a segfault in expand_filename("~"). Found by lindi. svn:r11332 Nick Mathewson2007-08-31
* r14832@catbus: nickm | 2007-08-29 15:00:27 -0400••• Use (and debug) new file-writing functions in order to simplify code that formerly built big strings in RAM. svn:r11301 Nick Mathewson2007-08-29
* r14831@catbus: nickm | 2007-08-29 14:17:42 -0400••• Refactor write_chunks_to_file_impl: break out the "pick a temporary name if it makes sense, and open the right filename" logic and the "close the file and unlink or rename if necessary" logic. This will let us write big files in a smarter way than "Build a big string" or "make a list of chunks", once we get around to using it. svn:r11300 Nick Mathewson2007-08-29
* r14227@Kushana: nickm | 2007-08-27 11:33:28 -0400••• Add a new ClientDNSRejectInternalAddresses option (default: on) to refuse to believe that any address can map to or from an internal address. This blocks some kinds of potential browser-based attacks, especially on hosts using DNSPort. Also clarify behavior in some comments. Backport candiate? svn:r11287 Nick Mathewson2007-08-27
* Handle unexpected whitespace better in malformed descriptors. Bug•••found using Benedikt Boss's new Tor fuzzer! Bugfix on 0.2.0.x. svn:r11229 Roger Dingledine2007-08-20
* r14634@catbus: nickm | 2007-08-17 16:43:49 -0400••• Try to fix bug 482: do not rely on s6_addr16 or s6_addr32 on MSVC. How ugly. svn:r11155 Nick Mathewson2007-08-17
* r14051@Kushana: nickm | 2007-08-15 15:55:36 -0400••• Fix an XXXX020 and a few DOCDOCs. svn:r11127 Nick Mathewson2007-08-15
* r14091@catbus: nickm | 2007-08-08 01:13:17 -0400••• Fix an annoying warning on OpenBSD: only include malloc.h if we are using it. svn:r11059 Nick Mathewson2007-08-08
* r13872@Kushana: nickm | 2007-07-31 08:27:54 -0700••• Rename IN4_ADDR and IN6_ADDR to try to avoid conflicting with Windows definitions. This may fix the windows build. svn:r11011 Nick Mathewson2007-08-01
* r13871@Kushana: nickm | 2007-07-31 08:10:58 -0700••• Fix warning aobut unused parameter on platforms without mallinfo. svn:r11010 Nick Mathewson2007-08-01
* r14024@catbus: nickm | 2007-07-30 14:13:58 -0400••• Glibc (and maybe others) define a mallinfo() that can be used to see how the platform malloc is acting inside. When we have it, dump its output on dumpmemusage(). svn:r10996 Nick Mathewson2007-07-30
* r14015@catbus: nickm | 2007-07-30 13:18:05 -0400••• Add missing code documentation in src/common svn:r10991 Nick Mathewson2007-07-30
* r13964@catbus: nickm | 2007-07-28 22:55:10 -0400••• Change "IN_ADDR" macro to "IN4_ADDR" in an attempt to fix mingw compilation svn:r10963 Nick Mathewson2007-07-29
* r13836@catbus: nickm | 2007-07-19 15:43:04 -0400••• Some older GCCs think that iph4 could be used uninitialized. Fix that. svn:r10882 Nick Mathewson2007-07-19
* r13834@catbus: nickm | 2007-07-19 15:40:42 -0400••• Another patch from croup: drop support for address masks that do not correspond to bit prefixes. Nobody has used this for a while, and we have given warnings for a long time. svn:r10881 Nick Mathewson2007-07-19
* r13827@catbus: nickm | 2007-07-19 14:42:25 -0400••• Merge in some generic address manipulation code from croup. Needs some work. svn:r10880 Nick Mathewson2007-07-19
* r13788@catbus: nickm | 2007-07-16 14:26:25 -0400••• Patch from croup: rewrite the logic of get_next_token() to do the right thing with input that ends at weird places, or aligns with block boundaries after mmap. should fix bug 455. Needs fuzzing. svn:r10847 Nick Mathewson2007-07-16
* r13687@catbus: nickm | 2007-07-10 16:08:14 -0400••• Possible partial fix for bug 455: use eos logic everywhere. svn:r10786 Nick Mathewson2007-07-10
* r13239@catbus: nickm | 2007-06-04 11:30:37 -0400••• Fix the fix for bug 445: set umask properly. Also use open+fdopen rather than just umask+fopen, and create authority identity key with mode 400. svn:r10485 Nick Mathewson2007-06-04
* r13154@catbus: nickm | 2007-06-02 11:26:44 -0400••• Server-side support for If-Modified-Since in HTTP requsts for v1 stuff, and for network-status documents. svn:r10451 Nick Mathewson2007-06-02