refactor(tools): remove artificial analysis ceilings

This commit is contained in:
morluto
2026-09-29 16:29:23 +08:00
parent 36aeec9586
commit 2f08c7c932
202 changed files with 2314 additions and 3072 deletions
+2 -2
View File
@@ -226,11 +226,11 @@ const readCoffHeader = (bytes: Buffer): CoffHeader => {
const coff = peOffset + 4;
const machine = bytes.readUInt16LE(coff);
const sectionCount = bytes.readUInt16LE(coff + 2);
if (sectionCount === 0 || sectionCount > 96)
if (sectionCount === 0)
throw managedFailure(
"invalid-directory",
"pe.sections",
"PE section count is outside the admitted range",
"PE section count must be positive",
coff + 2,
);
const optionalSize = bytes.readUInt16LE(coff + 16);