refactor(managed): derive inspection from PE CLI extents

This commit is contained in:
morluto
2026-09-29 17:35:41 +08:00
parent 3b64c813cf
commit dfad09e3b5
34 changed files with 192 additions and 626 deletions
@@ -377,7 +377,6 @@ const readOperand = (
export const decodeInstructions = (
il: Buffer,
limit: number,
): {
readonly parsed: readonly ParsedInstruction[];
readonly count: number;
@@ -388,7 +387,7 @@ export const decodeInstructions = (
let offset = 0;
let issue: string | null = null;
try {
while (offset < il.length && parsed.length < limit) {
while (offset < il.length) {
const start = offset;
const first = il.readUInt8(offset);
offset += 1;