OSDN Git Service

arm: add -D_FORTIFY_SOURCE=1 to the default cflags
authorNick Kralevich <nnk@google.com>
Mon, 4 Jun 2012 22:30:24 +0000 (15:30 -0700)
committerNick Kralevich <nnk@google.com>
Thu, 7 Jun 2012 15:55:06 +0000 (08:55 -0700)
commita46c480e43cc61d0190569684f0a1e53a5da75b6
tree6c3376af379e95074d5707080f6d1160632f6c39
parentd5ba4064c3cccdd453cd10bbef2d25ec5c286a62
arm: add -D_FORTIFY_SOURCE=1 to the default cflags

Add additional compile and runtime buffer overflow detection to
Android. As of today, Android supports additional buffer overflow
detection for the following libc functions:

* memcpy
* memmove
* strcpy
* strcat
* strncpy
* strncat

Support for additional functions will be added to bionic libc in
future code changes.

Please see
    * http://gcc.gnu.org/onlinedocs/gcc/Object-Size-Checking.html
    * http://gcc.gnu.org/ml/gcc-patches/2004-09/msg02055.html

for information on these features.

Change-Id: I1a281a4bac20009f4730dd8d8b798fa107576230
core/combo/TARGET_linux-arm.mk