diff options
author | teor <teor@torproject.org> | 2019-08-29 12:40:32 +1000 |
---|---|---|
committer | teor <teor@torproject.org> | 2019-08-29 13:10:34 +1000 |
commit | 063cf9cd23d28c8b5678373040622321882026c2 (patch) | |
tree | 963dbd5cb82b6ebb0627216f0940d6d223d74325 /src/lib/string/compat_string.h | |
parent | ec6fbf1ca613c11dc783182a11bc1d04f6a3fb63 (diff) | |
download | tor-063cf9cd23d28c8b5678373040622321882026c2.tar.gz tor-063cf9cd23d28c8b5678373040622321882026c2.zip |
string: macOS --enable-fragile-hardening uses safe string functions
Comment-only change.
Diffstat (limited to 'src/lib/string/compat_string.h')
-rw-r--r-- | src/lib/string/compat_string.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lib/string/compat_string.h b/src/lib/string/compat_string.h index 4f30bf5392..ffc892c3e5 100644 --- a/src/lib/string/compat_string.h +++ b/src/lib/string/compat_string.h @@ -39,6 +39,9 @@ static inline int strcasecmp(const char *a, const char *b) { * appear to have a severe bug that can sometimes cause aborts in Tor. * Instead, use the non-checking variants. This is sad. * + * (If --enable-fragile-hardening is passed to configure, we use the hardened + * variants, which do not suffer from this issue.) + * * See https://trac.torproject.org/projects/tor/ticket/15205 */ #undef strlcat |