From ef2b26cc3eaed06c5c9d4ef2c6d8669ff357afa4 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Thu, 19 Jun 2025 13:17:23 +0900 Subject: [PATCH] `struct iseq_catch_table` is packed --- compile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compile.c b/compile.c index 477f082144..bb0b5ac681 100644 --- a/compile.c +++ b/compile.c @@ -13307,7 +13307,7 @@ ibf_load_catch_table(const struct ibf_load *load, ibf_offset_t catch_table_offse table->entries[i].sp = (unsigned int)ibf_load_small_value(load, &reading_pos); rb_iseq_t *catch_iseq = (rb_iseq_t *)ibf_load_iseq(load, (const rb_iseq_t *)(VALUE)iseq_index); - RB_OBJ_WRITE(parent_iseq, &table->entries[i].iseq, catch_iseq); + RB_OBJ_WRITE(parent_iseq, UNALIGNED_MEMBER_PTR(&table->entries[i], iseq), catch_iseq); } return table; }