summaryrefslogtreecommitdiffstats
path: root/base/base.gypi
diff options
context:
space:
mode:
authormarkus@chromium.org <markus@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-09-05 00:43:51 +0000
committermarkus@chromium.org <markus@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-09-05 00:43:51 +0000
commitb845301df8b1069dc2870cece425f5d8e2b37593 (patch)
treebaeeb7d834240f626afdeda8c78bed054762c0dd /base/base.gypi
parent54af0352fb8c3b48b0f379ea1c48006aa1c34615 (diff)
downloadchromium_src-b845301df8b1069dc2870cece425f5d8e2b37593.zip
chromium_src-b845301df8b1069dc2870cece425f5d8e2b37593.tar.gz
chromium_src-b845301df8b1069dc2870cece425f5d8e2b37593.tar.bz2
Second attempt at introducing SafeSPrintf().
See original discussion at https://codereview.chromium.org/18656004/ Reverted as: https://codereview.chromium.org/23463010/ Added a new base::strings::SafeSPrintf() function that can safely be called from all restricted (e.g. async-signal-safe) environments. It is roughly equivalent to snprintf(). But it is easier to use, as it uses C++ to be type-safe. In release builds, this function is guaranteed to never call any other library function nor any system calls. In debug builds, we call RAW_CHECK() in some circumstances. This code is needed for (at least) the seccomp sandbox and to clean up code in the stack tracer. Those changes are pending and will be submitted as separate CLs. BUG=285499 TEST=base_unittests TBR=willchan@chromium.org NOTRY=true Review URL: https://chromiumcodereview.appspot.com/23777003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@221322 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/base.gypi')
-rw-r--r--base/base.gypi2
1 files changed, 2 insertions, 0 deletions
diff --git a/base/base.gypi b/base/base.gypi
index 2bd7161..d34b39d 100644
--- a/base/base.gypi
+++ b/base/base.gypi
@@ -475,6 +475,8 @@
'strings/latin1_string_conversions.h',
'strings/nullable_string16.cc',
'strings/nullable_string16.h',
+ 'strings/safe_sprintf.cc',
+ 'strings/safe_sprintf.h',
'strings/string16.cc',
'strings/string16.h',
'strings/string_number_conversions.cc',