From ddea38343311b66ae023473a342c11824f6a8f65 Mon Sep 17 00:00:00 2001 From: Nick Kralevich Date: Wed, 18 Dec 2013 18:17:52 -0800 Subject: [PATCH] __strnlen_chk: avoid recursive strlen calls Don't use FORTIFY_SOURCE on functions which implement FORTIFY_SOURCE. Bug: 12216860 Change-Id: I61db1b47ccdd6bdcf41eab3303f4806494016199 --- libc/bionic/__strlen_chk.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libc/bionic/__strlen_chk.cpp b/libc/bionic/__strlen_chk.cpp index 6621a6abe..a67e15e4b 100644 --- a/libc/bionic/__strlen_chk.cpp +++ b/libc/bionic/__strlen_chk.cpp @@ -26,6 +26,8 @@ * SUCH DAMAGE. */ +#undef _FORTIFY_SOURCE + #include #include #include "private/libc_logging.h"