|
From: <sv...@va...> - 2007-03-26 23:52:21
|
Author: njn
Date: 2007-03-27 00:52:19 +0100 (Tue, 27 Mar 2007)
New Revision: 6672
Log:
Fix bug 142491: allow more --alloc-fn functions (128, up from 32).
MERGED FROM TRUNK
Modified:
branches/VALGRIND_3_2_BRANCH/massif/ms_main.c
Modified: branches/VALGRIND_3_2_BRANCH/massif/ms_main.c
===================================================================
--- branches/VALGRIND_3_2_BRANCH/massif/ms_main.c 2007-03-26 23:51:29 UTC (rev 6671)
+++ branches/VALGRIND_3_2_BRANCH/massif/ms_main.c 2007-03-26 23:52:19 UTC (rev 6672)
@@ -248,10 +248,10 @@
// Current directory at startup.
static Char base_dir[VKI_PATH_MAX];
-#define MAX_ALLOC_FNS 32 // includes the builtin ones
+#define MAX_ALLOC_FNS 128 // includes the builtin ones
// First few filled in, rest should be zeroed. Zero-terminated vector.
-static UInt n_alloc_fns = 11;
+static UInt n_alloc_fns = 10;
static Char* alloc_fns[MAX_ALLOC_FNS] = {
"malloc",
"operator new(unsigned)",
|