feat(ghidra): add DOS MZ analysis and complete function extents (#556)
Validate DOS MZ load modules and import them with Ghidra's 16-bit real-mode profile. Preserve complete observed inclusive function body ranges through inventory, function analysis, Evidence and snapshots. Add a public source-generated DOS CLI/MCP verification lane and regressions for malformed headers, body membership and cache profiles. Assisted-by: Kogasa (gensokyo-skills:kogasa-surprise-testing) Assisted-by: Suika (gensokyo-skills:suika-scatter-gather-planning)
This commit is contained in:
@@ -5,6 +5,7 @@ import {
|
||||
procedureIdentitySchema,
|
||||
localVariableSchema,
|
||||
functionDossierSchema,
|
||||
functionBodySchema,
|
||||
} from "../domain/hopperValues.js";
|
||||
import { analysisProfileSchema } from "../domain/analysisProfile.js";
|
||||
import { evidenceEnvelopeSchema } from "../domain/evidence.js";
|
||||
@@ -49,6 +50,7 @@ export const targetFormatSchema = z.enum([
|
||||
"mach-o",
|
||||
"elf",
|
||||
"pe",
|
||||
"dos-mz",
|
||||
"zip",
|
||||
"ipa",
|
||||
"apk",
|
||||
@@ -467,6 +469,10 @@ export const procedureInfoOutput = resultOf(
|
||||
signature: nullableText,
|
||||
locals: z.array(localVariable),
|
||||
classification: procedureClassificationSchema.nullable().default(null),
|
||||
body: functionBodySchema.default({
|
||||
available: false,
|
||||
reason: "The provider did not report complete function body ranges.",
|
||||
}),
|
||||
}),
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user