diff options
author | cypherpunks <cypherpunks@torproject.org> | 2016-05-25 11:17:29 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2016-08-12 14:18:01 -0400 |
commit | 8d67c079b472a0a5c786abb3ba7db5ad571b6aed (patch) | |
tree | da3d56bfb65e9f22b698cef39558f497c0789ea5 /src/common/compat.h | |
parent | 06e82084d6829084a43453e2b810d45c4e794259 (diff) | |
download | tor-8d67c079b472a0a5c786abb3ba7db5ad571b6aed.tar.gz tor-8d67c079b472a0a5c786abb3ba7db5ad571b6aed.zip |
Fix integer overflows in the conversion tables
Diffstat (limited to 'src/common/compat.h')
-rw-r--r-- | src/common/compat.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common/compat.h b/src/common/compat.h index 40bcb26df7..12f280d2e9 100644 --- a/src/common/compat.h +++ b/src/common/compat.h @@ -360,8 +360,8 @@ DECLARE_CTYPE_FN(ISXDIGIT) DECLARE_CTYPE_FN(ISPRINT) DECLARE_CTYPE_FN(ISLOWER) DECLARE_CTYPE_FN(ISUPPER) -extern const char TOR_TOUPPER_TABLE[]; -extern const char TOR_TOLOWER_TABLE[]; +extern const uint8_t TOR_TOUPPER_TABLE[]; +extern const uint8_t TOR_TOLOWER_TABLE[]; #define TOR_TOLOWER(c) (TOR_TOLOWER_TABLE[(uint8_t)c]) #define TOR_TOUPPER(c) (TOR_TOUPPER_TABLE[(uint8_t)c]) |