From 58fc67ee662da39f3bea0a2fd95f93c6e4258bc0 Mon Sep 17 00:00:00 2001 From: Michael Baier Date: Thu, 9 Jul 2026 12:24:55 +0200 Subject: [PATCH] Adding Width check to resize --- kernel/rtlil.h | 1 + 1 file changed, 1 insertion(+) diff --git a/kernel/rtlil.h b/kernel/rtlil.h index 3e9b4ae21..79466ac3b 100644 --- a/kernel/rtlil.h +++ b/kernel/rtlil.h @@ -1109,6 +1109,7 @@ public: bits_internal()[i] = state; } void resize(int size, RTLIL::State fill) { + log_assert(size >= 0 && size < RTLIL::WIDTH_LIMIT); bits_internal().resize(size, fill); }