Browse Source

string: macOS --enable-fragile-hardening uses safe string functions

Comment-only change.
teor 4 years ago
parent
commit
063cf9cd23
1 changed files with 3 additions and 0 deletions
  1. 3 0
      src/lib/string/compat_string.h

+ 3 - 0
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