diff options
author | Ivan Markin <twim@riseup.net> | 2016-06-17 03:44:58 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2016-07-26 09:49:40 -0400 |
commit | 77459b97aac15949c5160ca8abb9af792f02ac73 (patch) | |
tree | 970d2ef4aaf6d82b3f6e0efeaae8722f221ca216 /src/common/util.h | |
parent | 264fb7eb82f5df59247f1e2f4ea906fd9a0def61 (diff) | |
download | tor-77459b97aac15949c5160ca8abb9af792f02ac73.tar.gz tor-77459b97aac15949c5160ca8abb9af792f02ac73.zip |
Fix integer overflow in the rate-limiter (#19435).
Diffstat (limited to 'src/common/util.h')
-rw-r--r-- | src/common/util.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/common/util.h b/src/common/util.h index 0d48eac1ad..837d2e9cf3 100644 --- a/src/common/util.h +++ b/src/common/util.h @@ -292,6 +292,7 @@ typedef struct ratelim_t { } ratelim_t; #define RATELIM_INIT(r) { (r), 0, 0 } +#define RATELIM_TOOMANY (16*1000) char *rate_limit_log(ratelim_t *lim, time_t now); |