]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
string: macOS --enable-fragile-hardening uses safe string functions
authorteor <teor@torproject.org>
Thu, 29 Aug 2019 02:40:32 +0000 (12:40 +1000)
committerteor <teor@torproject.org>
Thu, 29 Aug 2019 03:10:34 +0000 (13:10 +1000)
Comment-only change.

src/lib/string/compat_string.h

index 4f30bf53927f81185f0b254576285fd4c282d0d0..ffc892c3e5d0a9832bb0a88826215723c854d718 100644 (file)
@@ -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