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,10 +5,22 @@ export const ghidraFunctionClassification = () => ({
|
||||
provenance: "ghidra-function-manager" as const,
|
||||
});
|
||||
|
||||
/** Wire-boundary fixture, not evidence that a real Ghidra run was performed. */
|
||||
export const ghidraFunctionBody = () => ({
|
||||
available: true as const,
|
||||
provenance: "ghidra-function-body-address-set",
|
||||
ranges: [{ start: "0x401000", end: "0x401005" }],
|
||||
total_bytes: 6,
|
||||
span_bytes: 6,
|
||||
non_contiguous: false,
|
||||
contains_entry: true,
|
||||
});
|
||||
|
||||
export const ghidraFunctionIdentity = () => ({
|
||||
address: "0x401000",
|
||||
name: "fixture_main",
|
||||
classification: ghidraFunctionClassification(),
|
||||
body: ghidraFunctionBody(),
|
||||
});
|
||||
|
||||
const ghidraReferenceKind = () => ({
|
||||
|
||||
Reference in New Issue
Block a user