Roger Dingledine
|
50a314c931
|
int is not necessarily the same size as size_t
svn:r3079
|
2004-12-05 11:58:30 +00:00 |
|
Roger Dingledine
|
32e74d3525
|
fix comment
svn:r3077
|
2004-12-04 13:58:34 +00:00 |
|
Nick Mathewson
|
a980446d0c
|
Be more proactive about noticing underflows: size_t values greater than 0x800...00 are likely to be trouble.
svn:r3064
|
2004-12-02 04:33:01 +00:00 |
|
Nick Mathewson
|
41ba4575b3
|
Fix windows build.
svn:r3053
|
2004-12-01 03:51:59 +00:00 |
|
Nick Mathewson
|
b457cfb5eb
|
Spell-check strings and comments
svn:r3052
|
2004-12-01 03:48:14 +00:00 |
|
Nick Mathewson
|
6e88abf418
|
If we are using select, make sure we stay within FD_SETSIZE.
svn:r3051
|
2004-12-01 03:15:59 +00:00 |
|
Roger Dingledine
|
7a8c1ca1e4
|
a few minor tweaks
svn:r3041
|
2004-11-30 08:54:08 +00:00 |
|
Nick Mathewson
|
f19e9b8577
|
doxygen uses backslashes, not forward-slashes
svn:r3033
|
2004-11-30 06:17:35 +00:00 |
|
Nick Mathewson
|
a3477223de
|
clarify why strlcpy is safe in truncated log messages
svn:r3032
|
2004-11-30 06:15:06 +00:00 |
|
Nick Mathewson
|
ad7db5e43a
|
Add casei versions of strcmpstart/strcmpend
svn:r3026
|
2004-11-30 03:10:56 +00:00 |
|
Nick Mathewson
|
7fbd297532
|
Suggestion from weasel: Make tor --version --version dump the cvs Id of every file.
svn:r3019
|
2004-11-29 22:25:31 +00:00 |
|
Nick Mathewson
|
b6b07d1d98
|
Remove needless -2 in log code. This was not an underflow risk, sinze we only call format_msg from one place, where buf_len==10024
svn:r3017
|
2004-11-29 20:39:55 +00:00 |
|
Roger Dingledine
|
671a2de762
|
clean up the previous underflow check, and also point out
yet another one that may be a problem. nick?
svn:r3016
|
2004-11-29 08:40:24 +00:00 |
|
Nick Mathewson
|
eccfe23a21
|
Disallow NDEBUG. It is very stupid.
svn:r3012
|
2004-11-29 07:22:57 +00:00 |
|
Roger Dingledine
|
531c060b36
|
fix integer underflow in tor_vsnprintf()
(probably exploitable)
svn:r3011
|
2004-11-29 06:49:04 +00:00 |
|
Roger Dingledine
|
185f047450
|
prevent integer underflow
(not currently exploitable, ilja and i think)
svn:r3010
|
2004-11-29 06:43:21 +00:00 |
|
Roger Dingledine
|
22727b4edc
|
wrong is ok, and right is fine, but in between is apparently
totally unacceptable to me.
svn:r3005
|
2004-11-28 11:39:53 +00:00 |
|
Nick Mathewson
|
f7c6ad065e
|
correct multiple internal spaces
svn:r3004
|
2004-11-28 09:14:07 +00:00 |
|
Nick Mathewson
|
6f5dbefa7e
|
Normalize space: add one between every control keyword and control clause.
svn:r3003
|
2004-11-28 09:05:49 +00:00 |
|
Nick Mathewson
|
32651dd108
|
connect() on win32 can do more things than we thought?
svn:r2999
|
2004-11-28 05:58:55 +00:00 |
|
Nick Mathewson
|
0702179d28
|
Very oops. make windows nonblocking sockets nonblocking
svn:r2998
|
2004-11-28 05:57:18 +00:00 |
|
Nick Mathewson
|
f77ff938b7
|
remember; tor_socket_errno has side effects!
svn:r2997
|
2004-11-28 05:48:02 +00:00 |
|
Roger Dingledine
|
7c9a707900
|
remove emacs droppings, since nick says he doesn't need them anymore
svn:r2989
|
2004-11-26 04:00:55 +00:00 |
|
Peter Palfrader
|
f2a96ce1fe
|
Flush the logfd after we print "Tor opening log file", so we don't see those messages days later
svn:r2980
|
2004-11-24 08:42:06 +00:00 |
|
Nick Mathewson
|
cd70264377
|
Clean up some logging and interfaces
svn:r2945
|
2004-11-23 00:08:26 +00:00 |
|
Nick Mathewson
|
22dba27d8d
|
Normalize a few more kinds of whitespace. We now dislike:
- func (args)
- if (x){
This doesn't normalize if(x), for(x); while(x), and friends.
svn:r2943
|
2004-11-22 23:28:26 +00:00 |
|
Nick Mathewson
|
55df2620c6
|
Add function to format local time in ISO format
svn:r2935
|
2004-11-22 21:38:44 +00:00 |
|
Roger Dingledine
|
d4ac7300d6
|
and a comment so i don't try to 'fix' it again later
svn:r2919
|
2004-11-20 12:17:19 +00:00 |
|
Roger Dingledine
|
246b14d8e9
|
yes, in fact, i broke it. putting back.
svn:r2918
|
2004-11-20 12:16:47 +00:00 |
|
Roger Dingledine
|
dd19cf6ba3
|
kill -USR2 now moves all logs to loglevel debug
plus fix some typos
svn:r2914
|
2004-11-20 07:33:55 +00:00 |
|
Roger Dingledine
|
a30a5bce0f
|
simplify close_temp_logs()
(nick, did i break this?)
svn:r2913
|
2004-11-20 07:08:00 +00:00 |
|
Roger Dingledine
|
a8840db4ac
|
remove another possible sigpipe cause
svn:r2912
|
2004-11-20 06:52:13 +00:00 |
|
Nick Mathewson
|
8acaf8e187
|
Add "MEMUNIT" and "INTERVAL" types to configuration. Also tweak Accounting setup. More docs needed
svn:r2911
|
2004-11-20 00:37:00 +00:00 |
|
Nick Mathewson
|
89a456a1d4
|
Fix a fun bug in read_all that was corrupting config files on windows, and probably doing other bad stuff too.
svn:r2898
|
2004-11-16 00:08:56 +00:00 |
|
Nick Mathewson
|
6143c515cd
|
Make log_fn not fail so miserably on VC6
svn:r2896
|
2004-11-15 23:30:26 +00:00 |
|
Nick Mathewson
|
d63d5cb139
|
Whitespace normalization
svn:r2895
|
2004-11-15 23:29:24 +00:00 |
|
Nick Mathewson
|
5b668d8557
|
ugly macros to make log_fn play nice on non-GCC compilers.
svn:r2894
|
2004-11-15 21:18:07 +00:00 |
|
Nick Mathewson
|
ffe9b01ad7
|
Split X509 certificate liveness checks into a separate function
svn:r2873
|
2004-11-14 22:07:48 +00:00 |
|
Nick Mathewson
|
783bbcf471
|
Fix "implicit declaration of ftello" warning: add AC_FUNC_FSEEKO in configure.in and always include orconfig.h before anything else
svn:r2854
|
2004-11-14 17:21:32 +00:00 |
|
Roger Dingledine
|
14c7ad409f
|
remove redundant stdio.h
i guess that wasn't the fix
svn:r2849
|
2004-11-14 09:49:27 +00:00 |
|
Roger Dingledine
|
bd4d99b3fe
|
clean up the ftello call a little bit.
but i'm still getting:
log.c:94: warning: implicit declaration of function `ftello'
svn:r2848
|
2004-11-14 09:48:54 +00:00 |
|
Nick Mathewson
|
a3788d5c9d
|
Fix argument to strncpy.
svn:r2824
|
2004-11-12 21:14:51 +00:00 |
|
Nick Mathewson
|
a8f9ba91db
|
Nobody was using the return values from smartlist_(set|del|del_keeporder), so remove them.
svn:r2823
|
2004-11-12 21:14:06 +00:00 |
|
Nick Mathewson
|
238a895e69
|
Add a FAST_SMARTLIST define to optionally inline smartlist_get and smartlist_len, which are two major profiling offenders.
svn:r2822
|
2004-11-12 20:41:52 +00:00 |
|
Nick Mathewson
|
c466b7e72f
|
Speed up tor_strndup a lot: profiling suggests that our use of strlcpy here was a bad idea.
svn:r2821
|
2004-11-12 20:41:03 +00:00 |
|
Nick Mathewson
|
60880cda84
|
Resolve a bunch of FIXME items; mark a lot more for attention; ask for clarification on some. Turn all XXXX008 ("showstopper for 0.0.8 release") items into XXXX009 or XXXX, since plainly they were not showstoppers for 0.0.8. Add/clean some docs.
svn:r2808
|
2004-11-12 16:39:03 +00:00 |
|
Nick Mathewson
|
5d92fbe30e
|
Use autoconf to enable largefile support where necessary. Use ftello where available, since ftell can fail at 2GB.
svn:r2806
|
2004-11-12 05:05:41 +00:00 |
|
Nick Mathewson
|
8de9cfe184
|
Resolve FIXME items: make expand_filename handle ~ and ~username
svn:r2789
|
2004-11-10 14:23:31 +00:00 |
|
Roger Dingledine
|
987cb2b93a
|
when you cast MAX_UINT to an int it confuses the users
svn:r2788
|
2004-11-10 09:09:15 +00:00 |
|
Nick Mathewson
|
5a5be93f80
|
Normalize whitespace; add a "tell me about all the unnormalized whitespace" target; fix a braino in dirserv.c
svn:r2758
|
2004-11-09 20:04:00 +00:00 |
|