Commit a7f303a4 authored by Nick Mathewson's avatar Nick Mathewson 🤹
Browse files

Merge branch 'maint-0.2.7'

parents 94c8f360 67e5d49d
Loading
Loading
Loading
Loading

changes/bug14821

0 → 100644
+4 −0
Original line number Diff line number Diff line
  o Major bugfixes (compilation):
    - Correctly repair hardened builds under the clang compiler. Previously,
      our use of _FORTIFY_SOURCE would conflict with clang's address
      sanitizer. Closes ticket 14821.
+9 −0
Original line number Diff line number Diff line
@@ -42,6 +42,15 @@
#include <netinet6/in6.h>
#endif

#if defined(__has_feature)
#  if __has_feature(address_sanitizer)
/* Some of the fancy glibc strcmp() macros include references to memory that
 * clang rejects because it is off the end of a less-than-3. Clang hates this,
 * even though those references never actually happen. */
#    undef strcmp
#  endif
#endif

#include <stdio.h>
#include <errno.h>