diff options
author | Nick Mathewson <nickm@torproject.org> | 2015-03-09 19:47:12 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2015-03-09 19:47:12 -0400 |
commit | 1af67d7f72470cec1de5e2a75186edc3b3accfbe (patch) | |
tree | d418806be60767dcdd1a19f7d072b580783921f5 /src | |
parent | 7c9be64e1af05aa1fdac894ffe9ef98f80091d57 (diff) | |
parent | 24c031b1a28658c921a746f4d58f3ca5e9994108 (diff) | |
download | tor-1af67d7f72470cec1de5e2a75186edc3b3accfbe.tar.gz tor-1af67d7f72470cec1de5e2a75186edc3b3accfbe.zip |
Merge remote-tracking branch 'public/bug15205_025' into maint-0.2.6
Diffstat (limited to 'src')
-rw-r--r-- | src/common/compat.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/common/compat.h b/src/common/compat.h index 23f8614196..11b41cded9 100644 --- a/src/common/compat.h +++ b/src/common/compat.h @@ -215,6 +215,18 @@ extern INLINE double U64_TO_DBL(uint64_t x) { #define strncasecmp _strnicmp #define strcasecmp _stricmp #endif + +#if defined __APPLE__ +/* On OSX 10.9 and later, the overlap-checking code for strlcat would + * appear to have a severe bug that can sometimes cause aborts in Tor. + * Instead, use the non-checking variants. This is sad. + * + * See https://trac.torproject.org/projects/tor/ticket/15205 + */ +#undef strlcat +#undef strlcpy +#endif + #ifndef HAVE_STRLCAT size_t strlcat(char *dst, const char *src, size_t siz) ATTR_NONNULL((1,2)); #endif |