Skip to content

fix(ghidra): keep unreported Java bitness unknown - #2771

Closed
yasshmittal wants to merge 13 commits into
morluto:mainfrom
yasshmittal:fix/ghidra-unknown-java-bitness
Closed

yasshmittal wants to merge 13 commits into
morluto:mainfrom
yasshmittal:fix/ghidra-unknown-java-bitness

Conversation

@yasshmittal

@yasshmittal yasshmittal commented Oct 13, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Fixes #2532.

When the Java settings probe reported version, home and VM name but omitted sun.arch.data.model, Ghidra inspection and doctor described the runtime as 0-bit and returned unsupported_version. The probe never established a bitness, so the result stated a measurement that did not exist.

Problem and expected behavior

The probe parser in src/ghidra/GhidraInstallation.ts substituted "0" for the absent property, and the Java check formatted that as a determined 0-bit runtime. AGENTS.md requires unresolved identity to stay unknown. Admission must still be refused until a 64-bit JDK is established, but without claiming a measured incompatible bitness.

Change and scope

  • GhidraJavaObservation.bits is now number | null. The parser returns null when the property is absent or is not a decimal value.
  • A reported value that is not an exactly representable decimal (non-digits, or digits beyond the safe-integer range) is retained as unparsedBits, so absent and malformed reports stay distinguishable (review feedback).
  • javaProperty matches horizontal whitespace only, so an explicitly empty setting returns "" instead of absorbing the next line (review feedback). An empty java.version or java.home still cannot identify the runtime.
  • The Java check describes these as bitness unknown or bitness unknown (sun.arch.data.model = "64-bit") and still fails.
  • When unknown bitness is the only unestablished requirement, the check code is version_unresolved. Known mismatches (32-bit, JRE, wrong major version) keep unsupported_version.

Judgment call for review: the issue does not name a code for unknown bitness. I chose the existing version_unresolved because the runtime's required identity is unresolved rather than known to be incompatible. If you prefer to keep unsupported_version, that is a one-line change and the bitness unknown wording fix stands on its own.

Contribution scope: an ordinary fix within existing boundaries; no maintainer scope decision applies.

Contract and boundary impact

  • Semantic owner and earliest changed stage: Java settings parsing in the system Ghidra installation host (probeJava).

  • Contribution scope fit and linked maintainer decision: not applicable (bug fix).

  • CLI and MCP/tool-catalog contract: the doctor/provider Java check detail changes from 0-bit to bitness unknown, and its code becomes version_unresolved in that case. No schema change.

  • Provider, bridge, target-format, or platform compatibility: JDKs that report bitness behave exactly as before.

  • Evidence, artifact, provenance, or reconstruction contract: unchanged.

  • Target selection, authority, upstream behavior, and cleanup details: Ghidra is not launched; admission still requires an established 64-bit JDK.

  • Generated metadata, package, or installation impact: none.

  • Read existing files or captured data.

  • Launch or attach to a process. (Existing behavior: the java -XshowSettings:properties -version probe, unchanged.)

Evidence and regression coverage

  • Tests added or updated:

    • tests/boundary/filesystem/ghidraJavaProbe.test.ts: the real parser on probe output without sun.arch.data.model gives a failed check, version_unresolved, and detail 21.0.11; bitness unknown; JDK;. An empty sun.arch.data.model = line keeps "" instead of reading the next line. A lossy 9007199254740993 keeps its text instead of reporting 9007199254740992-bit. A malformed 64junk gives version_unresolved and retains the reported text; on the base revision parseInt read it as 64 and the check passed. A 32 control gives 32-bit and unsupported_version.
    • src/ghidra/GhidraInstallation.test.ts: two rows in the existing check-code table (32-bit and unreported bitness).
  • Base reproduction or other evidence: run against the base GhidraInstallation.ts, the new boundary test fails with detail 21.0.11; 0-bit; JDK; …; with this change it passes.

  • User-visible CLI/MCP output: Java check detail 21.0.11; bitness unknown; JDK; <home>; accepted a 64-bit full JDK 21 or newer.

  • Remaining proof gaps: no real JDK that omits the property is known; this was exercised with controlled probe output, as in the issue.

  • Observed, derived, and inferred claims remain distinguishable.

  • Artifact identity, source provenance, and failed attempts remain preserved.

  • Unsupported, incomplete, unavailable, or uncertain outcomes remain visible.

