From 887db2ff38ce82bb5f33aa128c76b578caba216d Mon Sep 17 00:00:00 2001 From: Pip Cet Date: Tue, 17 Jun 2025 15:19:41 +0000 Subject: [PATCH] Avoid inconsistent item size problems (bug#78812) * src/igc.c (igc_xpalloc_lisp_objs_exact): Assert item_size covers precisely one Lisp_Object, until the code is fixed. --- src/igc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/igc.c b/src/igc.c index 2b9339d0c99..aae12975535 100644 --- a/src/igc.c +++ b/src/igc.c @@ -3508,6 +3508,7 @@ igc_xpalloc_lisp_objs_exact (Lisp_Object *pa, ptrdiff_t *nitems, ptrdiff_t nitems_incr_min, ptrdiff_t nitems_max, ptrdiff_t item_size, const char *label) { + igc_assert (item_size == word_size); ptrdiff_t nitems_old = *nitems; ptrdiff_t nitems_new = nitems_old; ptrdiff_t nbytes