commit | ddea38343311b66ae023473a342c11824f6a8f65 | [log] [tgz] |
---|---|---|
author | Nick Kralevich <nnk@google.com> | Wed Dec 18 18:17:52 2013 -0800 |
committer | Nick Kralevich <nnk@google.com> | Wed Dec 18 18:17:52 2013 -0800 |
tree | 1063db7aad8e1e5c9a24a11475f41c4d4aa668a3 | |
parent | f5897dcb1d1dc493b6a2ba526a766da73bb9c1da [diff] [blame] |
__strnlen_chk: avoid recursive strlen calls Don't use FORTIFY_SOURCE on functions which implement FORTIFY_SOURCE. Bug: 12216860 Change-Id: I61db1b47ccdd6bdcf41eab3303f4806494016199
diff --git a/libc/bionic/__strlen_chk.cpp b/libc/bionic/__strlen_chk.cpp index 6621a6a..a67e15e 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 "private/libc_logging.h"