Validation performed

Host: Windows 11, Node.js 24.21.0.

  • npx vitest run --project boundary tests/boundary/filesystem/ghidraJavaProbe.test.ts: 8 passed (fails on the base revision as described above).
  • npm run test:local -- src/ghidra/GhidraInstallation.test.ts: 53 passed.
  • npm run check: passed.
  • npm run verify:test-discovery: passed.

Compatibility, safety, and release

  • Breaking changes or migration steps: none. Behavior changes only when the probe omits bitness.
  • Real Hopper/Ghidra, browser, or OS coverage: Windows only; no real Ghidra lane run (Ghidra is not launched by this path).
  • Package or release metadata impact: none.
  • Security, privacy, process, or containment review: no new processes or I/O; admission stays fail-closed.

Before merge

  • This PR addresses a concrete problem or an agreed enhancement.
  • Material scope and authority questions are resolved, and any required maintainer scope decision covers the final diff.
  • The PR has one focused outcome and the title follows type(scope): outcome.
  • Related issue is linked, or the reason for not linking one is stated above.
  • Tests cover changed observable behavior and meaningful failure paths.
  • Owning docs, contracts, and generated metadata are updated where needed.
  • User-visible CLI/MCP changes include representative output.
  • I checked the final diff for secrets, unrelated cleanup, and unsupported claims.

🤖 Generated with Claude Code

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 13, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-13T19:01:32.834752Z b7bb6d0 New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@greptile-apps

greptile-apps Bot commented Oct 13, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerConfidence Score: 5/5

[Medium impact] The reviewed changes appear safe to merge.

Summary

The PR keeps missing or malformed Java bitness unknown while still refusing admission until a supported 64-bit JDK is established.

  • Ghidra checks keep unreported Java bitness unknown.

Reviews (14) · Last reviewed commit: "test(ghidra): destructure the case name ..." · Reviewed by Greptile

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 9b87b94ea1

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread src/ghidra/GhidraInstallation.ts Resolved

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 257314dfd6

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread src/ghidra/GhidraInstallation.ts Resolved

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 9bc2145017

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread src/ghidra/GhidraInstallation.ts Resolved
yasshmittal and others added 4 commits October 13, 2026 17:37
The Java probe substituted 0 when sun.arch.data.model was absent, so the
Java check described the runtime as 0-bit and reported unsupported_version.
Keep bitness null when it is not reported, describe it as unknown, and
report version_unresolved when it is the only unestablished requirement.
Admission still requires an established 64-bit JDK; known 32-bit runtimes
remain unsupported_version.

Fixes morluto#2532

Co-Authored-By: Claude Opus 5.5 <[email protected]>
A reported sun.arch.data.model that is not decimal was collapsed into the
same null as an omitted property, losing the observed value. Keep it as
unparsedBits and include it in the Java check detail, so absent and
malformed reports remain distinguishable. Cover "64junk", which the
original parseInt read as 64 and admitted.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
javaProperty matched surrounding whitespace with \s, which also consumes
line breaks. An explicitly empty setting such as "sun.arch.data.model ="
therefore took the following line as its value, and could not be told
apart from an absent setting. Match horizontal whitespace only and return
"" for an empty value. An empty java.version or java.home still cannot
identify the runtime.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
An all-digit data model beyond the safe-integer range converted to a
rounded number or Infinity, so the check detail reported a bitness that
was never observed. Accept only an exactly representable decimal and keep
any other reported text as unparsedBits.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@yasshmittal
yasshmittal force-pushed the fix/ghidra-unknown-java-bitness branch from be06143 to e8315ea Compare October 13, 2026 12:09

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 6e47205540

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/ghidra/GhidraInstallation.ts Resolved
javaProperty trimmed all whitespace around a setting value, so a padded
data model such as " 64 " was normalized to "64" and admitted as a 64-bit
runtime, a whitespace-only value became "", and a java.home ending in a
space lost it. -XshowSettings prints "<indent>key = value"; consume the
delimiter and its single space, then keep the value verbatim.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 93d5f95610

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread src/ghidra/GhidraInstallation.ts Resolved
@morluto

