diff options
author | juga0 <juga@riseup.net> | 2018-06-30 13:56:38 +0000 |
---|---|---|
committer | juga0 <juga@riseup.net> | 2018-07-16 14:43:49 +0000 |
commit | 8164534f4669b2a3de075d1f57176540406be991 (patch) | |
tree | 8c0171bce45bae3799c237d063ec2139de404fb5 /src/feature/dirauth/dirvote.h | |
parent | 317d930f081936cde6551f1642ddf20983918658 (diff) | |
download | tor-8164534f4669b2a3de075d1f57176540406be991.tar.gz tor-8164534f4669b2a3de075d1f57176540406be991.zip |
Ensure that bw_file_headers is not bigger than max
Diffstat (limited to 'src/feature/dirauth/dirvote.h')
-rw-r--r-- | src/feature/dirauth/dirvote.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/feature/dirauth/dirvote.h b/src/feature/dirauth/dirvote.h index 7ce8e4a699..979a2be8a6 100644 --- a/src/feature/dirauth/dirvote.h +++ b/src/feature/dirauth/dirvote.h @@ -89,6 +89,9 @@ #define DGV_INCLUDE_PENDING 2 #define DGV_INCLUDE_PREVIOUS 4 +/** Maximum size of a line in a vote. */ +#define MAX_BW_FILE_HEADERS_LINE_LEN 1024 + /* * Public API. Used outside of the dirauth subsystem. * |