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
+17
View File
@@ -155,6 +155,23 @@ describe("PE/COFF static inspection", () => {
expect(result.success).toBe(true);
});
it("accepts static manifests with more than 96 PE sections", () => {
const section = validManifest.sections[0];
if (section === undefined) throw new Error("Expected PE section fixture");
const sections = Array.from({ length: 97 }, (_, index) => ({
...section,
name: `section-${String(index)}`,
}));
expect(
peManifestSchema.parse({
...validManifest,
number_of_sections: sections.length,
sections,
}).sections,
).toHaveLength(97);
});
it("detects PDB info", () => {
expect(hasPdbInfo(validManifest)).toBe(true);
const withoutPdb: PeManifest = {