From acf7b8cc57a39ba7427a2434ac76b1b293fafc8f Mon Sep 17 00:00:00 2001 From: quou Date: Mon, 30 Dec 2024 10:18:29 +1100 Subject: Fix arena size check --- qstd/memory.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'qstd') diff --git a/qstd/memory.c b/qstd/memory.c index 61c5911..1dac1c5 100644 --- a/qstd/memory.c +++ b/qstd/memory.c @@ -45,7 +45,7 @@ void* imp_arena_alloc( int size ) { char* r; - assert(a->ptr + size < a->size); + assert(a->ptr + size <= a->size); r = &a->buf[a->ptr]; a->ptr += size; return r; -- cgit v1.2.3-54-g00ecf