summaryrefslogtreecommitdiffstats
path: root/libc/bionic/__vsnprintf_chk.cpp
diff options
context:
space:
mode:
authorNick Kralevich <nnk@google.com>2013-12-18 19:17:14 -0800
committerNick Kralevich <nnk@google.com>2013-12-18 19:17:14 -0800
commite4c6b08c4e81f640afc502804d1226a3e79dc26d (patch)
tree6cc797173f041fe783ad156ec74309597283fa28 /libc/bionic/__vsnprintf_chk.cpp
parent4063bb6147bd256ad455bd3bd063ef40aae8851d (diff)
downloadbionic-e4c6b08c4e81f640afc502804d1226a3e79dc26d.zip
bionic-e4c6b08c4e81f640afc502804d1226a3e79dc26d.tar.gz
bionic-e4c6b08c4e81f640afc502804d1226a3e79dc26d.tar.bz2
Clean up more recursive FORTIFY_SOURCE calls
Don't use FORTIFY_SOURCE on functions which implement FORTIFY_SOURCE, to avoid infinite recursion problems. The previous patch only addressed one of the problems. Bug: 12216860 Change-Id: I6f30ae7cb5b481be9942add18182ea4839d348a6
Diffstat (limited to 'libc/bionic/__vsnprintf_chk.cpp')
-rw-r--r--libc/bionic/__vsnprintf_chk.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/libc/bionic/__vsnprintf_chk.cpp b/libc/bionic/__vsnprintf_chk.cpp
index 8550224..8c09111 100644
--- a/libc/bionic/__vsnprintf_chk.cpp
+++ b/libc/bionic/__vsnprintf_chk.cpp
@@ -26,6 +26,8 @@
* SUCH DAMAGE.
*/
+#undef _FORTIFY_SOURCE
+
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>