Age | Commit message (Collapse) | Author |
|
|
|
About 860 doxygen-less things remain in 0.2.2
|
|
Conflicts:
src/common/test.h
src/or/test.c
|
|
|
|
Conflicts:
src/common/memarea.c
src/or/or.h
src/or/rendclient.c
|
|
It's all too easy in C to convert an unsigned value to a signed one,
which will (on all modern computers) give you a huge signed value. If
you have a size_t value of size greater than SSIZE_T_MAX, that is way
likelier to be an underflow than it is to be an actual request for
more than 2gb of memory in one go. (There's nothing in Tor that
should be trying to allocate >2gb chunks.)
|
|
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/; }'
|
|
Conflicts:
src/common/test.h
src/or/test.c
|
|
|
|
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.
|
|
|
|
The trick is that we should assert that our next_mem pointer has not
run off the end of the array _before_ we realign the pointer, since
doing that could take us over the end... but only if we're on a system
where malloc() gives us ram in increments smaller than sizeof(void*).
|
|
This might detect some possible causes of bug 930, and will at least
make sure we aren't doing some dumb memory-corruption stuff with the heap
and router-parsing.
|
|
|
|
|
|
unmapped ram, but you also must not copy it. From lark.
svn:r19095
|
|
Bug was harmless for now, I think.
svn:r19094
|
|
svn:r19074
|
|
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
|
|
svn:r17741
|
|
svn:r17739
|
|
svn:r17734
|
|
comments so that they will get recognized as doxygen.
svn:r17729
|
|
svn:r17662
|
|
thing.
svn:r17195
|
|
Oops. Fix one last memarea freelist bug.
svn:r14322
|
|
Fix behavior of memarea freelists.
svn:r14321
|
|
Oops. It turns out that there are some subtle differences between >= and <.
svn:r14320
|
|
Use a freelist to hold a few recent memarea chunks. We do a kazillion memarea allocs and frees; that cant be good for us.
svn:r14319
|
|
Add code to debug memory area size. Use results of this code to set a couple of area sizes more sanely.
svn:r14201
|
|
Fix whitespace
svn:r14197
|
|
Add new stacklike, free-all-at-once memory allocation strategy. Use it when parsing directory information. This helps parsing speed, and may well help fragmentation some too. hidden-service-related stuff still uses the old tokenizing strategies.
svn:r14194
|