Skip to content

Commit 74c06b7

Browse files
patterns/lua53: Fix lua53 long string (#427)
Update lua53.hexpat
1 parent f13d9d3 commit 74c06b7

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

patterns/lua53.hexpat

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,15 @@ struct LuaBinaryHeader {
4444
struct LuaString {
4545
u8 size;
4646
if (size > 0) {
47-
char data[size-1];
47+
if (size == 0xff) {
48+
u64 sizeReal;
49+
char data[sizeReal-1];
50+
} else {
51+
char data[size-1];
52+
}
4853
}
54+
55+
4956
}[[format("impl::format_LuaString")]];
5057

5158
struct LuaConstant {

0 commit comments

Comments
 (0)