feat(ghidra): integrate optional NativeAOT metadata recovery (#748)

* feat(ghidra): integrate optional NativeAOT metadata recovery

* fix(ghidra): bind extension snapshots to configured artifacts

* test(ghidra): verify lazy NativeAOT startup failures

* fix(ghidra): preserve NativeAOT failure reasons and coverage

* fix(ghidra): preserve NativeAOT x64 calling conventions

* test(ghidra): guard recovered NativeAOT method conventions

* fix(ghidra): reject blocking extension file inputs

* fix(ghidra): diagnose incompatible NativeAOT extension classes

* test(ghidra): verify real extension initialization failures

* fix(ghidra): keep extension descriptor fields optional
This commit is contained in:
N0zoM1z0
2026-10-07 00:57:08 +08:00
committed by GitHub
parent 6d1f39b250
commit fb679b63c2
43 changed files with 2695 additions and 22 deletions
+5
View File
@@ -17,6 +17,11 @@ const environmentSchema = z.object({
.min(1)
.refine(isAbsolute, "JAVA_HOME must be absolute")
.optional(),
REA_GHIDRA_NATIVEAOT_JAR: z
.string()
.min(1)
.refine(isAbsolute, "REA_GHIDRA_NATIVEAOT_JAR must be absolute")
.optional(),
REA_ILSPY_CMD_PATH: z
.string()
.min(1)
+3
View File
@@ -27,6 +27,9 @@ export const parseConfig = (
analysisProvider: env.REA_ANALYSIS_PROVIDER,
ghidraInstallDir: env.GHIDRA_INSTALL_DIR,
ghidraJavaHome: env.JAVA_HOME,
...(env.REA_GHIDRA_NATIVEAOT_JAR === undefined
? {}
: { ghidraNativeAotJar: env.REA_GHIDRA_NATIVEAOT_JAR }),
ilspyCmdPath: env.REA_ILSPY_CMD_PATH,
hopperLauncherPath: env.HOPPER_LAUNCHER_PATH ?? defaultHopperLauncherPath(),
hopperTargetPath: env.HOPPER_TARGET_PATH,
+1
View File
@@ -6,6 +6,7 @@ export interface AppConfig {
readonly analysisProvider: AnalysisProviderSelector;
readonly ghidraInstallDir: string | undefined;
readonly ghidraJavaHome: string | undefined;
readonly ghidraNativeAotJar?: string;
readonly ilspyCmdPath: string | undefined;
readonly hopperLauncherPath: string;
readonly hopperTargetPath: string | undefined;