diff options
author | Christos Zoulas <christos@zoulas.com> | 2021-02-05 21:47:21 +0000 |
---|---|---|
committer | Christos Zoulas <christos@zoulas.com> | 2021-02-05 21:47:21 +0000 |
commit | 193029c9bd11946de54865249860074472efd89d (patch) | |
tree | 9686714b7caed30ab8554c63e1c053d5ccffaffd | |
parent | dbe04f59be820d8d656949758f3d59862c554ae2 (diff) | |
download | file-git-193029c9bd11946de54865249860074472efd89d.tar.gz |
Kill the abort.
-rw-r--r-- | src/memtest.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/memtest.c b/src/memtest.c index be9f37f1..f9506f6e 100644 --- a/src/memtest.c +++ b/src/memtest.c @@ -66,8 +66,6 @@ calloc(size_t len, size_t nitems) void *(*orig)(size_t, size_t) = dlsym(RTLD_NEXT, "calloc"); void *p = (*orig)(len, nitems); size_t tot = len * nitems; - if (tot > 4 * 1024 * 1024) - abort(); int l = snprintf(buf, sizeof(buf), "calloc %zu %p\n", tot, p); write(2, buf, l); return p; |