From 0a631f0c1f129e158885a84ecb6afa5b07f41b6d Mon Sep 17 00:00:00 2001 From: g4ngli0s Date: Thu, 28 Dec 2023 18:31:53 +0100 Subject: [PATCH] patterns/pe: Fix BaseRelocationBlock count inside BaseRelocationTable (#212) --- patterns/pe.hexpat | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/patterns/pe.hexpat b/patterns/pe.hexpat index 16f4ad6..fe82f8d 100644 --- a/patterns/pe.hexpat +++ b/patterns/pe.hexpat @@ -921,7 +921,7 @@ bitfield BaseRelocationWord { struct BaseRelocationBlock { u32 pageRVA; u32 blockSize; - BaseRelocationWord word; + BaseRelocationWord word[while($ < addressof(this) + this.blockSize)] [[inline]]; }; struct BaseRelocationTable {