From 1672c73a5718f1d58623c83cf71cbd0879e6b57f Mon Sep 17 00:00:00 2001 From: Matt Nadareski Date: Thu, 25 Mar 2021 15:25:15 -0700 Subject: [PATCH] Fix PECompact scanning Thanks Silas for noticing the regression --- BurnOutSharp/PackerType/PECompact.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/BurnOutSharp/PackerType/PECompact.cs b/BurnOutSharp/PackerType/PECompact.cs index cb16770f..b555a5b2 100644 --- a/BurnOutSharp/PackerType/PECompact.cs +++ b/BurnOutSharp/PackerType/PECompact.cs @@ -14,10 +14,10 @@ namespace BurnOutSharp.PackerType var matchers = new List { // pec1 - new ContentMatchSet(new byte?[] { 0x70, 0x65, 0x63, 0x31 }, "PE Compact 1"), + new ContentMatchSet(new ContentMatch(new byte?[] { 0x70, 0x65, 0x63, 0x31 }, end: 2048), "PE Compact 1"), // PEC2 - new ContentMatchSet(new byte?[] { 0x50, 0x45, 0x43, 0x32 }, GetVersion, "PE Compact 2"), + new ContentMatchSet(new ContentMatch(new byte?[] { 0x50, 0x45, 0x43, 0x32 }, end: 2048), GetVersion, "PE Compact 2"), // PECompact2 new ContentMatchSet(new byte?[]