Nick Mathewson
3bc235d979
Fix a strdup() of uninitialized buffer in addressmap_get_virtual_address
...
Partial revert of 22f723e4a3
.
Bugfix on 0.2.3.0-alpha
2011-01-06 13:40:27 -05:00
Nick Mathewson
d4b265d692
Merge remote branch 'origin/maint-0.2.2'
2011-01-06 13:38:08 -05:00
Nick Mathewson
d6329eda96
Merge remote branch 'origin/maint-0.2.1' into maint-0.2.2
2011-01-06 13:37:39 -05:00
Nick Mathewson
d6b49c55c5
Merge branch 'bug2328_021' into maint-0.2.1
2011-01-06 13:36:29 -05:00
Nick Mathewson
2008728df7
Notice a little faster if we're running out of virtual addresses
...
We were not decrementing "available" every time we did
++next_virtual_addr in addressmap_get_virtual_address: we left out the
--available when we skipped .00 and .255 addresses.
This didn't actually cause a bug in most cases, since the failure mode
was to keep looping around the virtual addresses until we found one,
or until available hit zero. It could have given you an infinite loop
rather than a useful message, however, if you said "VirtualAddrNetwork
127.0.0.255/32" or something broken like that.
Spotted by cypherpunks
2011-01-06 13:29:36 -05:00
Nick Mathewson
eabddd8ca0
Handle a NULL return from addressmap_get_virtual_address
...
Fix for bug 2328; bugfix on 0.1.2.1-alpha; bug found by doorss.
2011-01-05 16:36:48 -05:00
Nick Mathewson
31d6659d97
Fix a double-counting bug in addrmap_get_virtual_address
...
We were decrementing "available" twice for each in-use address we ran
across. This would make us declare that we ran out of virtual
addresses when the address space was only half full.
2011-01-05 16:02:43 -05:00
Nick Mathewson
fd8f7991e4
Merge remote branch 'origin/maint-0.2.2'
...
Conflicts:
Makefile.am
2011-01-03 17:25:30 -05:00
Nick Mathewson
0e9d7f105d
Merge remote branch 'origin/maint-0.2.1' into maint-0.2.2
2011-01-03 17:24:32 -05:00
Nick Mathewson
e4320689cc
Note that Tor requires Automake 1.7. Fixes bug 2305
2011-01-03 17:24:16 -05:00
Nick Mathewson
a87a55a9b6
Merge remote branch 'origin/maint-0.2.2'
2011-01-03 15:55:41 -05:00
Nick Mathewson
f089804332
Merge remote branch 'origin/maint-0.2.1' into maint-0.2.2
2011-01-03 15:31:19 -05:00
Nick Mathewson
e365aee971
Avoid assertion on read_file_to_str() with size==SIZE_T_CEILING-1
...
Spotted by doors, fixes bug 2326.
2011-01-03 15:30:11 -05:00
Nick Mathewson
a96b46570f
Merge remote branch 'origin/maint-0.2.2'
2011-01-03 15:16:36 -05:00
Nick Mathewson
cee433d751
Merge remote branch 'origin/maint-0.2.1' into maint-0.2.2
2011-01-03 15:15:54 -05:00
Nick Mathewson
e09ab69703
Check size against SIZE_T_CEILING in realloc too.
...
Fixes bug 2324.
2011-01-03 15:15:27 -05:00
Nick Mathewson
0489f7e004
Merge remote branch 'origin/maint-0.2.2'
2011-01-03 13:19:10 -05:00
Nick Mathewson
27cefef3a2
Merge remote branch 'origin/maint-0.2.1' into maint-0.2.2
2011-01-03 13:18:33 -05:00
Nick Mathewson
8932753169
Merge remote branch 'rransom/bug2327-v2'
2011-01-03 13:07:43 -05:00
Nick Mathewson
394a6bf4cd
Merge remote branch 'origin/maint-0.2.2'
2011-01-03 12:47:58 -05:00
Nick Mathewson
bb5f99d4df
Merge remote branch 'sebastian/bug2314' into maint-0.2.2
2011-01-03 12:47:14 -05:00
Nick Mathewson
5c09431cc7
Never include pthread.h when building for Windows.
...
On Windows, we never use pthreads, since it doesn't usually exist,
and when it does it tends to be a little weirdly-behaved. But some
mingw installations have a pthreads installed, so autoconf detects
pthread.h and tells us about it. This would make us include
pthread.h, which could make for trouble when the iffy pthread.h
tried to include config.h.
This patch changes compat.h so that we never include pthread.h on
Windows. Fixes bug 2313; bugfix on 0.1.0.1-rc.
2011-01-03 12:45:13 -05:00
Nick Mathewson
1e295666d9
Tweak GETINFO process/* code: no need to print an int as anything other than %d
2011-01-03 12:11:09 -05:00
Damian Johnson
8708ffa655
Implementing getinfo options for the pid, uid, user, and descriptor limit as per proposal 173.
2011-01-03 12:04:56 -05:00
Nick Mathewson
93a6d53ef3
Add a note about _compare_int not doing overflow right
2011-01-03 12:03:21 -05:00
Nick Mathewson
57a86fd433
Fix a wide line in rephist.c
2011-01-03 12:03:04 -05:00
Nick Mathewson
c5382255bd
Merge remote branch 'origin/maint-0.2.2'
2011-01-03 12:00:59 -05:00
Nick Mathewson
40ef9087cf
Fix a function formatting warning in rephist.c
2011-01-03 11:59:47 -05:00
Nick Mathewson
66039d9843
Merge remote branch 'origin/maint-0.2.1' into maint-0.2.2
...
Conflicts:
src/or/routerparse.c
2011-01-03 11:58:59 -05:00
Nick Mathewson
989db9aed1
fix whitespace issues
2011-01-03 11:57:42 -05:00
Nick Mathewson
a1ceee193b
Bump copyright statements to 2011 (master)
2011-01-03 11:55:01 -05:00
Nick Mathewson
8730884ebe
Merge remote branch 'origin/maint-0.2.2'
2011-01-03 11:53:28 -05:00
Nick Mathewson
30b3475e6d
Bump copyright statements to 2011 (0.2.2)
2011-01-03 11:52:09 -05:00
Nick Mathewson
f1de329e78
Merge remote branch 'origin/maint-0.2.1' into maint-0.2.2
...
Conflicts:
src/common/test.h
src/or/test.c
2011-01-03 11:51:17 -05:00
Nick Mathewson
1a07348a50
Bump copyright statements to 2011
2011-01-03 11:50:39 -05:00
Robert Ransom
305ba230fe
Don't throw away incomplete SOCKS proxy responses.
...
Introduced in 9796b9bfa6
.
2010-12-29 05:55:45 -08:00
Robert Ransom
524fdeeb1e
Use evbuffer_pullup properly in fetch_from_evbuffer_socks_client.
...
evbuffer_pullup does nothing and returns NULL if the caller asks it to
linearize more data than the buffer contains.
Introduced in 9796b9bfa6
.
Reported by piebeer; fixed with help from doors.
2010-12-29 05:52:09 -08:00
Sebastian Hahn
9ecf133686
Fix compile wanrings revealed by gcc 4.5 on mingw
2010-12-27 09:47:41 +01:00
Sebastian Hahn
da91900135
Disable stats requiring geoip info if we have none
...
In other parts of the code we will otherwise attempt to collect these
statistics, and that will lead to crashes.
2010-12-22 08:34:41 +01:00
Roger Dingledine
d97be399c9
Correct a broken faq link in the INSTALL file
2010-12-22 00:54:29 -05:00
Nick Mathewson
00775ab4ed
Merge remote branch 'karsten/dirreq-stats-default'
...
Conflicts:
src/or/config.c
2010-12-21 16:01:00 -05:00
Nick Mathewson
95e21779a3
Merge remote branch 'origin/maint-0.2.2'
2010-12-21 15:53:32 -05:00
Nick Mathewson
e895919b17
Merge remote branch 'public/bug2060' into maint-0.2.2
2010-12-21 15:53:03 -05:00
Nick Mathewson
0a3b7f1471
Merge remote branch 'origin/maint-0.2.2'
2010-12-21 15:50:09 -05:00
Nick Mathewson
cdbd6d0fe8
Merge remote branch 'rransom/bug2190_the_hard_way' into maint-0.2.2
2010-12-21 15:48:14 -05:00
Nick Mathewson
029ca804b2
Merge remote branch 'origin/maint-0.2.1' into maint-0.2.2
2010-12-21 15:48:06 -05:00
Nick Mathewson
69771bb5fc
Merge remote branch 'public/bug2190_021' into maint-0.2.1
2010-12-21 15:44:50 -05:00
Roger Dingledine
601b6a8099
remove duplicate (wrong) changelog entry
2010-12-20 09:14:11 -05:00
Roger Dingledine
539814e0c9
forward-port the two recent changelog entries
2010-12-20 07:49:22 -05:00
Roger Dingledine
c79427a992
Merge branch 'maint-0.2.2'
2010-12-19 22:08:42 -05:00