Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(319)

Unified Diff: pydir/sz_clang_dummies.c

Issue 2145213002: Subzero: implemented wrapper script to replace calls to calloc() (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Addressed comments and added error testing Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: pydir/sz_clang_dummies.c
diff --git a/pydir/sz_clang_dummies.c b/pydir/sz_clang_dummies.c
new file mode 100644
index 0000000000000000000000000000000000000000..d0abc94cba3da6594af155bde9294de8a9282e4e
--- /dev/null
+++ b/pydir/sz_clang_dummies.c
@@ -0,0 +1,13 @@
+#include <stdlib.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+void *__asan_dummy_calloc(size_t nmemb, size_t size) {
+ return calloc(nmemb, size);
+}
+
+#ifdef __cplusplus
+} // extern "C"
+#endif

Powered by Google App Engine
This is Rietveld 408576698