aboutsummaryrefslogtreecommitdiff
path: root/src/or/buffers.c
Commit message (Collapse)AuthorAge
* *_free functions now accept NULLSebastian Hahn2009-12-12
| | | | | | | | Some *_free functions threw asserts when passed NULL. Now all of them accept NULL as input and perform no action when called that way. This gains us consistence for our free functions, and allows some code simplifications where an explicit null check is no longer necessary.
* Include util.h and log.h as relative paths.Nathan Freitas2009-09-29
| | | | | | | This shouldn't be necessary, but apparently the Android cross-compiler doesn't respect -I as well as it should. (-I is supposed to add to the *front* of the search path. Android's gcc wrapper apparently likes to add to the end. This is broken, but we need to work around it.)
* Merge commit 'public/socks-client'Nick Mathewson2009-08-26
|\ | | | | | | | | Resolved conflict in: src/or/or.h
| * Move SOCKS reason-decoding switches into reasons.cNick Mathewson2009-06-19
| |
| * Enable Tor to connect through SOCKS 4/5 proxiesChristopher Davis2009-06-19
| | | | | | | | | | | | Added a sanity check in config.c and a check in directory.c directory_initiate_command_rend() to catch any direct connection attempts when a socks proxy is configured.
* | fix comments and other typosRoger Dingledine2009-07-13
|/
* Spell-check Tor.Nick Mathewson2009-05-27
|
* Better debugging output for bug 977 case.Nick Mathewson2009-05-12
| | | | | | (Don't crash immediately if we have leftover chunks to free after freeing chunks in a buffer freelist; instead log a debugging message that might help.)
* Update copyright to 2009.Karsten Loesing2009-05-04
|
* Remove svn $Id$s from our source, and remove tor --version --version.Nick Mathewson2009-01-04
| | | | | | | | The subversion $Id$ fields made every commit force a rebuild of whatever file got committed. They were not actually useful for telling the version of Tor files in the wild. svn:r17867
* Remove some code that is #ifdefed out, and that we no longer seem to use, if ↵Nick Mathewson2008-12-30
| | | | | | we ever did. svn:r17827
* Fix most DOCDOCs remaining and/or added by redox.Nick Mathewson2008-12-22
| | | | svn:r17734
* Downlgrade tweak, and answer lots of XXX021s. No actual code fixes in this ↵Nick Mathewson2008-12-18
| | | | | | patch. svn:r17686
* Remove fixed xxx020s; downgrade unfixed ones.Nick Mathewson2008-12-18
| | | | | | (The unfixed ones are being downgraded to regular XXXs mainly on the rationale that they don't seem to be exploding Tor, and they were apparently not showstoppers for 0.2.0.x-final.) svn:r17682
* Use ctags and a python script to find identifiers that are never used ↵Nick Mathewson2008-12-17
| | | | | | anywhere, and remove the ones that we really want gone. svn:r17651
* Apparently sparc64 is way more strict about uint16_t access alignment than I ↵Nick Mathewson2008-11-12
| | | | | | had thought: it gave bus errors when messing with var-cell headers. Maybe this patch will fix bug 862. svn:r17262
* Patch from mwenge: update TrackHostExits mapping expiry times when the ↵Nick Mathewson2008-09-29
| | | | | | mappings are used, so that they expire a while after their last use, not a while after their creation. svn:r17004
* read_to_buf should take an int *error_socket and return it.Roger Dingledine2008-09-14
| | | | svn:r16909
* Refactor unit test macros and tor_free_all() logic a bit so as to make it ↵Nick Mathewson2008-09-09
| | | | | | easier to free memory on failing tests, in order to suppress scanner warnings and to make dmalloc() usable with tests. svn:r16816
* handle ipv6 in socks5 requests.Nick Mathewson2008-08-08
| | | | svn:r16476
* When a struct ends with char a[1], the size of all earlier members of the ↵Nick Mathewson2008-07-31
| | | | | | struct is _not_ sizeof(st)-1; compilers add alignment. Problem spotted by rovv. Backport candidate. svn:r16302
* Explain how my emacs setup works in the HACKING file. Someone else may care too.Nick Mathewson2008-06-13
| | | | svn:r15228
* r16171@tombo: nickm | 2008-06-11 13:47:41 -0400Nick Mathewson2008-06-11
| | | | | | | Lower number of syscalls used to write data to ordinary sockets through use of writev. Disabled till I have time to test it. svn:r15133
* cosmetic patch by Bernhard M. Wiedemann, so our comments followRoger Dingledine2008-05-04
| | | | | | | the socks5 protocol better svn:r14552
* forward-port r13799 and the 0.2.0.21-rc changelogRoger Dingledine2008-03-02
| | | | svn:r13808
* r14388@tombo: nickm | 2008-02-21 22:44:28 -0500Nick Mathewson2008-02-22
| | | | | | | More 64-to-32 fixes. svn:r13672
* r14371@tombo: nickm | 2008-02-21 16:13:18 -0500Nick Mathewson2008-02-21
| | | | | | | Fix all -Wshorten-64-to-32 warnings that appear on my macbook. svn:r13662
* r18286@catbus: nickm | 2008-02-20 21:10:33 -0500Nick Mathewson2008-02-21
| | | | | | | Fix a bug that kept buf_find_string_offset from finding a string at the very end of the buffer. Add a unit test for this. Also, do not save a pointer to a chunk that might get reallocated by buf_pullup(). svn:r13635
* r18283@catbus: nickm | 2008-02-20 18:58:31 -0500Nick Mathewson2008-02-20
| | | | | | | Fix assertion when searching for a string in an empty chunk. svn:r13634
* r18279@catbus: nickm | 2008-02-20 18:38:48 -0500Nick Mathewson2008-02-20
| | | | | | | Log message to try to detect error in buffers.c svn:r13633
* r18272@catbus: nickm | 2008-02-20 18:20:33 -0500Nick Mathewson2008-02-20
| | | | | | | add a flag to suppress overwriting the certificates file with new certificates, so we do not overwrite all certs when starting as an authority. svn:r13630
* r18267@catbus: nickm | 2008-02-20 16:57:45 -0500Nick Mathewson2008-02-20
| | | | | | | Suppress signed/unsigned comparison warnings in buffers.c svn:r13624
* r18264@catbus: nickm | 2008-02-20 12:48:21 -0500Nick Mathewson2008-02-20
| | | | | | | fix bufs in buf_pos_t implementation. svn:r13623
* r18255@catbus: nickm | 2008-02-20 11:44:55 -0500Nick Mathewson2008-02-20
| | | | | | | Add asserts and refactor some comparisons in order to fix some veracode-identified issues. Note a bug in buffers.c svn:r13618
* call a "number of characters" a size_t, not an intRoger Dingledine2008-02-19
| | | | svn:r13594
* r14181@tombo: nickm | 2008-02-15 16:48:17 -0500Nick Mathewson2008-02-15
| | | | | | | Fix all but 2 DOCDOC items; defer many XXX020s (particularly those where fixing them would fix no bugs at the risk of introducing some bugs). svn:r13529
* r18051@catbus: nickm | 2008-02-12 15:20:43 -0500Nick Mathewson2008-02-12
| | | | | | | Re-tune mempool parametes based on testing on peacetime: use smaller chuncks, free them a little more aggressively, and try very hard to concentrate allocations on fuller chunks. Also, lots of new documentation. svn:r13484
* r14063@tombo: nickm | 2008-02-08 15:48:32 -0500Nick Mathewson2008-02-08
| | | | | | | Add a bunch more code documentation; change the interface of fetch_var_cell_from_buf() so it takes the current link protocol into account and can't get confused by weird command bytes on v1 connections. svn:r13430
* Update some copyright notices: it is now 2008.Nick Mathewson2008-02-07
| | | | svn:r13412
* r17951@catbus: nickm | 2008-02-06 14:34:13 -0500Nick Mathewson2008-02-06
| | | | | | | Add more documentation; change the behavior of read_to_buf_tls to be more consistent. Note a longstanding problem with current read/write interfaces. svn:r13407
* r17947@catbus: nickm | 2008-02-06 11:57:53 -0500Nick Mathewson2008-02-06
| | | | | | | Fix a bunch of DOCDOC items; document the --quiet flag; refactor a couple of XXXX020 items. svn:r13405
* r17936@catbus: nickm | 2008-02-06 00:31:11 -0500Nick Mathewson2008-02-06
| | | | | | | Fix/downgrade some more XXX020s. svn:r13397
* r15890@tombo: nickm | 2008-01-12 17:19:51 -0500Nick Mathewson2008-01-13
| | | | | | | Add a --disable-buffer-freelists configure argument to build without buffer RAM chunk freelists, so we can benchmark the impact of this. svn:r13121
* r17467@catbus: nickm | 2008-01-05 19:54:20 -0500Nick Mathewson2008-01-06
| | | | | | | fix whitespace svn:r13035
* r15750@tombo: nickm | 2007-12-29 19:12:51 -0500Nick Mathewson2007-12-30
| | | | | | | Make HTTP-processing code in buffers.c faster: do not pull up 50K of text into the first chunk if the headers end earlier than that. svn:r13006
* r17433@catbus: nickm | 2007-12-29 12:35:57 -0500Nick Mathewson2007-12-29
| | | | | | | Incomplete code to avoid doing needless pull-ups on HTTP. Also, use memstr instead of strstr to find the content-length header. svn:r13005
* r15745@tombo: nickm | 2007-12-29 00:15:17 -0500Nick Mathewson2007-12-29
| | | | | | | Try even harder not to allocate chunks bigger than MAX_CHUNK_ALLOC. svn:r13003
* r17426@catbus: nickm | 2007-12-28 21:12:29 -0500Nick Mathewson2007-12-29
| | | | | | | Remove need for buf_pullup in fetch_line_from_buf(). svn:r13002
* r17410@catbus: nickm | 2007-12-27 09:20:27 -0500Nick Mathewson2007-12-27
| | | | | | | Exciting new entries in buf_dump_freelist_sizes() to make sure our freelist sizes are reasonable. svn:r12996
* r17407@catbus: nickm | 2007-12-27 00:18:31 -0500Nick Mathewson2007-12-27
| | | | | | | Fix windows compile error svn:r12995