From 74c06b74f7c74c6edeec81c3c657736766614873 Mon Sep 17 00:00:00 2001 From: MicroBlock <66859419+std-microblock@users.noreply.github.com> Date: Sun, 31 Aug 2025 17:27:59 +0800 Subject: [PATCH] patterns/lua53: Fix lua53 long string (#427) Update lua53.hexpat --- patterns/lua53.hexpat | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/patterns/lua53.hexpat b/patterns/lua53.hexpat index 12ef685..dd0fbde 100644 --- a/patterns/lua53.hexpat +++ b/patterns/lua53.hexpat @@ -44,8 +44,15 @@ struct LuaBinaryHeader { struct LuaString { u8 size; if (size > 0) { - char data[size-1]; + if (size == 0xff) { + u64 sizeReal; + char data[sizeReal-1]; + } else { + char data[size-1]; + } } + + }[[format("impl::format_LuaString")]]; struct LuaConstant {