morluto commented Oct 13, 2026

Copy link
Copy Markdown
Owner

Review findings addressed at their producing boundaries and consumers. Latest changes were reviewed from source; tests and provider runs were skipped at the maintainer's request. Findings requiring separate decisions or verification remain open.

  1. thread 1

Handled by contributor commit 93d5f95, preserved after live-head verification. The producer now consumes only the property delimiter's optional single formatting space and captures all remaining value whitespace verbatim. Padded numeric and whitespace-only reports therefore remain unknown and their source values survive diagnostics. The contributor added both regressions. I inspected the current parser, exact decimal validator, and bitness diagnostic consumers, then discarded my superseded equivalent local edit and fast-forwarded to their commit. Tests/checks/Java workloads were not run at the user's request. No related cleanup remains.

@yasshmittal

yasshmittal commented Oct 13, 2026 •

Copy link
Copy Markdown
Contributor Author

Thanks @morluto for checking 93d5f95 against the live head and the bitness diagnostic consumers, and for keeping it over your local edit. Glad the verbatim value capture covers both regressions.

@morluto morluto added bug Something isn't working area: native Native analysis and decompilation, including Ghidra, IDA, and Hopper analysis behavior P2: medium Medium priority issue labels Oct 13, 2026
@yasshmittal

Copy link
Copy Markdown
Contributor Author

The failing Static checks job is format:check on tests/fixtures/javaClassFile.ts. That file came in with #2458 and fails oxfmt --check on current main as well. This PR does not touch it: the three changed files (src/ghidra/GhidraInstallation.ts, src/ghidra/GhidraInstallation.test.ts, tests/boundary/filesystem/ghidraJavaProbe.test.ts) pass oxfmt --check.

@greptile-apps

greptile-apps Bot commented Oct 13, 2026

Copy link
Copy Markdown
Contributor

Want your agent to iterate on Greptile's feedback? Try greploops.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: ad062848f6

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/ghidra/GhidraInstallation.ts Resolved
Comment thread src/ghidra/GhidraInstallation.ts Resolved
@morluto

morluto commented Oct 13, 2026

Copy link
Copy Markdown
Owner

Source fixes and publication evidence for the review findings below. Tests and executable checks were skipped at the maintainer's request. Findings that still require a decision or execution evidence remain open.

review thread

The Java probe parser discarded empty java.version and java.home, collapsing an incomplete observation into runtime_missing. The producer now returns a tagged incomplete result retaining empty values, bitness, VM name, and required-property issues; downstream classification keeps version_unresolved and serializes the evidence. Added parser and inspection regressions. Validation: pinned formatter and git diff --check; tests were not run.

The incomplete Java observation cases took the rejection-diagnostics
describe block past the 150-line max-lines-per-function limit enforced by
lint. Move them, unchanged, into their own describe block.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@yasshmittal

Copy link
Copy Markdown
Contributor Author

Thanks for taking the incomplete-observation change into this PR. I ran the checks you skipped against ad06284 (Windows 11 x64, Node 24.21.0):

  • tsc --noEmit: passes.
  • oxfmt --check on the three changed files: passes.
  • GhidraInstallation.test.ts, ghidraJavaProbe.test.ts, GhidraDoctor.test.ts, GhidraProvider.behavior.test.ts: all pass. Your two new incomplete-observation cases pass. Four GhidraLanguageOverride profile tests fail on Windows on unmodified main too, and are unrelated.
  • oxlint found one error: the new cases took the Ghidra installation rejection diagnostics describe block to 187 lines (limit 150). I moved those cases, unchanged, into their own describe block in a30bb98. Lint is now clean for the file, and GhidraInstallation.test.ts passes (57/57).

