summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNick Kralevich <nnk@google.com>2013-12-18 18:17:52 -0800
committerSteve Kondik <shade@chemlab.org>2013-12-20 16:45:25 -0800
commit183c8c5237097df815b593a6dc6dec40e0cf48b2 (patch)
treeb84d776d335066211c58bb1a00f15a6c16ff3b64
parenteb9a2ce9e57a51e3180eec2fe2bbdae7958e62ab (diff)
downloadbionic-183c8c5237097df815b593a6dc6dec40e0cf48b2.zip
bionic-183c8c5237097df815b593a6dc6dec40e0cf48b2.tar.gz
bionic-183c8c5237097df815b593a6dc6dec40e0cf48b2.tar.bz2
__strnlen_chk: avoid recursive strlen calls
Don't use FORTIFY_SOURCE on functions which implement FORTIFY_SOURCE. Bug: 12216860 Change-Id: I61db1b47ccdd6bdcf41eab3303f4806494016199
-rw-r--r--libc/bionic/__strlen_chk.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/libc/bionic/__strlen_chk.cpp b/libc/bionic/__strlen_chk.cpp
index 151a497..8fe63c4 100644
--- a/libc/bionic/__strlen_chk.cpp
+++ b/libc/bionic/__strlen_chk.cpp
@@ -26,6 +26,8 @@
* SUCH DAMAGE.
*/
+#undef _FORTIFY_SOURCE
+
#include <string.h>
#include <stdlib.h>
#include "libc_logging.h"