From c179521dc3ee25f3725c2ba12766f32c12975c38 Mon Sep 17 00:00:00 2001 From: TomAwezome Date: Thu, 3 Nov 2022 13:39:24 -0400 Subject: [PATCH] Replace zealbooter.c magic number signature with #define vals. --- zealbooter/zealbooter.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/zealbooter/zealbooter.c b/zealbooter/zealbooter.c index e378a463..ed3b08eb 100644 --- a/zealbooter/zealbooter.c +++ b/zealbooter/zealbooter.c @@ -95,6 +95,9 @@ struct CVideoInfo { #define VBE_MODES_NUM 32 +#define ZEALBOOTER_LIMINE_SIGNATURE_1 0xaa23c08ed10bd4d7 +#define ZEALBOOTER_LIMINE_SIGNATURE_2 0xf6ceba7d4b74179a + struct CKernel { struct CZXE h; uint32_t jmp; @@ -212,11 +215,11 @@ void _start(void) { void *entry_point; // to CORE0_32BIT_INIT for (uint64_t *p = (uint64_t *)kernel; ; p++) { - if (*p != 0xaa23c08ed10bd4d7) { + if (*p != ZEALBOOTER_LIMINE_SIGNATURE_1) { continue; } p++; - if (*p != 0xf6ceba7d4b74179a) { + if (*p != ZEALBOOTER_LIMINE_SIGNATURE_2) { continue; } p++;