OSDN Git Service

__strnlen_chk: avoid recursive strlen calls
authorNick Kralevich <nnk@google.com>
Thu, 19 Dec 2013 02:17:52 +0000 (18:17 -0800)
committerNick Kralevich <nnk@google.com>
Thu, 19 Dec 2013 02:17:52 +0000 (18:17 -0800)
Don't use FORTIFY_SOURCE on functions which implement
FORTIFY_SOURCE.

Bug: 12216860
Change-Id: I61db1b47ccdd6bdcf41eab3303f4806494016199

libc/bionic/__strlen_chk.cpp

index 6621a6a..a67e15e 100644 (file)
@@ -26,6 +26,8 @@
  * SUCH DAMAGE.
  */
 
+#undef _FORTIFY_SOURCE
+
 #include <string.h>
 #include <stdlib.h>
 #include "private/libc_logging.h"