platform_bionic/libc
Nick Kralevich 1aae9bd170 strncpy: implement _FORTIFY_SOURCE=2
Add support for fortify source level 2 to strncpy.
This will enable detection of more areas where strncpy
is used inappropriately. For example, this would have detected
bug 8727221.

Move the fortify_source tests out of string_test.cpp, and
put it into fortify1_test.cpp.

Create a new fortify2_test.cpp file, which copies all
the tests in fortify1_test.cpp, and adds fortify_source level
2 specific tests.

Change-Id: Ica0fba531cc7d0609e4f23b8176739b13f7f7a83
2013-04-29 15:22:10 -07:00
..
arch-arm Remove redundant space within square brackets 2013-04-25 15:05:03 +08:00
arch-mips Replace unnecessary MIPS uses of <sys/linux-syscalls.h> with <asm/unistd.h>. 2013-03-21 22:52:25 -07:00
arch-x86 Replace unnecessary x86 uses of <sys/linux-syscalls.h> with <asm/unistd.h>. 2013-03-21 22:48:18 -07:00
bionic Use hidden visibility for internal-use-only functions 2013-04-12 16:34:38 +08:00
include strncpy: implement _FORTIFY_SOURCE=2 2013-04-29 15:22:10 -07:00
kernel [NETFILTER]: Fix iptables ABI breakage 2013-04-29 12:31:01 -07:00
netbsd Update getaddrinfo to RFC6724 2013-04-01 18:04:25 -07:00
private Make abort messages available to debuggerd. 2013-04-05 11:24:19 -07:00
stdio Start moving to current FreeBSD stdio. 2013-04-11 13:55:01 -07:00
stdlib Switch to current FreeBSD qsort. 2013-04-11 18:08:34 -07:00
string Drop magic number in strrchr and strchr 2013-03-22 10:18:09 +08:00
tools Don't avoid IPv6 when looking for new tzdata. 2013-04-24 10:50:45 -07:00
tzcode Improve diagnostics in the face of bad tzdata. 2013-04-25 14:02:59 -07:00
unistd Upgrade to current NetBSD popen/pclose. 2013-03-06 16:20:55 -08:00
upstream-dlmalloc Fix build warning of initialization but no use. 2012-09-06 09:59:13 -07:00
upstream-freebsd Switch to current FreeBSD qsort. 2013-04-11 18:08:34 -07:00
upstream-netbsd Upgrade to current NetBSD popen/pclose. 2013-03-06 16:20:55 -08:00
wchar Switch to upstream-freebsd for the unmolested wchar code. 2013-03-01 18:35:56 -08:00
zoneinfo Upgrade to tzdata2013c. 2013-04-22 11:33:14 -07:00
Android.mk Switch to current FreeBSD qsort. 2013-04-11 18:08:34 -07:00
CAVEATS
MODULE_LICENSE_BSD
NOTICE Regenerate NOTICE files. 2013-03-07 11:51:10 -08:00
SYSCALLS.TXT Fix the SYSCALLS.TXT documentation and remove a dead script. 2013-04-03 10:08:09 -07:00