From c113091e2d5e667450036873dd4c92295893c3c2 Mon Sep 17 00:00:00 2001 From: tg Date: Wed, 12 Nov 2008 05:46:45 +0000 Subject: [PATCH] forgot to charge for the extra size in the abstraction --- aalloc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/aalloc.c b/aalloc.c index 4f01411..21732f7 100644 --- a/aalloc.c +++ b/aalloc.c @@ -1,6 +1,6 @@ #include "sh.h" -__RCSID("$MirOS: src/bin/mksh/aalloc.c,v 1.10 2008/11/12 05:46:14 tg Exp $"); +__RCSID("$MirOS: src/bin/mksh/aalloc.c,v 1.11 2008/11/12 05:46:45 tg Exp $"); /* mksh integration of aalloc */ @@ -116,6 +116,7 @@ static size_t pagesz; if (size >= SIZE_MAX - extra) \ AALLOC_ABORT("unable to allocate %zu bytes: %s", \ size, "value plus extra too big"); \ + size += extra; \ } while (/* CONSTCOND */ 0) static void adelete_leak(PArea, PBlock);