I pushed a30bb98 without the local pre-push hook. The hook fails only on tests/boundary/providers/ghidra/ghidraLauncher.test.ts (#2470), which is present in this branch's merged base and untouched here.

Comment thread src/ghidra/GhidraInstallation.ts Resolved

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 38c6cde298

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/ghidra/GhidraInstallation.ts Resolved
Comment thread src/ghidra/GhidraInstallation.ts Resolved
@morluto

morluto commented Oct 13, 2026

Copy link
Copy Markdown
Owner

Source fixes and publication evidence for the review findings below. Tests and executable checks were skipped at the maintainer's request. Findings that still require a decision or execution evidence remain open.

review thread

Addressed: Preserve known mismatch codes for incomplete Java probes. The reported trigger was: When a required property is empty but another retained fact already proves incompatibility—for example, java.version="" with bits: 32/runtime: "jre", or java.home="" with major 17—this unconditional branch returns version_unresolved. The complete-observation path classifies those same known 32-bit, JRE, and… Owner-level correction: Incomplete Java probe classification retains known incompatibility facts and prioritizes unsupported_version when available known facts already prove incompatibility. This puts the interpretation in the producing representation/owner and lets consumers use that shared fact. The change is at public head 38c6cde298795ae04f67ab9c8de1b185a4830af1; fork ref yasshmittal/rea/fix/ghidra-unknown-java-bitness matches the PR head, and the assigned frozen head is its ancestor. Validation: Pinned oxfmt and git diff --check passed. Tests, builds, typechecks, lint, provider workloads, and CI reruns were not run. No additional cleanup is identified for this finding.

review thread

Addressed: Keep runtime evidence in incomplete Java diagnostics. The reported trigger was: When java.version is empty but java.home is present, the parser still probes javac and stores runtime, yet this incomplete-check detail never emits it; the inspection and ghidraInstallationDiagnostics expose no separate runtime field, so provider/doctor output drops whether the observed home is a JDK or runtime-only.… Owner-level correction: Java installation detail includes the observed runtime classification even when java.version is missing, preserving the partial JDK/JRE fact to installation diagnostics consumers. This puts the interpretation in the producing representation/owner and lets consumers use that shared fact. The change is at public head 38c6cde298795ae04f67ab9c8de1b185a4830af1; fork ref yasshmittal/rea/fix/ghidra-unknown-java-bitness matches the PR head, and the assigned frozen head is its ancestor. Validation: Pinned oxfmt and git diff --check passed. Tests, builds, typechecks, lint, provider workloads, and CI reruns were not run. No additional cleanup is identified for this finding.

@yasshmittal

Copy link
Copy Markdown
Contributor Author

Ran the skipped checks on 38c6cde (Windows 11 x64, Node 24.21.0):

  • tsc --noEmit: passes.
  • oxfmt --check and oxlint on the three changed files: pass, no errors.
  • GhidraInstallation.test.ts, ghidraJavaProbe.test.ts, GhidraDoctor.test.ts and GhidraProvider.behavior.test.ts: 128 passed, including the mismatch-fact cases for incomplete probes.

@morluto

morluto commented Oct 13, 2026

Copy link
Copy Markdown
Owner

Source fixes and publication evidence for the review findings below. Tests and executable checks were skipped at the maintainer's request. Findings that still require a decision or execution evidence remain open.

review thread, review thread

The owner-level fix is public in c21fae98ae18ff8f8d3c99193ed1ab01d30d18ca: major mismatch requires a safe parsed integer and resolved bounds; all known bitness other than 64 is unsupported, while unknown evidence remains unresolved. Added regressions cover unparseable major, unresolved bounds, and 16/128-bit values. The captured CI failure was on merge commit 225a2104, reporting unrelated comparison assertions and /proc/1036/exe EACCES; no local checks or tests were run, as instructed.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: b3f8d2c660

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

const javaProperty = (output: string, name: string): string | null =>
new RegExp(
`^\\s*${name.replaceAll(".", "\\.")}\\s*=\\s*(.+?)\\s*$`,
`^[ \\t]*${name.replaceAll(".", "\\.")}[ \\t]*= ?([^\\r\\n]*)$`,

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Stop values at Unicode line separators

When a selected Java launcher emits U+2028 or U+2029 line separators (reproduced with the installed OpenJDK 25 using line.separator), this negated class does not stop at the separator even though the regex's m-mode $ recognizes it as a line boundary. The greedy capture therefore folds all following settings into java.version, java.home, and sun.arch.data.model, causing a valid JDK to be reported as runtime-only with unknown bitness instead of preserving the individual observations; exclude every ECMAScript line terminator or split the output using the same line grammar.

AGENTS.md reference: AGENTS.md:L29-L29

Useful? React with 👍 / 👎.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: b7bb6d0ea6

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

if (observation.bits !== null) return `${String(observation.bits)}-bit`;
return observation.unparsedBits === undefined
? "bitness unknown"
: `bitness unknown (sun.arch.data.model = ${JSON.stringify(observation.unparsedBits)})`;

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Bound malformed bitness text in diagnostics

When a selected Java launcher emits a malformed sun.arch.data.model line near the 1 MiB probe budget, this renders the entire retained value into check.detail. ghidraInstallationDiagnostics and the doctor projection publish that string (and the doctor report carries both provider and projected checks), so one malformed property can produce megabyte-scale provider/CLI output and consume an agent context even though only a preview plus length/digest is needed; retain the source observation separately but bound the displayed diagnostic.

AGENTS.md reference: AGENTS.md:L41-L45

Useful? React with 👍 / 👎.

morluto added a commit that referenced this pull request Oct 14, 2026
Share tagged readiness observations, retain partial provider facts, authenticate bridge identity, bound diagnostics, and preserve cancellation and lost-session reasons. Fail closed for unparsed MIPS ABI attributes and macOS saved Hopper databases without a script-capable bridge route.

Reviewed fixes: #2010, #2108, #2513, #2695, #2731, #2771, #2828, #2867, #2868, #2870, #2880, #2919, #2945, #2961, #2981, #2998, #3000, #3002.

Validation: 285 focused source/boundary tests passed. Real Ghidra, IDA, Linux Hopper, and Windows provider runs were not repeated.

BREAKING CHANGE: MIPS targets with unresolved GNU ABI attributes and saved Hopper databases on macOS are refused rather than advertised as supported.
…ases

The incomplete-evidence matrix read `name` without destructuring it from
the case, which fails typechecking (TS2304) and makes every case throw.
Destructure `name` so each case selects its expected check code.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@yasshmittal

Copy link
Copy Markdown
Contributor Author

Thanks @morluto for including #2771 and #2867 in d4bd65c, and for all the review work on both. If it's easy in future batch merges, a Co-authored-by: yasshmittal <[email protected]> trailer would credit contributors in GitHub's history. No worries if not; I'm glad the fixes landed.

@morluto

morluto commented Oct 15, 2026

Copy link
Copy Markdown
Owner

Compared this PR with main fc712b375 during the fixed/superseded backlog audit.

Main already preserves unknown/malformed Java bitness. The remaining distinct case here is successful probe output with empty java.version or java.home: main discards that result, losing partial observations.

Please narrow the PR around that partial-evidence ownership. Keep known JDK/JRE, VM name, bitness and source property facts even when identity is incomplete; report known mismatches only from safely parsed values and resolved bounds, and retain unknowns otherwise. The existing branch review updates address these details in source, but this triage comparison does not supply the missing executed verification.

PR head reviewed: 2a1ecbec8. This is a source comparison; no new PR-branch tests or provider runs were performed for this comment.

@morluto

morluto commented Oct 18, 2026

Copy link
Copy Markdown
Owner

Backlog check: this PR remains open. Full qualification was requested with ci:full, but GitHub reports merge conflicts with the base branch and no current CI qualification run appeared.

Please resolve the conflicts and push the updated branch so CI can qualify the new revision. The ci:full label is retained. PR readiness has also been re-enabled; its human declarations remain for the author to complete. This comment does not claim the PR is fixed, merged, or passing.

@N0zoM1z0

Copy link
Copy Markdown
Collaborator

Thank you for this. Main already keeps unreported or malformed Java bitness unknown: src/ghidra/GhidraJavaProbe.ts:364-390 yields bits: null/unparsedBits, and src/ghidra/GhidraInstallation.ts:1053-1080 reports "bitness unknown" as version_unresolved (d4bd65c, c75cf82). Closing as superseded.

@N0zoM1z0 N0zoM1z0 closed this Nov 14, 2026
@morluto morluto added the provider: ghidra Analysis provider / engine: ghidra label Nov 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: native Native analysis and decompilation, including Ghidra, IDA, and Hopper analysis behavior bug Something isn't working ci:full P2: medium Medium priority issue provider: ghidra Analysis provider / engine: ghidra

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(ghidra): missing Java bitness is reported as a 0-bit runtime

3 participants