OSDN Git Service

stdio.h: enable vs?printf clang FORTIFY_SOURCE
authorNick Kralevich <nnk@google.com>
Thu, 27 Jun 2013 15:58:14 +0000 (08:58 -0700)
committerNick Kralevich <nnk@google.com>
Thu, 27 Jun 2013 16:17:48 +0000 (09:17 -0700)
commitc8ae8bd9418b79f4da85dc12a61ebd82146b7e51
tree993d68a67de1e710dc393dd70e61775057ad22c3
parentfbec57d46c42460b2381484d1610ff21922d162e
stdio.h: enable vs?printf clang FORTIFY_SOURCE

Enable FORTIFY_SOURCE protections under clang for the following
functions:

  * vsprintf
  * vsnprintf

and add unittests.

Change-Id: I90f8a27f7b202c78b5dd8ebf53050bf9e33496f7
libc/include/stdio.h
tests/fortify1_test.cpp
tests/fortify1_test_clang.cpp
tests/fortify2_test.cpp
tests/fortify2_test_clang.cpp