OSDN Git Service
(root)
/
android-x86
/
bionic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f5897dc
)
__strnlen_chk: avoid recursive strlen calls
author
Nick Kralevich
<nnk@google.com>
Thu, 19 Dec 2013 02:17:52 +0000
(18:17 -0800)
committer
Nick 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
patch
|
blob
|
history
diff --git
a/libc/bionic/__strlen_chk.cpp
b/libc/bionic/__strlen_chk.cpp
index
6621a6a
..
a67e15e
100644
(file)
--- 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"