aboutsummaryrefslogtreecommitdiff
path: root/src/or/buffers.c
Commit message (Expand)AuthorAge
* Triage the XXX022 and XXX021 comments remaining in the code•••Remove some, postpone others, leave some alone. Now the only remaining XXX022s are ones that seem important to fix or investigate. Nick Mathewson2011-03-25
* Fix another instance of "128" in buffers.c. More bug2330.Nick Mathewson2011-01-15
* Pull up more data when parsing socks messages•••Previously, we only looked at up to 128 bytes. This is a bad idea since socks messages can be at least 256+x bytes long. Now we look at up to 512 bytes; this should be enough for 0.2.2.x to handle all valid SOCKS messages. For 0.2.3.x, we can think about handling trickier cases. Fixes 2330. Bugfix on 0.2.0.16-alpha. Nick Mathewson2011-01-10
* Merge remote branch 'origin/maint-0.2.1' into maint-0.2.2•••Conflicts: src/common/test.h src/or/test.c Nick Mathewson2011-01-03
|\
| * Bump copyright statements to 2011Nick Mathewson2011-01-03
* | Merge remote branch fix_security_bug_021 into fix_security_bug_022•••Conflicts: src/common/memarea.c src/or/or.h src/or/rendclient.c Nick Mathewson2010-12-15
|\|
| * Make payloads into uint8_t.•••This will avoid some signed/unsigned assignment-related bugs. Nick Mathewson2010-12-15
| * Disable logging to control port connections in buf_shrink_freelists.•••If buf_shrink_freelists calls log_warn for some reason, we don't want the log call itself to throw buf_shrink_freelists further off the rails. Robert Ransom2010-11-12
| * Move the original log_info call out of the core of buf_shrink_freelists.•••Sending a log message to a control port can cause Tor to allocate a buffer, thereby changing the length of the freelist behind buf_shrink_freelists's back, thereby causing an assertion to fail. Fixes bug #1125. Robert Ransom2010-11-12
* | Move controller event for socks warning into log_unsafe_socks_warningNick Mathewson2010-11-15
* | Rate-limit unsafe socks warning•••Pick 5 seconds as the limit. 5 seconds is a compromise here between making sure the user notices that the bad behaviour is (still) happening and not spamming their log too much needlessly (the log message is pretty long). We also keep warning every time if safesocks is specified, because then the user presumably wants to hear about every blocked instance. (This is based on the original patch by Sebastian, then backported to 0.2.2 and with warnings split into their own function.) Sebastian Hahn2010-11-15
* | Avoid perma-blocking the controller on bug in shrink_freelist•••In all likelihood, this bug would make Tor assert, but if it doesn't, let's not have two bugs. Nick Mathewson2010-11-12
* | Disable logging to control port connections in buf_shrink_freelists.•••If buf_shrink_freelists calls log_warn for some reason, we don't want the log call itself to throw buf_shrink_freelists further off the rails. Robert Ransom2010-11-12
* | Move the original log_info call out of the core of buf_shrink_freelists.•••Sending a log message to a control port can cause Tor to allocate a buffer, thereby changing the length of the freelist behind buf_shrink_freelists's back, thereby causing an assertion to fail. Fixes bug #1125. Robert Ransom2010-11-12
* | A start at a patch for bug 1943 (alignment issues)Roger Dingledine2010-09-20
* | Make buf_shrink_freelists warn, not crash, when n_to_skip is too high•••This mitigates bug 1125, but doesn't fix its root cause (whatever that is). Nick Mathewson2010-08-10
* | Create reasons.hSebastian Hahn2010-07-27
* | Create control.hSebastian Hahn2010-07-27
* | Create connection_or.hSebastian Hahn2010-07-27
* | Create connection_edge.hSebastian Hahn2010-07-27
* | Create config.hSebastian Hahn2010-07-27
* | Create buffers.hSebastian Hahn2010-07-27
* | Rename log.h to torlog.h•••This should make us conflict less with system files named "log.h". Yes, we shouldn't have been conflicting with those anyway, but some people's compilers act very oddly. The actual change was done with one "git mv", by editing Makefile.am, and running find . -name '*.[ch]' | xargs perl -i -pe 'if (/^#include.*\Wlog.h/) {s/log.h/torlog.h/; }' Nick Mathewson2010-07-09
* | Add option to not warn when getting an IP instead of hostnameSebastian Hahn2010-06-07
* | Merge remote branch 'origin/maint-0.2.1'•••Conflicts: src/common/test.h src/or/test.c Nick Mathewson2010-02-27
|\|
| * Update Tor Project copyright yearsNick Mathewson2010-02-27
* | Merge branch 'safelogging2'•••Conflicts: ChangeLog Nick Mathewson2009-12-15
|\ \
| * | Refactor the safe_str_*() API to make more sense.•••The new rule is: safe_str_X() means "this string is a piece of X information; make it safe to log." safe_str() on its own means "this string is a piece of who-knows-what; make it safe to log". Nick Mathewson2009-12-15
| * | Allow SafeLogging to exclude client related informationSebastian Hahn2009-12-12
* | | *_free functions now accept NULL•••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. Sebastian Hahn2009-12-12
|/ /
* | Include util.h and log.h as relative paths.•••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.) Nathan Freitas2009-09-29
* | Merge commit 'public/socks-client'•••Resolved conflict in: src/or/or.h Nick Mathewson2009-08-26
|\ \
| * | Move SOCKS reason-decoding switches into reasons.cNick Mathewson2009-06-19
| * | Enable Tor to connect through SOCKS 4/5 proxies•••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. Christopher Davis2009-06-19
| |/
* / fix comments and other typosRoger Dingledine2009-07-13
|/
* Spell-check Tor.Nick Mathewson2009-05-27
* Better debugging output for bug 977 case.•••(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.) Nick Mathewson2009-05-12
* Update copyright to 2009.Karsten Loesing2009-05-04
* Remove svn $Id$s from our source, and remove tor --version --version.•••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 Nick Mathewson2009-01-04
* Remove some code that is #ifdefed out, and that we no longer seem to use, if ...•••svn:r17827 Nick Mathewson2008-12-30
* Fix most DOCDOCs remaining and/or added by redox.•••svn:r17734 Nick Mathewson2008-12-22
* Downlgrade tweak, and answer lots of XXX021s. No actual code fixes in this p...•••svn:r17686 Nick Mathewson2008-12-18
* Remove fixed xxx020s; downgrade unfixed ones.•••(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 Nick Mathewson2008-12-18
* Use ctags and a python script to find identifiers that are never used anywher...•••svn:r17651 Nick Mathewson2008-12-17
* Apparently sparc64 is way more strict about uint16_t access alignment than I ...•••svn:r17262 Nick Mathewson2008-11-12
* Patch from mwenge: update TrackHostExits mapping expiry times when the mappin...•••svn:r17004 Nick Mathewson2008-09-29
* read_to_buf should take an int *error_socket and return it.•••svn:r16909 Roger Dingledine2008-09-14
* Refactor unit test macros and tor_free_all() logic a bit so as to make it eas...•••svn:r16816 Nick Mathewson2008-09-09
* handle ipv6 in socks5 requests.•••svn:r16476 Nick Mathewson2008-08-08
* When a struct ends with char a[1], the size of all earlier members of the str...•••svn:r16302 Nick Mathewson2008-07-31