From 9be01bc70dca0e727fe1f518ebae1f6f72405b84 Mon Sep 17 00:00:00 2001 From: Jean Boussier Date: Fri, 30 Jan 2026 13:09:10 +0100 Subject: gc.c: also verify sized_xrealloc old size --- parse.y | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'parse.y') diff --git a/parse.y b/parse.y index 03dd1c6f92..7ca1197b37 100644 --- a/parse.y +++ b/parse.y @@ -1995,7 +1995,7 @@ parser_memhash(const void *ptr, long len) #define STRING_TERM_LEN(str) (1) #define STRING_TERM_FILL(str) (str->ptr[str->len] = '\0') #define PARSER_STRING_RESIZE_CAPA_TERM(p,str,capacity,termlen) do {\ - SIZED_REALLOC_N(str->ptr, char, (size_t)total + termlen, STRING_SIZE(str)); \ + REALLOC_N(str->ptr, char, (size_t)total + termlen); \ str->len = total; \ } while (0) #define STRING_SET_LEN(str, n) do { \ -- cgit v1.2.3