summaryrefslogtreecommitdiffstats
path: root/libc/Android.mk
diff options
context:
space:
mode:
authorNick Kralevich <nnk@google.com>2012-06-11 15:50:57 -0700
committerNick Kralevich <nnk@google.com>2012-06-11 16:46:16 -0700
commitcffdf6693ffb50d2a1258d955a162bca83038f25 (patch)
tree205f5c66002cd0a5f064081142bf1b54507e9a4e /libc/Android.mk
parent85b06f9365ae6776deb9fcf09f450f777ace9e34 (diff)
downloadbionic-cffdf6693ffb50d2a1258d955a162bca83038f25.zip
bionic-cffdf6693ffb50d2a1258d955a162bca83038f25.tar.gz
bionic-cffdf6693ffb50d2a1258d955a162bca83038f25.tar.bz2
FORTIFY_SOURCE: add snprintf, vsnprintf
Add _FORTIFY_SOURCE support for snprintf, vsnprintf At this time, we opt out of these protections for clang, as clang does not implement __builtin_va_arg_pack(). http://clang.llvm.org/docs/UsersManual.html#c_unimpl_gcc Change-Id: I73ebe5ec8dad1dca8898a76d6afb693a25f75375
Diffstat (limited to 'libc/Android.mk')
-rw-r--r--libc/Android.mk2
1 files changed, 2 insertions, 0 deletions
diff --git a/libc/Android.mk b/libc/Android.mk
index f2784fd..c507457 100644
--- a/libc/Android.mk
+++ b/libc/Android.mk
@@ -140,6 +140,8 @@ libc_common_src_files := \
stdio/vsscanf.c \
stdio/wbuf.c \
stdio/wsetup.c \
+ stdio/__snprintf_chk.c \
+ stdio/__vsnprintf_chk.c \
stdlib/_rand48.c \
stdlib/assert.c \
stdlib/atexit.c \