X-Git-Url: https://git.exim.org/exim.git/blobdiff_plain/9fa4d5b45f70b36a46c0d04381a5e05cb39ae3e9..6d5f5cafb4c507abe36434bf7695573284eb8761:/src/src/store.c diff --git a/src/src/store.c b/src/src/store.c index 7871d0ccc..41ca43d65 100644 --- a/src/src/store.c +++ b/src/src/store.c @@ -106,8 +106,8 @@ static int yield_length[NPOOLS] = { -1, -1, -1, -1, -1, -1 }; a fast is_tainted implementation. We assume the kernel only allocates mmaps using one side or the other of data+heap, not both. */ -static void * tainted_base = (void *)-1; -static void * tainted_top = (void *)0; +void * tainted_base = (void *)-1; +void * tainted_top = (void *)0; /* pool_malloc holds the amount of memory used by the store pools; this goes up and down as store is reset or released. nonpool_malloc is the total got by @@ -159,21 +159,6 @@ static void internal_store_free(void *, const char *, int linenumber); /******************************************************************************/ -/* Predicate: if an address is in a tainted pool. -By extension, a variable pointing to this address is tainted. -*/ - -BOOL -is_tainted(const void * p) -{ -BOOL rc = p >= tainted_base && p < tainted_top; - -#ifndef COMPILE_UTILITY -DEBUG(D_memory) if (rc) debug_printf_indent("is_tainted: YES\n"); -#endif -return rc; -} - void die_tainted(const uschar * msg, const uschar * func, int line) {