Repository navigation
fix(ghidra): name the code seed recovery for addresses outside the listing - #10682
Conversation
…sting inspect_native_instruction reports `not-in-listing` when an address lies in Ghidra's memory but the listing has no instruction or defined data there. No decode is attempted, so the answer does not show the bytes are data, yet the result named no way forward. morluto#10623 added the declared-seed recovery for procedure_not_found and not_in_procedure; this is the instruction-level sibling, where a `code` seed applies. A not-in-listing answer now carries ghidraNotInListingLimitation(source). It names a `code` seed (or a `function` seed for an entry point) in REA_GHIDRA_SEED_FILE, says which setting to unset first for a selected project or checkpoint, and does not assert that the address holds code. decoded, data and other statuses are unchanged. The installation guide's seed section lists the new carrier. Validation: src/ghidra/GhidraProvider.behavior.test.ts fails 1/298 with the caveat removed and passes 298/298 with it; check:fast passes. No real Ghidra run. Refs morluto#3767
Codex Review Summary: ❌ FailedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits. |
[Low impact] The PR appears safe to merge. SummaryAdds seed recovery guidance to
No actionable correctness, security, or repository-rule violations were found. Tests were inspected but not run during this review; real Ghidra behavior was not exercised. Supersession could not be checked because GitHub access required authentication. Reviews (2) · Last reviewed commit: "fix(ghidra): name the code seed recovery..." · Reviewed by Greptile |
|
Ready to merge: full CI is green on this head, Greptile's latest review is 5/5 with no open threads, and it merges into main 42cab26 without conflicts. |
gensokyo-dev
left a comment
There was a problem hiding this comment.
Verified: the Ghidra behavior suite passes (298), and the not-in-listing limitation follows the existing seed-recovery wording and per-source restriction. It is added only for inspect_native_instruction's not-in-listing status. Thanks.
Summary
Refs #3767. Follows up #10623.
inspect_native_instructionreportsnot-in-listingwhen an address lies in Ghidra's memory but the listing has no instruction or defined data there. No decode is attempted, so the answer does not show that the bytes are data, yet it named no way forward. This is the instruction-level sibling of #10623's recovery: acodeseed applies here.Change and scope
GhidraProviderCapabilities.ts: addsghidraNotInListingLimitation(source). It names acodeseed, or afunctionseed for an entry point, inREA_GHIDRA_SEED_FILE. Like fix(ghidra): name the declared-seed recovery when no function covers an address #10623, it reuses the same session-source restriction, naming the setting to unset first for a selected project or checkpoint. It does not assert that the address holds code.GhidraProviderClient.ts: anot-in-listinganswer gets that limitation through the same absence-caveat path.decoded,dataand other statuses are unchanged.installation.md: the seed section lists the new carrier.Evidence and regression coverage
src/ghidra/GhidraProvider.behavior.test.tsadds 3 cases:not-in-listinganswer carries exactly the code seed limitation;decodedanddataanswers carry no seed recovery.Validation performed
npm run test:local -- src/ghidra/GhidraProvider.behavior.test.ts: 298 passed.npm run check:fastpassed.Author readiness
Human owner: @Davmunrey
Before merge
type(scope): outcome.