Repository navigation
fix(ghidra): refuse ambiguous universal Mach-O imports - #713
Merged
kaoru0822-kitauji merged 1 commit intoOct 6, 2026
Merged
kaoru0822-kitauji merged 1 commit into
kaoru0822-kitauji merged 1 commit into
Conversation
kaoru0822-kitauji
force-pushed
the
fix/ghidra-universal-macho-refusal
branch
from
October 6, 2026 12:01
1911fbf to
6582b24
Compare
darsrc
pushed a commit
to darsrc/rea
that referenced
this pull request
Oct 10, 2026
…ersal-macho-refusal fix(ghidra): refuse ambiguous universal Mach-O imports
2 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
architecture_unsupportedoutcome with the selected and available architectures in diagnosticsCloses #656.
Evidence
Issue #656 records a complete macOS reproduction where REA selects
arm64for a universal Mach-O, but Ghidra imports thex86_64slice and returns x86-64 instructions, sections, and pseudocode under an arm64 subject/profile. The current launcher passes the original universal file to Ghidra's auto-loader without a slice choice.A regression against current
mainfirst observedinspectTargetSupportreturningsupportedfor anx86_64 + arm64Mach-O. The test now verifies that the production provider-support seam returns a typed refusal with both architectures, while a thin arm64 Mach-O remains supported. This implements the issue's accepted safe outcome without changing artifact identity or silently analyzing a different slice.Validation
Passed:
npx vitest run src/ghidra/GhidraProvider.behavior.test.ts(22 tests)npm exec [email protected] -- tsc --noEmitnpm run lintnpm run knipnpm run metadata:checkoxfmt --checkfor both changed filesgit diff --checkMaterially unverified:
npm run checkcould not complete because the repository's TypeScript 7 binary panics while resolving/proc/self/exein this sandbox. Stable TypeScript 5.9 passed; lint, knip, metadata, and targeted formatting were run separately.