From d600617645e85435cf98fc30139a6945aaadc1ca Mon Sep 17 00:00:00 2001 From: Shih-wei Liao Date: Mon, 6 Aug 2012 10:57:37 -0700 Subject: [PATCH] When compiling with clang, don't "fortify_source" the strlcpy and strlcat. Change-Id: I91f58322f28e425ab9d22b51c23fcd6b772ede97 --- libc/include/string.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libc/include/string.h b/libc/include/string.h index 5259c15ec..d1dc4c41b 100644 --- a/libc/include/string.h +++ b/libc/include/string.h @@ -147,6 +147,7 @@ void *memset (void *s, int c, size_t n) { return __builtin___memset_chk(s, c, n, __builtin_object_size (s, 0)); } +#if !defined(__clang__) extern size_t __strlcpy_real(char *, const char *, size_t) __asm__(__USER_LABEL_PREFIX__ "strlcpy"); extern void __strlcpy_error() @@ -208,7 +209,6 @@ size_t strlcat(char *dest, const char *src, size_t size) { return __strlcat_chk(dest, src, size, bos); } -#if !defined(__clang__) __purefunc extern size_t __strlen_real(const char *) __asm__(__USER_LABEL_PREFIX__ "strlen"); extern size_t __strlen_chk(const char *, size_t);