X-Git-Url: https://git.exim.org/exim.git/blobdiff_plain/36771878fa93a04ecf5bdd71ad3c3c380a16aa03..86ddd98d63910f57b5aaacc6d77e09aa65b10b32:/src/src/store.c diff --git a/src/src/store.c b/src/src/store.c index c664ad9f4..a038c4abb 100644 --- a/src/src/store.c +++ b/src/src/store.c @@ -270,9 +270,11 @@ int pool = tainted ? store_pool + POOL_TAINT_BASE : store_pool; /* Ensure we've been asked to allocate memory. A negative size is a sign of a security problem. -A zero size is also suspect (but we might have to allow it if we find our API -expects it in some places). */ -if (size < 1) +A zero size might be also suspect, but our internal usage deliberately +does this to return a current watermark value for a later release of +allocated store. */ + +if (size < 0) { log_write(0, LOG_MAIN|LOG_PANIC_DIE, "bad memory allocation requested (%d bytes) at %s %d",