From d25ae5e0a964c5cc951a129de2c63a7cd797aad7 Mon Sep 17 00:00:00 2001 From: topjohnwu Date: Tue, 8 Oct 2019 16:55:25 -0400 Subject: [PATCH] Add __attribute__((packed)) just in case --- native/jni/magiskboot/dtb.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/native/jni/magiskboot/dtb.cpp b/native/jni/magiskboot/dtb.cpp index e9fef715b..5a8a98990 100644 --- a/native/jni/magiskboot/dtb.cpp +++ b/native/jni/magiskboot/dtb.cpp @@ -52,7 +52,7 @@ struct bhtable_v2 { uint32_t offset; /* DTB offset in DTBH */ uint32_t len; /* DTB size */ uint32_t space; /* 0x00000020 */ -}; +} __attribute__((packed)); struct dtb_blob { void *fdt;