commit | cffdf6693ffb50d2a1258d955a162bca83038f25 | [log] [tgz] |
---|---|---|
author | Nick Kralevich <nnk@google.com> | Mon Jun 11 15:50:57 2012 -0700 |
committer | Nick Kralevich <nnk@google.com> | Mon Jun 11 16:46:16 2012 -0700 |
tree | 205f5c66002cd0a5f064081142bf1b54507e9a4e | |
parent | 85b06f9365ae6776deb9fcf09f450f777ace9e34 [diff] [blame] |
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
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 @@ 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 \