diff options
author | Otto Moerbeek <otto@cvs.openbsd.org> | 2017-04-06 08:39:48 +0000 |
---|---|---|
committer | Otto Moerbeek <otto@cvs.openbsd.org> | 2017-04-06 08:39:48 +0000 |
commit | ed0f333014fe2fdf3bb9951fc7bdbc94be9f1ac8 (patch) | |
tree | 129bf6c2e0684f13714cd64d9f225c23c05777d6 /lib/libc/stdlib | |
parent | cd9e9772e9ffe86dc5576bbd5b761dd23b6c57cf (diff) |
first print size in meta-data then supplied arg size when an inconsistency is
detected wrt recallocarray()
Diffstat (limited to 'lib/libc/stdlib')
-rw-r--r-- | lib/libc/stdlib/malloc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libc/stdlib/malloc.c b/lib/libc/stdlib/malloc.c index 1e13c2de111..f2b8b1549bb 100644 --- a/lib/libc/stdlib/malloc.c +++ b/lib/libc/stdlib/malloc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: malloc.c,v 1.218 2017/03/28 16:56:38 otto Exp $ */ +/* $OpenBSD: malloc.c,v 1.219 2017/04/06 08:39:47 otto Exp $ */ /* * Copyright (c) 2008, 2010, 2011, 2016 Otto Moerbeek <otto@drijf.net> * Copyright (c) 2012 Matthew Dempsky <matthew@openbsd.org> @@ -1738,8 +1738,8 @@ orecallocarray(struct dir_info *argpool, void *p, size_t oldsize, oldsize); } } else if (oldsize != sz - mopts.malloc_guard) - wrterror(pool, "recorded old size %zu != %zu", oldsize, - sz - mopts.malloc_guard); + wrterror(pool, "recorded old size %zu != %zu", + sz - mopts.malloc_guard, oldsize); newptr = omalloc(pool, newsize, 0, f); if (newptr == NULL) |