diff --git a/.github/workflows/ghidra-bridge-sources.yml b/.github/workflows/ghidra-bridge-sources.yml index 451b5b519d..71b5dde25a 100644 --- a/.github/workflows/ghidra-bridge-sources.yml +++ b/.github/workflows/ghidra-bridge-sources.yml @@ -38,8 +38,8 @@ jobs: runs-on: ubuntu-24.04 timeout-minutes: 20 env: - GHIDRA_RELEASE_URL: https://github.com/NationalSecurityAgency/ghidra/releases/download/Ghidra_12.1.4_build/ghidra_12.1.4_PUBLIC_20260921.zip - GHIDRA_RELEASE_SHA256: ddac49f903da9d5bac833e5cc79395098b9c33cfd3279be5f31bd00387d2d4db + GHIDRA_RELEASE_URL: https://github.com/NationalSecurityAgency/ghidra/releases/download/Ghidra_12.2_build/ghidra_12.2_PUBLIC_20261016.zip + GHIDRA_RELEASE_SHA256: 2c2cd776db3c1f6a097ba418922378ac3649cadd5e844a6f5f088ae628a7be67 steps: - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0 - uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0 diff --git a/.github/workflows/real-ghidra-windows.yml b/.github/workflows/real-ghidra-windows.yml index 2c8da4436a..3f0c8a927f 100644 --- a/.github/workflows/real-ghidra-windows.yml +++ b/.github/workflows/real-ghidra-windows.yml @@ -50,10 +50,12 @@ jobs: if-no-files-found: error verify: - name: Real Ghidra 12.1.4 Windows x64 PE proof + name: Real Ghidra 12.2 Windows x64 PE proof if: github.ref == 'refs/heads/main' needs: native-artifact environment: real-ghidra-windows + # The fleet label is unchanged. The machine must provide verified Ghidra + # 12.2 and a JDK inside that install's declared range (JDK 25+). runs-on: [self-hosted, Windows, x64, ghidra-12-1-2] timeout-minutes: 20 steps: diff --git a/THIRD_PARTY_NOTICES.md b/THIRD_PARTY_NOTICES.md index 1e87d3e8a0..853b8b0cbb 100644 --- a/THIRD_PARTY_NOTICES.md +++ b/THIRD_PARTY_NOTICES.md @@ -54,27 +54,27 @@ REA's adapters do not grant, replace, or waive these licenses. The upstream executables and their dependency graphs are supplied separately. Git submodules pin inspection sources; they are not included in the npm package. -| Project | License and source | REA relationship | -| ------------------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| Ghidra | [Apache-2.0](https://github.com/NationalSecurityAgency/ghidra/blob/Ghidra_12.1.4_build/LICENSE), with the government-work and component qualifications in its [NOTICE](https://github.com/NationalSecurityAgency/ghidra/blob/Ghidra_12.1.4_build/NOTICE) | Bring your own Ghidra; see [supported versions](docs/getting-started/installation.md#ghidra). Copies of the 12.1.4 [LICENSE](licenses/ghidra-12.1.4-LICENSE.txt), [NOTICE](licenses/ghidra-12.1.4-NOTICE.txt), and [DISCLAIMER](licenses/ghidra-12.1.4-DISCLAIMER.txt) are retained for reference. | -| ghidra-nativeaot | [MIT](https://github.com/Washi1337/ghidra-nativeaot/blob/effeb734fc570c32650f88b159608979dc7b423e/LICENSE.md) | Pinned inspection source; derived parser attribution above. | -| JADX | [Apache-2.0](https://github.com/skylot/jadx/blob/v1.5.6/LICENSE) | The audited jadx-headless-mcp source uses JADX 1.5.6 for Android decompilation; the engine JAR is separately supplied. | -| jadx-headless-mcp | [Apache-2.0](https://github.com/1013503897/jadx-headless-mcp/blob/5844800a486d2248fa949b74c9896285f5b54de2/LICENSE) | v0.7.1; pinned submodule and user-supplied JAR. | -| Kuna | [Apache-2.0](https://github.com/Noelo-Lab/kuna/blob/v1.990/LICENSE), with its [NOTICE](https://github.com/Noelo-Lab/kuna/blob/v1.990/NOTICE) | Bring your own `kuna`; REA verified 1.990 and never downloads, installs or bundles it. REA invokes it as a separate process. | -| Apktool | [Apache-2.0](https://github.com/iBotPeaches/Apktool/blob/master/LICENSE.md) | User-supplied Android resource decoder. | -| Binwalk | [MIT](https://github.com/ReFirmLabs/binwalk/blob/4fdab3d464d97b68e0af9088df3f9e2e1545b21c/LICENSE) | v3.1.0; pinned submodule and user-supplied firmware engine. | -| Unblob | [MIT](https://github.com/onekey-sec/unblob/blob/1fcc7a0a584a70a96c31f5a276c20944d199a089/LICENSE) | 26.6.4; pinned submodule and user-supplied firmware engine. | -| Wakaru | [Apache-2.0](https://github.com/pionxzh/wakaru/blob/8219bf5016a063d7fb215101a8c45d5959ec733f/LICENSE) | v1.14.0; pinned source and separately obtained JavaScript reconstruction tooling. | -| WABT | [Apache-2.0](https://github.com/WebAssembly/wabt/blob/ff0ef7e0009402740c805a9744c09b05be063e48/LICENSE) | v1.0.42; external WebAssembly tools; [integration provenance](third_party/wabt/README.md). | -| pwntools | [MIT, with GPL/BSD component qualifications](https://github.com/Gallopsled/pwntools/blob/3ad86ec5adab1abf9781ca7552a6f5d7cff7a33c/LICENSE-pwntools.txt) | 4.15.0; caller-supplied offline ELF analysis package. | -| pyelftools | [Public-domain dedication and component notices](https://github.com/eliben/pyelftools/blob/v0.33/LICENSE) | 0.33; includes separately licensed bundled material, including Construct. | -| Unicorn | [GPL-2.0 and component notices](https://github.com/unicorn-engine/unicorn/blob/2.1.2/COPYING) | 2.1.2; used by the caller-supplied ELF analysis profile for instruction emulation. | -| pwndbg | [MIT](third_party/pwndbg/LICENSE.md) | 2026.09.15, commit `55596aa676a2756efb8d67034f31675170eabe48`; separately obtained debugger extension. | -| GNU GDB | [GPL-3.0-or-later](https://sourceware.org/git/?p=binutils-gdb.git;a=blob;f=gdb/COPYING) | Caller-supplied debugger for the optional pwndbg core-file workflow. | -| LLDB / LLVM | [Apache-2.0 with LLVM exceptions](https://github.com/llvm/llvm-project/blob/main/LICENSE.TXT) | Caller-supplied debugger; the installed distribution's component and historical notices also apply. | -| mitmproxy | [MIT](https://github.com/mitmproxy/mitmproxy/blob/6c09d56e4c29a92f5ad01b03199977584b8ea14f/LICENSE) | 12.2.3; separately supplied network capture proxy. | -| Android Debug Bridge (adb) | [Apache-2.0](https://android.googlesource.com/platform/packages/modules/adb/+/refs/heads/main/NOTICE) | User-supplied Android device tool. A complete Android SDK download has its own [SDK license terms](https://developer.android.com/studio/terms); adb's source license does not replace them. | -| ILSpy / ICSharpCode.Decompiler | [MIT](https://github.com/icsharpcode/ILSpy/blob/master/ICSharpCode.Decompiler/Properties/AssemblyInfo.cs) | Optional separately installed .NET decompiler; not a redistributed REA dependency. | +| Project | License and source | REA relationship | +| ------------------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| Ghidra | [Apache-2.0](https://github.com/NationalSecurityAgency/ghidra/blob/Ghidra_12.2_build/LICENSE), with the government-work and component qualifications in its [NOTICE](https://github.com/NationalSecurityAgency/ghidra/blob/Ghidra_12.2_build/NOTICE) | Bring your own Ghidra; see [supported versions](docs/getting-started/installation.md#ghidra). Copies of the 12.2 [LICENSE](licenses/ghidra-12.2-LICENSE.txt), [NOTICE](licenses/ghidra-12.2-NOTICE.txt), and [DISCLAIMER](licenses/ghidra-12.2-DISCLAIMER.txt) are retained for reference. | +| ghidra-nativeaot | [MIT](https://github.com/Washi1337/ghidra-nativeaot/blob/effeb734fc570c32650f88b159608979dc7b423e/LICENSE.md) | Pinned inspection source; derived parser attribution above. | +| JADX | [Apache-2.0](https://github.com/skylot/jadx/blob/v1.5.6/LICENSE) | The audited jadx-headless-mcp source uses JADX 1.5.6 for Android decompilation; the engine JAR is separately supplied. | +| jadx-headless-mcp | [Apache-2.0](https://github.com/1013503897/jadx-headless-mcp/blob/5844800a486d2248fa949b74c9896285f5b54de2/LICENSE) | v0.7.1; pinned submodule and user-supplied JAR. | +| Kuna | [Apache-2.0](https://github.com/Noelo-Lab/kuna/blob/v1.990/LICENSE), with its [NOTICE](https://github.com/Noelo-Lab/kuna/blob/v1.990/NOTICE) | Bring your own `kuna`; REA verified 1.990 and never downloads, installs or bundles it. REA invokes it as a separate process. | +| Apktool | [Apache-2.0](https://github.com/iBotPeaches/Apktool/blob/master/LICENSE.md) | User-supplied Android resource decoder. | +| Binwalk | [MIT](https://github.com/ReFirmLabs/binwalk/blob/4fdab3d464d97b68e0af9088df3f9e2e1545b21c/LICENSE) | v3.1.0; pinned submodule and user-supplied firmware engine. | +| Unblob | [MIT](https://github.com/onekey-sec/unblob/blob/1fcc7a0a584a70a96c31f5a276c20944d199a089/LICENSE) | 26.6.4; pinned submodule and user-supplied firmware engine. | +| Wakaru | [Apache-2.0](https://github.com/pionxzh/wakaru/blob/8219bf5016a063d7fb215101a8c45d5959ec733f/LICENSE) | v1.14.0; pinned source and separately obtained JavaScript reconstruction tooling. | +| WABT | [Apache-2.0](https://github.com/WebAssembly/wabt/blob/ff0ef7e0009402740c805a9744c09b05be063e48/LICENSE) | v1.0.42; external WebAssembly tools; [integration provenance](third_party/wabt/README.md). | +| pwntools | [MIT, with GPL/BSD component qualifications](https://github.com/Gallopsled/pwntools/blob/3ad86ec5adab1abf9781ca7552a6f5d7cff7a33c/LICENSE-pwntools.txt) | 4.15.0; caller-supplied offline ELF analysis package. | +| pyelftools | [Public-domain dedication and component notices](https://github.com/eliben/pyelftools/blob/v0.33/LICENSE) | 0.33; includes separately licensed bundled material, including Construct. | +| Unicorn | [GPL-2.0 and component notices](https://github.com/unicorn-engine/unicorn/blob/2.1.2/COPYING) | 2.1.2; used by the caller-supplied ELF analysis profile for instruction emulation. | +| pwndbg | [MIT](third_party/pwndbg/LICENSE.md) | 2026.09.15, commit `55596aa676a2756efb8d67034f31675170eabe48`; separately obtained debugger extension. | +| GNU GDB | [GPL-3.0-or-later](https://sourceware.org/git/?p=binutils-gdb.git;a=blob;f=gdb/COPYING) | Caller-supplied debugger for the optional pwndbg core-file workflow. | +| LLDB / LLVM | [Apache-2.0 with LLVM exceptions](https://github.com/llvm/llvm-project/blob/main/LICENSE.TXT) | Caller-supplied debugger; the installed distribution's component and historical notices also apply. | +| mitmproxy | [MIT](https://github.com/mitmproxy/mitmproxy/blob/6c09d56e4c29a92f5ad01b03199977584b8ea14f/LICENSE) | 12.2.3; separately supplied network capture proxy. | +| Android Debug Bridge (adb) | [Apache-2.0](https://android.googlesource.com/platform/packages/modules/adb/+/refs/heads/main/NOTICE) | User-supplied Android device tool. A complete Android SDK download has its own [SDK license terms](https://developer.android.com/studio/terms); adb's source license does not replace them. | +| ILSpy / ICSharpCode.Decompiler | [MIT](https://github.com/icsharpcode/ILSpy/blob/master/ICSharpCode.Decompiler/Properties/AssemblyInfo.cs) | Optional separately installed .NET decompiler; not a redistributed REA dependency. | Ghidra's original notice credits software developed at the National Security Agency. It explains that US-government-created portions are not subject to US diff --git a/bridge/ghidra/ReaGhidraMipsSoftFloat.java b/bridge/ghidra/ReaGhidraMipsSoftFloat.java index 9d31f5f5bb..ae1b6940d3 100644 --- a/bridge/ghidra/ReaGhidraMipsSoftFloat.java +++ b/bridge/ghidra/ReaGhidraMipsSoftFloat.java @@ -67,6 +67,7 @@ public final class ReaGhidraMipsSoftFloat extends GhidraScript { FloatDataType.dataType, IntegerDataType.dataType, DoubleDataType.dataType, FloatDataType.dataType, DoubleDataType.dataType }, + false, false), "soft-float prototype self-check"); int functions = 0; diff --git a/bridge/ghidra/ReaGhidraRiscvCallingConvention.java b/bridge/ghidra/ReaGhidraRiscvCallingConvention.java index 7e857bb029..4f501c6114 100644 --- a/bridge/ghidra/ReaGhidraRiscvCallingConvention.java +++ b/bridge/ghidra/ReaGhidraRiscvCallingConvention.java @@ -218,6 +218,7 @@ public final class ReaGhidraRiscvCallingConvention extends GhidraScript { DoubleDataType.dataType, FloatDataType.dataType, DoubleDataType.dataType, IntegerDataType.dataType, pair, Float16DataType.dataType }, + false, false); VariableStorage quad = storage[storage.length - 1]; if (quad.size() != currentProgram.getDefaultPointerSize() || quad.getRegister() == null) diff --git a/docs/getting-started/installation.md b/docs/getting-started/installation.md index b119a7af6d..f67f0be2b4 100644 --- a/docs/getting-started/installation.md +++ b/docs/getting-started/installation.md @@ -1182,17 +1182,37 @@ copying license secrets into logs, or killing unrelated Hopper processes. REA connects to an existing Ghidra installation on Linux x64/arm64, macOS x64/arm64, or experimental Windows x64 P0. -It accepts Ghidra 12.x (>=12.1) and the 64-bit full JDK declared by that installation's +It accepts Ghidra 12.x (>=12.2) and the 64-bit full JDK declared by that installation's `application.java.min` and `application.java.max`. The JDK's reported platform must also map to the same native decompiler directory as the host: a JDK running under emulation (for example x86_64 under Rosetta on Apple silicon) or reporting a non-host `os.name` fails the doctor even when it is an otherwise accepted 64-bit full JDK. Select a matching JDK through `JAVA_HOME`; adding another decompiler in the JVM-selected directory -does not satisfy this host-validated admission rule. Current 12.1 releases require -JDK 21 or newer; Ghidra 12.2 declares JDK 25 or newer. Neither sets a maximum. -The bridge is verified with Ghidra 12.1.4 -and JDK 21. Each installation must include the native decompiler for the host +does not satisfy this host-validated admission rule. Ghidra 12.2 declares +JDK 25 or newer and sets no maximum. The bridge is verified with Ghidra 12.2 +and JDK 25. Ghidra 12.1 is not accepted: the bridge calls +`PrototypeModel.getStorageLocations` with the four-argument form added in 12.2, +and 12.1 only has the three-argument method. A session whose parsed +`application.version` is 12.2 with patch 0 records known provider +defect `ghidra-9996`: Clang `-O0` x86-64 switches whose case labels start above +zero can lose jump-table flow references and yield incorrect decompiler output. +`12.2`, `12.2.0`, and `12.2.0` with a suffix all carry it. +[Ghidra #9996](https://github.com/NationalSecurityAgency/ghidra/issues/9996) is +closed by `c93917a622211349998f641de54cfdbe0e0e5bee` and milestoned for 12.2.1, +which is not yet released. The limitation clears on parsed `12.2.1` and is +absent from later patches and later minors. REA's switch verifier compiles with `-O2`, so it does not +detect this shape. Every admitted session also records `ghidra-10154`. +[Ghidra #10154](https://github.com/NationalSecurityAgency/ghidra/issues/10154) +is open: an AArch64 byte-offset switch bounded only by `and #0xff` loses its +jump table and the function body stops at the indirect branch. The report's +example is an optimized Swift enum switch. REA reproduced that instruction +shape on 12.2 with an AArch64 ELF object whose table has 256 readable bytes. +A compare-bounded byte switch in that same object still recovers. The issue has no fix commit and no +milestone, so the record stays on `12.2.1` and every other admitted build +until a release is known to clear it. + +Each installation must include the native decompiler for the host architecture in `Ghidra/Features/Decompiler/os//` or the corresponding `build/os//` directory. Linux ARM64 uses `linux_arm_64`; official release archives may require you to build that native component separately. @@ -1253,8 +1273,8 @@ limitations. Extract Ghidra and install the JDK outside REA, then export absolute paths: ```bash -export GHIDRA_INSTALL_DIR=/absolute/path/to/ghidra_12.1.4_PUBLIC -export JAVA_HOME=/absolute/path/to/jdk-21 # optional if java/javac are on PATH +export GHIDRA_INSTALL_DIR=/absolute/path/to/ghidra_12.2_PUBLIC +export JAVA_HOME=/absolute/path/to/jdk-25 # optional if java/javac are on PATH rea doctor --json rea setup ``` @@ -1279,8 +1299,8 @@ and any parsed properties when the selected runtime cannot be admitted. On Windows, configure the existing installation in PowerShell: ```powershell -$env:GHIDRA_INSTALL_DIR = "C:\tools\ghidra_12.1.4_PUBLIC" -$env:JAVA_HOME = "C:\Program Files\Java\jdk-21" +$env:GHIDRA_INSTALL_DIR = "C:\tools\ghidra_12.2_PUBLIC" +$env:JAVA_HOME = "C:\Program Files\Java\jdk-25" rea doctor --json rea providers --json ``` @@ -1354,7 +1374,7 @@ the application metadata and headless launcher. An explicitly supplied REA reports that error instead of silently selecting another installation. This discovery is read-only and does not execute the Ghidra launcher. -Doctor validates the platform, architecture, Ghidra 12.x (>=12.1) application version, +Doctor validates the platform, architecture, Ghidra 12.x (>=12.2) application version, `support/analyzeHeadless` or `support/analyzeHeadless.bat`, the installation's Java major range, 64-bit JDK bitness, and the presence of `javac`/`javac.exe`. It also checks that the reported JVM `os.arch` and `os.name` map to the same native decompiler @@ -1537,10 +1557,14 @@ pseudocode is never treated as original source or Hopper-equivalent text. ### Missing macOS native decompiler -If `rea doctor --json` reports `native_decompiler` as missing on macOS x64, -the extracted Ghidra archive may include the decompiler source without the -macOS executable. For Ghidra 12.1.4, you can build it manually with an existing -Xcode Command Line Tools installation, `make`, and `bison`: +If `rea doctor --json` reports `native_decompiler` as missing on macOS x64 or +arm64, the official release archive does not ship a macOS decompiler. Ghidra +12.2's `ghidra_12.2_PUBLIC_20261016.zip` includes only `os/linux_x86_64` and +`os/win_x86_64`, the same gap tracked in +[#7018](https://github.com/morluto/rea/issues/7018) and +[#7019](https://github.com/morluto/rea/issues/7019). The archive includes the +decompiler source. For Ghidra 12.2, you can build the executable manually with +an existing Xcode Command Line Tools installation, `make`, and `bison`: ```bash cd "$GHIDRA_INSTALL_DIR/Ghidra/Features/Decompiler/src/decompile/cpp" @@ -1554,10 +1578,10 @@ rea doctor --json The copy step requires the destination to be absent and preserves an existing decompiler. This recipe is specific to macOS x64: the -[Ghidra 12.1.4 Makefile](https://github.com/NationalSecurityAgency/ghidra/blob/Ghidra_12.1.4_build/Ghidra/Features/Decompiler/src/decompile/cpp/Makefile) +[Ghidra 12.2 Makefile](https://github.com/NationalSecurityAgency/ghidra/blob/Ghidra_12.2_build/Ghidra/Features/Decompiler/src/decompile/cpp/Makefile) explicitly selects `-arch x86_64` on Darwin. For a Gradle build, follow the matching release's -[native component instructions](https://github.com/NationalSecurityAgency/ghidra/blob/Ghidra_12.1.4_build/GhidraDocs/GettingStarted.md#building-native-components). +[native component instructions](https://github.com/NationalSecurityAgency/ghidra/blob/Ghidra_12.2_build/GhidraDocs/GettingStarted.md#building-native-components). REA accepts the matching executable under either `os//` or `build/os//`; it does not build the component during setup or diagnosis. @@ -1565,8 +1589,8 @@ REA accepts the matching executable under either `os//` or On Apple Silicon the same source build works with explicit overrides; no Makefile edits and no Rosetta are needed. The Darwin block in the -[Ghidra 12.1.4 Makefile](https://github.com/NationalSecurityAgency/ghidra/blob/Ghidra_12.1.4_build/Ghidra/Features/Decompiler/src/decompile/cpp/Makefile) -pins `-arch x86_64`, but `ARCH_TYPE` and `OSDIR` are ordinary make variables, +[Ghidra 12.2 Makefile](https://github.com/NationalSecurityAgency/ghidra/blob/Ghidra_12.2_build/Ghidra/Features/Decompiler/src/decompile/cpp/Makefile) +still pins `-arch x86_64` and `OSDIR=mac_x86_64`, but `ARCH_TYPE` and `OSDIR` are ordinary make variables, and command-line assignments replace them for every compile and link rule: ```bash @@ -1850,7 +1874,7 @@ before opening a new Ghidra session. On Linux and macOS, REA chooses the first nonempty setting in this order: `GHIDRA_HEADLESS_MAXMEM`, `GHIDRA_MAXMEM`, then `2G`. The chosen value becomes the JVM's `-Xmx` argument. Use a JVM heap-size value such as `512M` or `2G`; an invalid value causes Java startup to fail. -The supported Ghidra 12.1.4 Windows headless script consumes the same settings +The supported Ghidra 12.2 Windows headless script consumes the same settings with the same precedence. For a small target on a constrained host: diff --git a/docs/guides/firmware/firmware-analysis.md b/docs/guides/firmware/firmware-analysis.md index d5a1639db5..89a743aac3 100644 --- a/docs/guides/firmware/firmware-analysis.md +++ b/docs/guides/firmware/firmware-analysis.md @@ -299,7 +299,7 @@ Additional lanes are explicit, so the base lane stays small: REA_FIRMWARE_VERIFY_EXT4=1 npm run fixtures:firmware REA_FIRMWARE_VERIFY_EXT4=1 npm run verify:firmware -# Existing Ghidra 12.x (>=12.1) and its declared JDK required. +# Existing Ghidra 12.x (>=12.2) and its declared JDK required. REA_FIRMWARE_VERIFY_GHIDRA=1 npm run verify:firmware ``` diff --git a/docs/guides/native/native-investigation.md b/docs/guides/native/native-investigation.md index d214aa3816..de0ec97108 100644 --- a/docs/guides/native/native-investigation.md +++ b/docs/guides/native/native-investigation.md @@ -1376,7 +1376,7 @@ is present. A denied trace reports the `debugger-attach-denied` reason. ## Provider and verification boundaries -Install a Ghidra 12.x (>=12.1) release and the 64-bit full JDK it declares, then configure REA to +Install a Ghidra 12.x (>=12.2) release and the 64-bit full JDK it declares, then configure REA to use them. Ghidra analysis supports Linux x64/arm64 and macOS x64/arm64; each installation requires the matching native decompiler. Experimental Windows x64 P0 admits native x86, x86-64, ARMNT (Thumb-2) and ARM64 PE applications and DLLs, [DOS MZ @@ -1460,7 +1460,8 @@ before any comment or name is changed. - `npm run verify:ghidra`: host-native debug/stripped targets, native type layout, instruction/call facts, value dependencies and process/project cleanup. - `npm run verify:ghidra:aarch64-jump-table`: optimized ELF and byte/halfword - relative tables, plus ARM64 Mach-O on an ARM64 macOS host. + relative tables, plus ARM64 Mach-O on an ARM64 macOS host. The `and #0xff` + byte-offset fixture is expected to stay unrecovered on Ghidra 12.2. - `npm run verify:apple-dispatch`: source-built Objective-C protocols, classes, properties and categories, and Swift conformances and vtables. Each is linked with legacy `LC_DYLD_INFO` and with chained fixups (and as arm64e on Apple diff --git a/docs/providers/ghidra-dos.md b/docs/providers/ghidra-dos.md index a78060e753..3734a555d6 100644 --- a/docs/providers/ghidra-dos.md +++ b/docs/providers/ghidra-dos.md @@ -3,8 +3,8 @@ REA can analyze DOS MZ executables and explicitly selected COM images through the bring-your-own Ghidra adapter. The Linux x64 and macOS arm64 verification lanes exercise actual 16-bit disassembly and decompilation through the CLI and stdio MCP. Provider admission accepts Ghidra -12.x (>=12.1) and that installation's declared JDK range. The verification lane uses -Ghidra 12.1.4 and JDK 21; no DOS emulator or cross-compiler is required. +12.x (>=12.2) and that installation's declared JDK range. The verification lane uses +Ghidra 12.2 and JDK 25; no DOS emulator or cross-compiler is required. ## Open and inspect diff --git a/docs/providers/ghidra-riscv.md b/docs/providers/ghidra-riscv.md index 311e5de8a5..74058c4608 100644 --- a/docs/providers/ghidra-riscv.md +++ b/docs/providers/ghidra-riscv.md @@ -262,19 +262,21 @@ definitions use it. ## Verification and limits -Ghidra 12.1.4 PUBLIC with a 64-bit JDK 21+ is required, and on macOS the release -tree ships no host decompiler binary, so `Decompiler/os//decompile` and +Ghidra 12.2 PUBLIC with a 64-bit JDK 25+ is required, and on macOS the official +release zip ships no host decompiler binary, so `Decompiler/os//decompile` and `sleigh` must come from your own build; see -[installation](../getting-started/installation.md#ghidra). +[installation](../getting-started/installation.md#ghidra) and +[#7018](https://github.com/morluto/rea/issues/7018) / +[#7019](https://github.com/morluto/rea/issues/7019). -Run `npm run verify:ghidra:riscv` with an existing Ghidra 12.1.4 installation, -JDK 21+, and a RISC-V-capable Clang, LLD, LLVM readelf and LLVM objdump. The +Run `npm run verify:ghidra:riscv` with an existing Ghidra 12.2 installation, +JDK 25+, and a RISC-V-capable Clang, LLD, LLVM readelf and LLVM objdump. The verifier acquires no tools and never executes target code. Select installed tools explicitly when they are not on `PATH`: ```sh -GHIDRA_INSTALL_DIR=/path/to/ghidra_12.1.4_PUBLIC \ -JAVA_HOME=/path/to/jdk-21 \ +GHIDRA_INSTALL_DIR=/path/to/ghidra_12.2_PUBLIC \ +JAVA_HOME=/path/to/jdk-25 \ REA_RISCV_CLANG=/path/to/llvm/bin/clang \ REA_RISCV_LLD=/path/to/lld/bin/ld.lld \ REA_RISCV_READELF=/path/to/llvm/bin/llvm-readelf \ diff --git a/docs/providers/windows-ghidra-p0.md b/docs/providers/windows-ghidra-p0.md index 332a586bac..79a3c1f1d6 100644 --- a/docs/providers/windows-ghidra-p0.md +++ b/docs/providers/windows-ghidra-p0.md @@ -15,8 +15,8 @@ additional permission flag or degraded mode is required. - Windows 10+ x64 with fixed local NTFS/ReFS target and temporary volumes; - Node.js 22.x (>=22.23.4), 24.x (>=24.22.1), or 26.12.1+; -- an operator-installed Ghidra 12.x (>=12.1) distribution (verified with 12.1.4); -- a 64-bit full JDK inside that installation's declared Java range (JDK 21 or newer, with no maximum, for current 12.1 releases); +- an operator-installed Ghidra 12.x (>=12.2) distribution (verified with 12.2); +- a 64-bit full JDK inside that installation's declared Java range (JDK 25 or newer, with no maximum, for the verified 12.2 release); - an explicit native, non-managed x86, x86-64, ARMNT (Thumb-2) or ARM64 PE application/DLL, a [DOS MZ executable](ghidra-dos.md), or a [raw NMOS 6502 image](raw-binary.md#nmos-6502) with a caller-supplied entry; and @@ -66,8 +66,8 @@ and DLLs. ```powershell npm install --global rea-agents -$env:GHIDRA_INSTALL_DIR = "C:\tools\ghidra_12.1.4_PUBLIC" -$env:JAVA_HOME = "C:\tools\jdk-21" +$env:GHIDRA_INSTALL_DIR = "C:\tools\ghidra_12.2_PUBLIC" +$env:JAVA_HOME = "C:\tools\jdk-25" $env:REA_ANALYSIS_PROVIDER = "ghidra" rea doctor --json @@ -115,8 +115,8 @@ For MCP, register the resolved Node entry point and the same provider settings: "args": ["C:\\tools\\rea\\scripts\\rea.mjs", "mcp"], "env": { "REA_ANALYSIS_PROVIDER": "ghidra", - "GHIDRA_INSTALL_DIR": "C:\\tools\\ghidra_12.1.4_PUBLIC", - "JAVA_HOME": "C:\\tools\\jdk-21" + "GHIDRA_INSTALL_DIR": "C:\\tools\\ghidra_12.2_PUBLIC", + "JAVA_HOME": "C:\\tools\\jdk-25" } } } diff --git a/docs/testing-lanes.md b/docs/testing-lanes.md index a5c518480c..c23f5a54a1 100644 --- a/docs/testing-lanes.md +++ b/docs/testing-lanes.md @@ -37,29 +37,33 @@ commands. Check prerequisites before starting expensive work and name the missing command, target, and lane in any failure message. A lane must not imply that a host or target is covered when it was skipped. -Provider admission accepts Ghidra 12.x (>=12.1) and the JDK range declared by that -installation (`application.java.min` through `application.java.max`). Current -12.1 releases require JDK 21 or newer and set no maximum. The lanes below still -prove behavior on the verified Ghidra 12.1.4 and JDK 21 build. +Provider admission accepts Ghidra 12.x (>=12.2) and the JDK range declared by that +installation (`application.java.min` through `application.java.max`). Ghidra 12.2 +declares JDK 25 or newer and sets no maximum. The lanes below prove behavior on +the verified Ghidra 12.2 and JDK 25 build. -| Ghidra lane | Supported runner/target | Additional local tools | -| ------------------------------------------ | ---------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------- | -| `npm run verify:ghidra` | Linux x64/arm64 ELF or macOS x64/arm64 Mach-O | Host C compiler, Ghidra 12.1.4, and full JDK 21 | -| `npm run verify:ghidra:project-coverage` | POSIX host; selected-project call coverage, real MCP, retained Evidence and an unexecuted host fixture | Host C compiler, Ghidra 12.1.4, and full JDK 21 | -| `npm run verify:ghidra:seeds` | POSIX; raw x86 fixture; seed ordering, BSS labels, analyzer readback, not-applicable and unknown analyzer names | Ghidra 12.1.4 and full JDK 21 | -| `npm run verify:ghidra:swift` | macOS x64/arm64 Mach-O | Host Swift compiler, Ghidra 12.1.4, and full JDK 21 | -| `npm run verify:ghidra:riscv` | Linux/macOS x64/arm64 host; source-owned RV32/RV64 double-float and RV32 ilp32 ELF through CLI and MCP | RISC-V Clang, LLD, LLVM readelf and objdump, Ghidra 12.1.4, and full JDK 21 | -| `npm run verify:ghidra:switch` | Linux x64 ELF; GCC/Clang optimized and stripped switch fixtures | GCC, Clang, GNU nm/objdump/strip, Ghidra 12.1.4, and full JDK 21 | -| `npm run verify:ghidra:aarch64-jump-table` | Any supported Ghidra host; AArch64 ELF; signed/unsigned byte/halfword tables; host ARM64 Mach-O | Clang with AArch64 target support, Ghidra 12.1.4, and full JDK 21 | -| `npm run verify:ghidra:cross-format` | Any supported Ghidra host; also analyzes AArch64 ELF, x86-64 PE, and x86-64 Mach-O | `clang`, LLD, and `lld-link` in addition to host-lane prerequisites | -| `npm run verify:ghidra:windows` | Controlled Windows x64 with native x86-64 PE; `-- --x86` selects native x86 PE | Ghidra 12.1.4, full JDK 21, and the matching native artifact | -| `npm run verify:ghidra:dol` | Any supported Ghidra host; source-owned PowerPC GameCube DOL fixture built from a linker script (never executed) | Clang with PowerPC target, LLD, GNU readelf, Ghidra 12.1.4, and full JDK 21 | +| Ghidra lane | Supported runner/target | Additional local tools | +| ------------------------------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------- | +| `npm run verify:ghidra` | Linux x64/arm64 ELF or macOS x64/arm64 Mach-O | Host C compiler, Ghidra 12.2, and full JDK 25 | +| `npm run verify:ghidra:project-coverage` | POSIX host; selected-project call coverage, real MCP, retained Evidence and an unexecuted host fixture | Host C compiler, Ghidra 12.2, and full JDK 25 | +| `npm run verify:ghidra:seeds` | POSIX; raw x86 fixture; seed ordering, BSS labels, analyzer readback, not-applicable and unknown analyzer names | Ghidra 12.2 and full JDK 25 | +| `npm run verify:ghidra:swift` | macOS x64/arm64 Mach-O | Host Swift compiler, Ghidra 12.2, and full JDK 25 | +| `npm run verify:ghidra:riscv` | Linux/macOS x64/arm64 host; source-owned RV32/RV64 double-float and RV32 ilp32 ELF through CLI and MCP | RISC-V Clang, LLD, LLVM readelf and objdump, Ghidra 12.2, and full JDK 25 | +| `npm run verify:ghidra:switch` | Linux x64 ELF; GCC/Clang `-O2` and stripped switch fixtures; does not cover the Clang `-O0` non-zero-base defect | GCC, Clang, GNU nm/objdump/strip, Ghidra 12.2, and full JDK 25 | +| `npm run verify:ghidra:aarch64-jump-table` | Any supported Ghidra host; AArch64 ELF; signed/unsigned byte/halfword tables; `and #0xff` byte-offset table expected unrecovered on 12.2; host ARM64 Mach-O | Clang with AArch64 target support, Ghidra 12.2, and full JDK 25 | +| `npm run verify:ghidra:cross-format` | Any supported Ghidra host; also analyzes AArch64 ELF, x86-64 PE, and x86-64 Mach-O | `clang`, LLD, and `lld-link` in addition to host-lane prerequisites | +| `npm run verify:ghidra:windows` | Controlled Windows x64 with native x86-64 PE; `-- --x86` selects native x86 PE | Ghidra 12.2, full JDK 25, and the matching native artifact | +| `npm run verify:ghidra:dol` | Any supported Ghidra host; source-owned PowerPC GameCube DOL fixture built from a linker script (never executed) | Clang with PowerPC target, LLD, GNU readelf, Ghidra 12.2, and full JDK 25 | The optional Swift lane compiles a source-owned fixture and checks modern and provider-demangled procedure names through real stdio MCP, with and without the dSYM companion. It checks unfiltered, structs, and literal-name filters, same-address alias evidence, deduplication, and explicit unresolved categories. -It does not add a Swift prerequisite to the host C fixture lane. +It does not add a Swift prerequisite to the host C fixture lane. It does not +compile the AArch64 `and #0xff` byte-offset switch from Ghidra #10154. +`npm run verify:ghidra:aarch64-jump-table` assembles that shape with 256 +readable table bytes and expects Ghidra 12.2 to leave that jump table +unrecovered. A compare-bounded byte switch in the same object must recover. The host lane also verifies namespaced C++ ABI symbols and annotation identity. That facet requires Ghidra's matching `demangler_gnu_v2_41` native component in @@ -516,7 +520,7 @@ runtime or PC-98 device execution. `npm run verify:ghidra:6502` uses `ca65` and `ld65` to build the source-owned NMOS 6502 fixture from `tests/conformance/ghidra/6502.s` and `6502.cfg`. Set `REA_CA65` and `REA_LD65` for non-PATH installations (tested with cc65 `V2.19`). -With an installed Ghidra 12.1.4 and full JDK, it verifies real CLI/stdio MCP +With the verified Ghidra 12.2 and full JDK 25, it verifies real CLI/stdio MCP mapping parity, exact source bytes, functions, a direct call reference, decompilation, 16-bit overflow rejection without replacing the active session, and runtime cleanup. Windows additionally requires the matching native addon; @@ -525,7 +529,7 @@ retained Job Object, as in the other Windows lanes. `npm run verify:ghidra:m68k` needs no assembler: its 22-byte big-endian 68000 fixture is source-owned annotated hex in the verifier, loaded at `0x1000`. With -an installed Ghidra 12.1.4 and full JDK on Linux or macOS, it verifies the +the verified Ghidra 12.2 and full JDK 25 on Linux or macOS, it verifies the `68000:BE:32:default` BinaryLoader import, real CLI/stdio MCP load-image parity, exact source bytes, both functions, the `bsr.b` call reference, decompilation through address and file offset, rejection of a misaligned entry and of a mapping @@ -661,7 +665,7 @@ sigrok verifier establishes the actual-tool observation. Edits to verifier entry workflows run static checks and the Linux suite. Website changes run website checks. Provider workflow changes validate the workflow and run that provider's verifier. Changes under `bridge/ghidra/` also select the `ghidra_bridge` lane, -which compiles the packaged bridge sources against the pinned Ghidra 12.1.4 +which compiles the packaged bridge sources against the pinned Ghidra 12.2 jars with `npm run verify:ghidra:bridge-sources`. That compile step never launches Ghidra or imports a target, so a missing import fails the PR instead of every Ghidra session. The launcher, compiler and package checks share named required source diff --git a/licenses/README.md b/licenses/README.md index 77a55b3447..6911ac94da 100644 --- a/licenses/README.md +++ b/licenses/README.md @@ -4,22 +4,22 @@ Start with [THIRD_PARTY_NOTICES.md](../THIRD_PARTY_NOTICES.md) for the distincti between distributed material and separately obtained tools. These files retain upstream texts; they do not change [REA's MIT license](../LICENSE). -| Files | Provenance and scope | -| ------------------------------------------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `npm-dependencies.txt` | Every package path in the root lockfile, with its exact version, declared license, scope, download URL, and integrity. Includes development and optional platform entries. | -| `npm-runtime-notices.txt` | Original license, copyright, and NOTICE texts collected from integrity-verified locked runtime npm archives across all platforms; also the license of Rolldown's generated runtime helpers. The archive manifest's name and version are checked. | -| `protobuf-es-v2.16.0-LICENSE.txt` | Original Apache license omitted from the protobuf-es npm archive, preserved from its v2.16.0 source commit. Its embedded Google BSD notice is retained in `npm-runtime-notices.txt`. | -| `microsoft-uf2-MIT.txt` | Unchanged `LICENSE.txt` from microsoft/uf2 revision `cf3bd7f9c274b949528f8cd6a19eef2502a687d2`, for the UF2 family names copied from its `utils/uf2families.json`. | -| `nativeaot-parser-MIT.txt` | Original Washi notice for derived NativeAOT parser code; source revision is recorded in the parser and the root notices. | -| `dotnet-runtime-MIT.txt` | Original .NET Foundation MIT text from the NativeAOT reference revision `a3b2d40328be0be3f8dd43f0e5cc925b8827b044`. | -| `ghidra-12.1.4-{LICENSE,NOTICE,DISCLAIMER}.txt` | Unchanged top-level documents from `Ghidra_12.1.4_build`. Ghidra is not bundled; these reference copies do not replace its component and GPL support-program notices. The US-government-specific disclaimer applies to Ghidra, not to REA. | -| `cfworker-MIT.txt`, `xterm-MIT.txt` | Original notices missing from their published runtime npm archives, recovered from the releases' upstream Git revisions. They are included in the corresponding runtime entries. | -| `Apache-2.0.txt`, `MIT-template.txt` | Standard license texts for explicitly documented upstream notice gaps. The MIT placeholders are not an attribution to an inferred author or year. | -| `frida-17.23.2-COPYING.txt`, `LGPL-2.0.txt` | Unchanged licensing supplements for the optional Frida dependency: tagged Frida wxWindows notice and GNU Library GPL v2 text. The npm archive and tagged Node binding omit a standalone license/copyright document; these texts do not recover binding or prebuild-component attribution. | -| `MinGW-w64-runtime.txt` | Upstream's combined runtime copyright and license notices, snapshot from v12.0.0, for the statically linked Windows addon. This is a notice snapshot, not a pin of the compiler used in release CI. | -| `GPL-3.0.txt`, `GCC-Runtime-Library-Exception-3.1.txt` | Unchanged GPLv3 and GCC runtime exception texts from GCC 14.2.0. The exception permits eligible compiled combinations under its conditions; the runtime keeps its own license. This snapshot does not assert that every release uses GCC 14.2.0. | -| `Node-22.19.0-LICENSE.txt` | The original Node 22.19.0 license and third-party notices. The Windows addon uses Node-API headers from that release; the complete Node runtime and all components listed in this reference document are not bundled. | -| `upstream-sources.json` | Source URLs and SHA-256 digests for the new unchanged reference and supplemental texts. These digests identify the preserved local texts. | +| Files | Provenance and scope | +| ------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| `npm-dependencies.txt` | Every package path in the root lockfile, with its exact version, declared license, scope, download URL, and integrity. Includes development and optional platform entries. | +| `npm-runtime-notices.txt` | Original license, copyright, and NOTICE texts collected from integrity-verified locked runtime npm archives across all platforms; also the license of Rolldown's generated runtime helpers. The archive manifest's name and version are checked. | +| `protobuf-es-v2.16.0-LICENSE.txt` | Original Apache license omitted from the protobuf-es npm archive, preserved from its v2.16.0 source commit. Its embedded Google BSD notice is retained in `npm-runtime-notices.txt`. | +| `microsoft-uf2-MIT.txt` | Unchanged `LICENSE.txt` from microsoft/uf2 revision `cf3bd7f9c274b949528f8cd6a19eef2502a687d2`, for the UF2 family names copied from its `utils/uf2families.json`. | +| `nativeaot-parser-MIT.txt` | Original Washi notice for derived NativeAOT parser code; source revision is recorded in the parser and the root notices. | +| `dotnet-runtime-MIT.txt` | Original .NET Foundation MIT text from the NativeAOT reference revision `a3b2d40328be0be3f8dd43f0e5cc925b8827b044`. | +| `ghidra-12.2-{LICENSE,NOTICE,DISCLAIMER}.txt` | Unchanged top-level documents from `Ghidra_12.2_build`. The public zip omits NOTICE and DISCLAIMER; those two copies come from the tag. Ghidra is not bundled; these reference copies do not replace its component and GPL support-program notices. The US-government-specific disclaimer applies to Ghidra, not to REA. | +| `cfworker-MIT.txt`, `xterm-MIT.txt` | Original notices missing from their published runtime npm archives, recovered from the releases' upstream Git revisions. They are included in the corresponding runtime entries. | +| `Apache-2.0.txt`, `MIT-template.txt` | Standard license texts for explicitly documented upstream notice gaps. The MIT placeholders are not an attribution to an inferred author or year. | +| `frida-17.23.2-COPYING.txt`, `LGPL-2.0.txt` | Unchanged licensing supplements for the optional Frida dependency: tagged Frida wxWindows notice and GNU Library GPL v2 text. The npm archive and tagged Node binding omit a standalone license/copyright document; these texts do not recover binding or prebuild-component attribution. | +| `MinGW-w64-runtime.txt` | Upstream's combined runtime copyright and license notices, snapshot from v12.0.0, for the statically linked Windows addon. This is a notice snapshot, not a pin of the compiler used in release CI. | +| `GPL-3.0.txt`, `GCC-Runtime-Library-Exception-3.1.txt` | Unchanged GPLv3 and GCC runtime exception texts from GCC 14.2.0. The exception permits eligible compiled combinations under its conditions; the runtime keeps its own license. This snapshot does not assert that every release uses GCC 14.2.0. | +| `Node-22.19.0-LICENSE.txt` | The original Node 22.19.0 license and third-party notices. The Windows addon uses Node-API headers from that release; the complete Node runtime and all components listed in this reference document are not bundled. | +| `upstream-sources.json` | Source URLs and SHA-256 digests for the new unchanged reference and supplemental texts. These digests identify the preserved local texts. | Additional preserved originals live at [evmole/LICENSE](../third_party/evmole/LICENSE), diff --git a/licenses/ghidra-12.1.4-DISCLAIMER.txt b/licenses/ghidra-12.2-DISCLAIMER.txt similarity index 100% rename from licenses/ghidra-12.1.4-DISCLAIMER.txt rename to licenses/ghidra-12.2-DISCLAIMER.txt diff --git a/licenses/ghidra-12.1.4-LICENSE.txt b/licenses/ghidra-12.2-LICENSE.txt similarity index 100% rename from licenses/ghidra-12.1.4-LICENSE.txt rename to licenses/ghidra-12.2-LICENSE.txt diff --git a/licenses/ghidra-12.1.4-NOTICE.txt b/licenses/ghidra-12.2-NOTICE.txt similarity index 100% rename from licenses/ghidra-12.1.4-NOTICE.txt rename to licenses/ghidra-12.2-NOTICE.txt diff --git a/licenses/upstream-sources.json b/licenses/upstream-sources.json index ce4b8d626e..996cd3adb0 100644 --- a/licenses/upstream-sources.json +++ b/licenses/upstream-sources.json @@ -1,17 +1,17 @@ [ { - "file": "licenses/ghidra-12.1.4-LICENSE.txt", - "source": "https://raw.githubusercontent.com/NationalSecurityAgency/ghidra/Ghidra_12.1.4_build/LICENSE", + "file": "licenses/ghidra-12.2-LICENSE.txt", + "source": "https://raw.githubusercontent.com/NationalSecurityAgency/ghidra/Ghidra_12.2_build/LICENSE", "sha256": "c71d239df91726fc519c6eb72d318ec65820627232b2f796219e87dcf35d0ab4" }, { - "file": "licenses/ghidra-12.1.4-NOTICE.txt", - "source": "https://raw.githubusercontent.com/NationalSecurityAgency/ghidra/Ghidra_12.1.4_build/NOTICE", + "file": "licenses/ghidra-12.2-NOTICE.txt", + "source": "https://raw.githubusercontent.com/NationalSecurityAgency/ghidra/Ghidra_12.2_build/NOTICE", "sha256": "ad4b2bb6e75e908251226180081b5afa01c7161d7710e08b603d0c340a08a23f" }, { - "file": "licenses/ghidra-12.1.4-DISCLAIMER.txt", - "source": "https://raw.githubusercontent.com/NationalSecurityAgency/ghidra/Ghidra_12.1.4_build/DISCLAIMER.md", + "file": "licenses/ghidra-12.2-DISCLAIMER.txt", + "source": "https://raw.githubusercontent.com/NationalSecurityAgency/ghidra/Ghidra_12.2_build/DISCLAIMER.md", "sha256": "324f4544abe620362f7bc66fbd8ec3c90e62e1aeac249fb850aef67e71c8b24d" }, { diff --git a/scripts/build-ghidra-nativeaot.mjs b/scripts/build-ghidra-nativeaot.mjs index f257bfb289..4e4a60abb5 100644 --- a/scripts/build-ghidra-nativeaot.mjs +++ b/scripts/build-ghidra-nativeaot.mjs @@ -11,6 +11,12 @@ import { } from "node:fs/promises"; import { dirname, join, resolve } from "node:path"; import { fileURLToPath } from "node:url"; +import { + SUPPORTED_GHIDRA_JAVA_MAJOR, + SUPPORTED_GHIDRA_VERSION, + ghidraReleaseAccepted, + ghidraReleaseLine, +} from "../src/ghidra/GhidraReleasePolicy.ts"; const root = resolve(dirname(fileURLToPath(import.meta.url)), ".."); const source = resolve( @@ -20,16 +26,16 @@ const source = resolve( const install = process.env.GHIDRA_INSTALL_DIR; if (!install) throw new Error( - "NativeAOT build lane requires existing GHIDRA_INSTALL_DIR (Ghidra 12.1.x).", + `NativeAOT build lane requires existing GHIDRA_INSTALL_DIR (Ghidra ${ghidraReleaseLine()}, verified with ${SUPPORTED_GHIDRA_VERSION}).`, ); const properties = await readFile( join(install, "Ghidra/application.properties"), "utf8", ); const ghidraVersion = propertyValue(properties, "application.version"); -if (!ghidraReleaseLineAccepted(ghidraVersion)) +if (!ghidraReleaseAccepted(ghidraVersion)) throw new Error( - `NativeAOT build lane accepts Ghidra 12.1.x (verified with 12.1.4). Observed application.version=${ghidraVersion ?? "missing"}.`, + `NativeAOT build lane accepts Ghidra ${ghidraReleaseLine()} (verified with ${SUPPORTED_GHIDRA_VERSION}). Observed application.version=${ghidraVersion ?? "missing"}.`, ); const output = resolve( process.env.REA_NATIVEAOT_BUILD_ROOT ?? @@ -52,9 +58,9 @@ const run = (command, args) => { const javac = java ? join(java, "javac") : "javac"; const javacBanner = capture(javac, ["-version"]); const javacMajor = Number(/^javac (\d+)/mu.exec(javacBanner)?.[1]); -if (!Number.isInteger(javacMajor) || javacMajor < 21) +if (!Number.isInteger(javacMajor) || javacMajor < SUPPORTED_GHIDRA_JAVA_MAJOR) throw new Error( - `NativeAOT build lane requires javac 21 or newer and compiles with --release 21. Observed: ${javacBanner || "no version"}. REA does not install or upgrade Java.`, + `NativeAOT build lane requires javac ${String(SUPPORTED_GHIDRA_JAVA_MAJOR)} or newer and compiles with --release ${String(SUPPORTED_GHIDRA_JAVA_MAJOR)}. Observed: ${javacBanner || "no version"}. REA does not install or upgrade Java.`, ); const revision = run("git", ["-C", source, "rev-parse", "HEAD"]); if ( @@ -99,7 +105,7 @@ try { "-J-Xmx512m", "-J-XX:ActiveProcessorCount=1", "--release", - "21", + String(SUPPORTED_GHIDRA_JAVA_MAJOR), `@${join(output, "javac.args")}`, ]); await writeFile( @@ -157,12 +163,6 @@ function propertyValue(content, name) { return null; } -/** Release line supported by the separately pinned NativeAOT integration. */ -function ghidraReleaseLineAccepted(raw) { - const match = /^(\d+)\.(\d+)(?:\.(\d+))?([-+].*)?$/u.exec(raw ?? ""); - return match !== null && Number(match[1]) === 12 && Number(match[2]) === 1; -} - function capture(command, args) { const result = spawnSync(command, args, { cwd: root, diff --git a/scripts/verify-ghidra-bridge-sources.mjs b/scripts/verify-ghidra-bridge-sources.mjs index 3a08cf8740..5e12a858a5 100644 --- a/scripts/verify-ghidra-bridge-sources.mjs +++ b/scripts/verify-ghidra-bridge-sources.mjs @@ -139,6 +139,8 @@ await withVerifierFixture(scratchFixture, async () => { "UTF-8", "--release", String(SUPPORTED_GHIDRA_JAVA_MAJOR), + "-Xlint:deprecation,removal", + "-Werror", "-cp", jars.join(process.platform === "win32" ? ";" : ":"), "-d", diff --git a/scripts/verify-real-ghidra-function-bundle.mjs b/scripts/verify-real-ghidra-function-bundle.mjs index a1ce060f3a..61861dcefa 100644 --- a/scripts/verify-real-ghidra-function-bundle.mjs +++ b/scripts/verify-real-ghidra-function-bundle.mjs @@ -14,7 +14,7 @@ import { const installation = process.env.GHIDRA_INSTALL_DIR; if (!installation || !process.env.JAVA_HOME) throw new Error( - "Set GHIDRA_INSTALL_DIR and JAVA_HOME to caller-installed Ghidra and JDK 21.", + "Set GHIDRA_INSTALL_DIR and JAVA_HOME to caller-installed Ghidra 12.2 and JDK 25.", ); const commands = await createVerifierCommands(); const workspace = await VerifierFixture.open({ diff --git a/scripts/verify-real-ghidra-function.mjs b/scripts/verify-real-ghidra-function.mjs index c2764e4689..fb4a0b01cc 100644 --- a/scripts/verify-real-ghidra-function.mjs +++ b/scripts/verify-real-ghidra-function.mjs @@ -650,6 +650,71 @@ export async function verifyNativeTypeLayout(client, typeNames) { return { layout, payload, state, bits, base }; } +/** + * Oracle for masked-byte-switch.S. The masked table has 256 readable bytes, + * the full `and #0xff` range. Ghidra 12.2 issue #10154 still leaves that + * branch unrecovered. The compare-bounded switch in the same object must + * recover, so a truncated table cannot explain the miss. A recovered masked + * switch fails the lane so the limitation can be removed with the fix. + */ +export async function verifyMaskedByteSwitch(client) { + const names = await inventoryCall(client, "list_names", { + document: null, + address: null, + }); + const procedure = requireProcedure(names, "rea_masked_byte_switch"); + const dossier = await functionCall(client, "analyze_function", { + procedure: procedure.address, + }); + const pseudocode = await functionCall(client, "procedure_pseudo_code", { + document: null, + procedure: procedure.address, + }); + const tables = dossier.native_api?.jump_tables ?? []; + if (tables.length !== 0) + throw new Error( + `Masked byte switch recovered a jump table: ${JSON.stringify(tables)}`, + ); + if ( + typeof pseudocode !== "string" || + !pseudocode.includes("Could not recover jumptable") || + !pseudocode.includes("Too many branches") || + pseudocode.includes("case 0:") + ) + throw new Error( + `Masked byte switch did not keep the unrecovered jump table: ${pseudocode}`, + ); + const bounded = requireProcedure(names, "rea_bounded_byte_switch"); + const boundedDossier = await functionCall(client, "analyze_function", { + procedure: bounded.address, + }); + const boundedTable = boundedDossier.native_api?.jump_tables.find((item) => + item.data_sources.some( + (source) => source.entry_size_bytes === 1 && source.entry_count === 4, + ), + ); + if (boundedTable === undefined) + throw new Error( + `Compare-bounded byte switch did not recover: ${JSON.stringify(boundedDossier.native_api)}`, + ); + for (let value = 0; value < 4; value += 1) { + const mapping = boundedTable.mappings.find( + (item) => item.case_value === value, + ); + if (mapping === undefined || mapping.confidence !== "high") + throw new Error( + `Compare-bounded case ${value} was not verified: ${JSON.stringify(boundedTable)}`, + ); + } + return { + address: procedure.address, + jump_tables: tables.length, + unrecovered: true, + bounded_address: bounded.address, + bounded_cases: boundedTable.mappings.length, + }; +} + export async function verifyRelativeSwitch(client, procedures, entrySize) { // Relocatable loaders may choose an assembler-generated alias as the function name. const names = await inventoryCall(client, "list_names", { diff --git a/scripts/verify-real-ghidra-riscv.mjs b/scripts/verify-real-ghidra-riscv.mjs index f92031c291..0e2f5cdeeb 100644 --- a/scripts/verify-real-ghidra-riscv.mjs +++ b/scripts/verify-real-ghidra-riscv.mjs @@ -16,6 +16,7 @@ import { parseAnalysisSnapshot } from "../dist/domain/analysisSnapshot.js"; import { parseEvidence } from "../dist/domain/evidence.js"; import { functionDossierSchema } from "../dist/domain/native/functionDossier.js"; import { inspectVerifierGhidraInstallation } from "./lib/ghidra-installation-inspection.mjs"; +import { SUPPORTED_GHIDRA_VERSION } from "../dist/ghidra/GhidraReleasePolicy.js"; import { buildRiscvFixture, stripRiscvFixture, @@ -56,7 +57,7 @@ const installation = await inspectVerifierGhidraInstallation({ : { javaHome: process.env.JAVA_HOME }), }); assert.equal(installation.status, "available", JSON.stringify(installation)); -assert.equal(installation.providerVersion, "12.1.4"); +assert.equal(installation.providerVersion, SUPPORTED_GHIDRA_VERSION); const execute = promisify(execFile); const entrypoint = fileURLToPath(new URL("./rea.mjs", import.meta.url)); diff --git a/scripts/verify-real-ghidra-swift.mjs b/scripts/verify-real-ghidra-swift.mjs index 756eb2b352..17efcad3d3 100644 --- a/scripts/verify-real-ghidra-swift.mjs +++ b/scripts/verify-real-ghidra-swift.mjs @@ -30,7 +30,7 @@ const installation = await inspectVerifierGhidraInstallation({ }); if (process.platform !== "darwin" || installation.status !== "available") throw new Error( - "verify:ghidra:swift requires macOS, Ghidra 12.1.4 with its native decompiler, and JDK 21; set GHIDRA_INSTALL_DIR and JAVA_HOME.", + "verify:ghidra:swift requires macOS, Ghidra 12.2 with its native decompiler, and JDK 25; set GHIDRA_INSTALL_DIR and JAVA_HOME.", ); try { await execute("swiftc", ["--version"], { timeout: 10_000 }); diff --git a/scripts/verify-real-ghidra-windows.mjs b/scripts/verify-real-ghidra-windows.mjs index 767a1e22a6..145db9133c 100644 --- a/scripts/verify-real-ghidra-windows.mjs +++ b/scripts/verify-real-ghidra-windows.mjs @@ -57,7 +57,7 @@ const installDir = process.env.GHIDRA_INSTALL_DIR; const { clientOptions } = resolveGhidraVerifierTimeouts(process.env); if (installDir === undefined || !isAbsolute(installDir)) throw new Error( - "Set GHIDRA_INSTALL_DIR to the absolute root of Ghidra 12.1.4.", + `Set GHIDRA_INSTALL_DIR to the absolute root of Ghidra ${SUPPORTED_GHIDRA_VERSION}.`, ); const installation = await inspectVerifierGhidraInstallation({ environment: process.env, diff --git a/scripts/verify-real-ghidra.mjs b/scripts/verify-real-ghidra.mjs index e7de4dd322..2dd7a9394b 100644 --- a/scripts/verify-real-ghidra.mjs +++ b/scripts/verify-real-ghidra.mjs @@ -43,6 +43,7 @@ import { verifyGhidraRelocationSymbols } from "./lib/real-ghidra-relocation-symb import { verifyDenseDefaultReturn, verifyJumpTableDenseSwitch, + verifyMaskedByteSwitch, verifyNativeTypeLayout, verifyRelativeSwitch, verifyRelativeSignedSwitch, @@ -54,7 +55,7 @@ let report; const installDir = process.env.GHIDRA_INSTALL_DIR; if (installDir === undefined || !isAbsolute(installDir)) throw new Error( - "Set GHIDRA_INSTALL_DIR to the absolute root of an extracted Ghidra 12.1.4 release.", + `Set GHIDRA_INSTALL_DIR to the absolute root of an extracted Ghidra ${SUPPORTED_GHIDRA_VERSION} release.`, ); const installation = await inspectVerifierGhidraInstallation({ environment: process.env, @@ -186,32 +187,37 @@ await withVerifierFixture(fixtures, async () => { ]); } } - const signedRelativeSource = fileURLToPath( - new URL( - "../tests/conformance/ghidra/relative-switch-signed.S", - import.meta.url, - ), - ); - for (const selectorBias of [0, 2, 10]) { + // Compile the assembly fixtures through the same operator-selected Clang. + const switchFixtures = [ + ...[0, 2, 10].map((selectorBias) => ({ + source: "../tests/conformance/ghidra/relative-switch-signed.S", + variant: `relative-signed-${selectorBias}`, + flags: [`-DREA_SELECTOR_BIAS=${selectorBias}`], + })), + { + source: "../tests/conformance/ghidra/masked-byte-switch.S", + variant: "masked-byte-switch", + flags: [], + }, + ]; + for (const { source, variant, flags } of switchFixtures) { + const sourceFile = fileURLToPath(new URL(source, import.meta.url)); for (const format of [ "elf", ...(expectedNativeTarget.architecture === "arm64" ? ["mach-o"] : []), ]) { - const targetPath = join( - fixtureRoot, - `relative-signed-${selectorBias}-${format}.o`, - ); + const targetPath = join(fixtureRoot, `${variant}-${format}.o`); await exec(clang, [ ...(format === "elf" ? ["--target=aarch64-linux-gnu"] : []), - `-DREA_SELECTOR_BIAS=${selectorBias}`, + ...flags, "-c", - signedRelativeSource, + sourceFile, "-o", targetPath, ]); crossTargets.push([ targetPath, - `relative-signed-${selectorBias}`, + variant, { format, architecture: "arm64" }, ]); } @@ -322,7 +328,11 @@ await withVerifierFixture(fixtures, async () => { const crossResults = []; for (const [targetPath, variant, expectedTarget] of crossTargets) { const result = await verifyTarget(targetPath, variant, expectedTarget); - if (variant !== "aarch64-jump-table" && !variant.startsWith("relative-")) + if ( + variant !== "aarch64-jump-table" && + variant !== "masked-byte-switch" && + !variant.startsWith("relative-") + ) assertCrossFixture(result); crossResults.push(result); } @@ -584,30 +594,33 @@ async function verifyTarget(targetPath, variant, expectedTarget = null) { client, }) : null; - const probes = variant.startsWith("relative-signed-") - ? await verifyRelativeSignedSwitch( - client, - Number(variant.split("-").at(-1)), - ) - : variant.startsWith("relative-") - ? await verifyRelativeSwitch( - client, - procedures, - Number(variant.slice(-1)), - ) - : variant === "type-layout" - ? await verifyNativeTypeLayout(client, names) - : variant === "jump-table" - ? await verifyJumpTableDenseSwitch(client, procedures) - : variant === "custom" || variant === "aarch64-jump-table" - ? null - : await verifyInventoryOperations({ - client, - variant, - procedures, - names, - strings, - }); + const probes = + variant === "masked-byte-switch" + ? await verifyMaskedByteSwitch(client) + : variant.startsWith("relative-signed-") + ? await verifyRelativeSignedSwitch( + client, + Number(variant.split("-").at(-1)), + ) + : variant.startsWith("relative-") + ? await verifyRelativeSwitch( + client, + procedures, + Number(variant.slice(-1)), + ) + : variant === "type-layout" + ? await verifyNativeTypeLayout(client, names) + : variant === "jump-table" + ? await verifyJumpTableDenseSwitch(client, procedures) + : variant === "custom" || variant === "aarch64-jump-table" + ? null + : await verifyInventoryOperations({ + client, + variant, + procedures, + names, + strings, + }); const nativeValues = variant === "debug" ? await verifyNativeValueTrace(client, procedures, parsedTarget.value) diff --git a/scripts/verify-real-kuna.mjs b/scripts/verify-real-kuna.mjs index b3ddf8ce1f..db1a424c81 100644 --- a/scripts/verify-real-kuna.mjs +++ b/scripts/verify-real-kuna.mjs @@ -73,7 +73,7 @@ if (values["compare-ghidra"]) { ); assert.ok( process.env.GHIDRA_INSTALL_DIR, - "Ghidra comparison prerequisite missing: GHIDRA_INSTALL_DIR (bring your own Ghidra 12.1.4 and JDK 21)", + "Ghidra comparison prerequisite missing: GHIDRA_INSTALL_DIR (bring your own Ghidra 12.2 and JDK 25)", ); } const run = createVerifierRun(); diff --git a/src/ghidra/GhidraDoctor.test.ts b/src/ghidra/GhidraDoctor.test.ts index 0bf71e4c18..a78ede0e55 100644 --- a/src/ghidra/GhidraDoctor.test.ts +++ b/src/ghidra/GhidraDoctor.test.ts @@ -27,6 +27,10 @@ import { projectGhidraDoctorInspection, } from "./GhidraDoctor.js"; import { GhidraProvider } from "./GhidraProvider.js"; +import { + SUPPORTED_GHIDRA_JAVA_MAJOR, + SUPPORTED_GHIDRA_VERSION, +} from "./GhidraReleasePolicy.js"; import { parseConfig } from "../config/parseConfig.js"; import { silentLogger } from "../logger.js"; @@ -36,20 +40,21 @@ afterEach(async () => { inspectionResources = createInspectionResources(); }); -const INSTALL = "/opt/ghidra_12.1.4_PUBLIC"; +const INSTALL = "/opt/ghidra_12.2_PUBLIC"; const installationHost = ( overrides: Partial = {}, platform: NodeJS.Platform = "linux", ): GhidraInstallationHost => ({ - readText: () => "application.version=12.1.4\napplication.java.min=21\n", + readText: () => + `application.version=${SUPPORTED_GHIDRA_VERSION}\napplication.java.min=${String(SUPPORTED_GHIDRA_JAVA_MAJOR)}\n`, executable: () => true, probeJava: () => javaProbeOk({ osArch: "amd64", osName: platform === "win32" ? "Windows 11" : "Linux", - version: "21.0.11", - major: 21, - home: "/usr/lib/jvm/jdk-21", + version: `${String(SUPPORTED_GHIDRA_JAVA_MAJOR)}.0.1`, + major: SUPPORTED_GHIDRA_JAVA_MAJOR, + home: `/usr/lib/jvm/jdk-${String(SUPPORTED_GHIDRA_JAVA_MAJOR)}`, bits: 64, runtime: "jdk", }), @@ -116,17 +121,16 @@ describe("Ghidra doctor integration", async () => { expect(result.providerInspections?.[0]).toMatchObject({ id: "ghidra", available: true, - providerVersion: "12.1.4", + providerVersion: SUPPORTED_GHIDRA_VERSION, registrationEnvironment: { GHIDRA_INSTALL_DIR: INSTALL, - JAVA_HOME: "/usr/lib/jvm/jdk-21", + JAVA_HOME: `/usr/lib/jvm/jdk-${String(SUPPORTED_GHIDRA_JAVA_MAJOR)}`, }, }); expect( result.checks.find(({ name }) => name === "ghidra-java"), ).toMatchObject({ ok: true, - detail: expect.stringContaining("21.0.11"), }); }); @@ -174,7 +178,7 @@ describe("Ghidra doctor integration", async () => { "missing Java minimum", await inspection( { installDir: INSTALL }, - { readText: () => "application.version=12.1.4\n" }, + { readText: () => `application.version=${SUPPORTED_GHIDRA_VERSION}\n` }, ), "ghidra-java", ], @@ -218,7 +222,7 @@ describe("Windows Ghidra doctor authority", () => { afterEach(() => vi.restoreAllMocks()); it("distinguishes a valid Windows installation from unavailable native authority", async () => { const ghidra = await inspection({ - installDir: "C:\\tools\\ghidra_12.1.4_PUBLIC", + installDir: "C:\\tools\\ghidra_12.2_PUBLIC", platform: "win32", }); const result = await runDoctor(undefined, { @@ -231,15 +235,15 @@ describe("Windows Ghidra doctor authority", () => { expect(result.healthy).toBe(false); expect(result.providerInspections?.[0]).toMatchObject({ available: false, - providerVersion: "12.1.4", + providerVersion: SUPPORTED_GHIDRA_VERSION, registrationEnvironment: { - GHIDRA_INSTALL_DIR: "C:\\tools\\ghidra_12.1.4_PUBLIC", + GHIDRA_INSTALL_DIR: "C:\\tools\\ghidra_12.2_PUBLIC", }, }); expect( providerRegistrationEnvironment(result.providerInspections ?? []), ).toMatchObject({ - GHIDRA_INSTALL_DIR: "C:\\tools\\ghidra_12.1.4_PUBLIC", + GHIDRA_INSTALL_DIR: "C:\\tools\\ghidra_12.2_PUBLIC", }); expect(result.checks.find(({ name }) => name === "host")).toMatchObject({ ok: true, @@ -292,7 +296,7 @@ describe("Windows Ghidra doctor authority", () => { }); const projected = projectGhidraDoctorInspection( await inspection({ - installDir: "C:\\tools\\ghidra_12.1.4_PUBLIC", + installDir: "C:\\tools\\ghidra_12.2_PUBLIC", platform: "win32", }), ); @@ -307,7 +311,7 @@ describe("Windows Ghidra doctor authority", () => { it("fails provider-scoped Windows readiness without blaming installation", async () => { const ghidra = await inspection({ - installDir: "C:\\tools\\ghidra_12.1.4_PUBLIC", + installDir: "C:\\tools\\ghidra_12.2_PUBLIC", platform: "win32", }); const result = await runDoctor( @@ -437,7 +441,7 @@ describe("Windows native doctor failure diagnostics", () => { const projected = projectGhidraDoctorInspection( await inspection( { - installDir: "C:\\tools\\ghidra_12.1.4_PUBLIC", + installDir: "C:\\tools\\ghidra_12.2_PUBLIC", platform: "win32", }, { probeJava: () => missingJavaProbe }, @@ -456,7 +460,7 @@ describe("Windows native doctor failure diagnostics", () => { }); describe("Windows Ghidra temporary directory check", () => { - const WINDOWS_INSTALL = "C:\\tools\\ghidra_12.1.4_PUBLIC"; + const WINDOWS_INSTALL = "C:\\tools\\ghidra_12.2_PUBLIC"; it("fails the provider closed and keeps restricted-host remediation when the probe fails", async () => { const projected = projectGhidraDoctorInspection( diff --git a/src/ghidra/GhidraInstallation.fixture.ts b/src/ghidra/GhidraInstallation.fixture.ts index ade1b0c2c6..06375ed4c5 100644 --- a/src/ghidra/GhidraInstallation.fixture.ts +++ b/src/ghidra/GhidraInstallation.fixture.ts @@ -11,23 +11,34 @@ import type { GhidraJavaProbeFailure, } from "./GhidraJavaProbe.js"; import type { GhidraInstallationHost } from "./GhidraInstallation.js"; +import { + SUPPORTED_GHIDRA_JAVA_MAJOR, + SUPPORTED_GHIDRA_VERSION, +} from "./GhidraReleasePolicy.js"; + +/** Properties text for an install at the verified release and its declared JDK floor. */ +export const verifiedGhidraApplicationProperties = `application.version=${SUPPORTED_GHIDRA_VERSION}\napplication.java.min=${String(SUPPORTED_GHIDRA_JAVA_MAJOR)}\n`; + +/** JDK observation that satisfies the verified install's declared minimum. */ +export const verifiedGhidraJavaObservation = ( + home = "/jdk-25", +): GhidraJavaObservation => ({ + version: `${String(SUPPORTED_GHIDRA_JAVA_MAJOR)}.0.1`, + major: SUPPORTED_GHIDRA_JAVA_MAJOR, + home, + bits: 64, + runtime: "jdk", + osArch: "amd64", + osName: "Linux", +}); /** Simulated valid installation for profile tests; never starts Ghidra or Java. */ export const ghidraProfileInstallationHost: GhidraInstallationHost = { platform: "linux", architecture: "x64", - readText: () => "application.version=12.1.4\napplication.java.min=21\n", + readText: () => verifiedGhidraApplicationProperties, executable: () => true, - probeJava: () => - javaProbeOk({ - version: "21.0.11", - major: 21, - home: "/jdk-21", - bits: 64, - runtime: "jdk", - osArch: "amd64", - osName: "Linux", - }), + probeJava: () => javaProbeOk(verifiedGhidraJavaObservation()), }; /** diff --git a/src/ghidra/GhidraInstallation.test.ts b/src/ghidra/GhidraInstallation.test.ts index b6036c376e..2bce64cd68 100644 --- a/src/ghidra/GhidraInstallation.test.ts +++ b/src/ghidra/GhidraInstallation.test.ts @@ -37,6 +37,7 @@ import { import { SUPPORTED_GHIDRA_JAVA_MAJOR, SUPPORTED_GHIDRA_VERSION, + ghidraVersionDetail, } from "./GhidraReleasePolicy.js"; import { createTestTempDirectory } from "../../tests/fixtures/temporaryDirectory.js"; @@ -62,9 +63,9 @@ const headerProbe = (bytes: Buffer) => const JAVA: GhidraJavaObservation = { osArch: "amd64", osName: "Linux", - version: "21.0.11", + version: `${String(SUPPORTED_GHIDRA_JAVA_MAJOR)}.0.1`, major: SUPPORTED_GHIDRA_JAVA_MAJOR, - home: "/usr/lib/jvm/jdk-21", + home: `/usr/lib/jvm/jdk-${String(SUPPORTED_GHIDRA_JAVA_MAJOR)}`, bits: 64, runtime: "jdk", }; @@ -446,15 +447,15 @@ describe("Ghidra installation inspection", () => { status: "available", providerVersion: SUPPORTED_GHIDRA_VERSION, analyzeHeadlessPath: HEADLESS, - javaVersion: "21.0.11", + javaVersion: JAVA.version, }); }); it.each([ - ["12.1.2", "27", 27], - ["12.1.2-2.1", "27", 27], - ["12.1.0", "21.0.2", 21], - [SUPPORTED_GHIDRA_VERSION, "25.0.1", 25], + ["12.3", "27", 27], + ["12.2.1-2.1", "27", 27], + ["12.2.1", "21.0.2", 21], + [SUPPORTED_GHIDRA_VERSION, JAVA.version, SUPPORTED_GHIDRA_JAVA_MAJOR], ])( "accepts Ghidra %s with JDK %s on the verified release line", async (providerVersion, javaVersion, major) => { @@ -483,10 +484,7 @@ describe("Ghidra installation inspection", () => { result.checks.find(({ name }) => name === "version"), ).toMatchObject({ status: "passed", - detail: - providerVersion === SUPPORTED_GHIDRA_VERSION - ? SUPPORTED_GHIDRA_VERSION - : expect.stringContaining("verified build"), + detail: ghidraVersionDetail(providerVersion), }); }, ); @@ -537,16 +535,23 @@ describe("Ghidra Windows installation commitment", () => { architecture: "x64", readText: (path) => path === WINDOWS_PROPERTIES - ? `application.version=${SUPPORTED_GHIDRA_VERSION}\napplication.java.min=21\n` + ? `application.version=${SUPPORTED_GHIDRA_VERSION}\napplication.java.min=${String(SUPPORTED_GHIDRA_JAVA_MAJOR)}\n` : undefined, executable: (path) => path === WINDOWS_HEADLESS || path === WINDOWS_DECOMPILER, probeJava: (command, environment) => { - expect(command).toBe("C:\\Java\\jdk-21\\bin\\java.exe"); - expect(environment.PATH).toMatch(/^C:\\Java\\jdk-21\\bin;/u); + expect(command).toBe( + `C:\\Java\\jdk-${String(SUPPORTED_GHIDRA_JAVA_MAJOR)}\\bin\\java.exe`, + ); + expect(environment.PATH).toMatch( + new RegExp( + `^C:\\\\Java\\\\jdk-${String(SUPPORTED_GHIDRA_JAVA_MAJOR)}\\\\bin;`, + "u", + ), + ); return javaProbeOk({ ...JAVA, - home: "C:\\Java\\jdk-21", + home: `C:\\Java\\jdk-${String(SUPPORTED_GHIDRA_JAVA_MAJOR)}`, osName: "Windows 11", }); }, @@ -558,7 +563,7 @@ describe("Ghidra Windows installation commitment", () => { resourceOwner: inspectionResources.owner, environment: {}, installDir: WINDOWS_INSTALL, - javaHome: "C:\\Java\\jdk-21", + javaHome: `C:\\Java\\jdk-${String(SUPPORTED_GHIDRA_JAVA_MAJOR)}`, platform: "win32", architecture: "x64", }, @@ -569,7 +574,7 @@ describe("Ghidra Windows installation commitment", () => { platform: "win32", architecture: "x64", analyzeHeadlessPath: WINDOWS_HEADLESS, - javaCommand: "C:\\Java\\jdk-21\\bin\\java.exe", + javaCommand: `C:\\Java\\jdk-${String(SUPPORTED_GHIDRA_JAVA_MAJOR)}\\bin\\java.exe`, providerVersion: SUPPORTED_GHIDRA_VERSION, }); }); @@ -768,10 +773,13 @@ describe("Ghidra configuration directory identity", () => { it.each([ [ - "application.version=12.1.4\napplication.release.name=PUBLIC\napplication.java.min=21\n", - "ghidra_12.1.4_PUBLIC", + `application.version=${SUPPORTED_GHIDRA_VERSION}\napplication.release.name=PUBLIC\napplication.java.min=${String(SUPPORTED_GHIDRA_JAVA_MAJOR)}\n`, + `ghidra_${SUPPORTED_GHIDRA_VERSION}_PUBLIC`, + ], + [ + `application.version=${SUPPORTED_GHIDRA_VERSION}\napplication.java.min=${String(SUPPORTED_GHIDRA_JAVA_MAJOR)}\n`, + null, ], - ["application.version=12.1.4\napplication.java.min=21\n", null], ])( "preserves the inspected identity independently of the installation basename", async (content, expected) => { @@ -961,7 +969,7 @@ describe("Ghidra installation version admission", () => { { name: "JDK above the installation maximum", readText: () => - "application.version=12.1.4\napplication.java.min=21\napplication.java.max=25\n", + `application.version=${SUPPORTED_GHIDRA_VERSION}\napplication.java.min=21\napplication.java.max=25\n`, probeJava: () => javaProbeOk({ ...JAVA, @@ -974,14 +982,14 @@ describe("Ghidra installation version admission", () => { { name: "unreadable Java minimum", readText: () => - "application.version=12.1.4\napplication.java.min=latest\n", + `application.version=${SUPPORTED_GHIDRA_VERSION}\napplication.java.min=latest\n`, probeJava: () => javaProbeOk(JAVA), failed: "java", code: "version_unresolved", }, { name: "missing Java minimum", - readText: () => "application.version=12.1.4\n", + readText: () => `application.version=${SUPPORTED_GHIDRA_VERSION}\n`, probeJava: () => javaProbeOk(JAVA), failed: "java", code: "version_unresolved", @@ -1057,12 +1065,14 @@ describe("Ghidra JDK version admission", () => { }), ); expect(result.status).toBe("unavailable"); - if (result.status !== "unavailable") return; - expect(result.rejection.reason).toContain("12.x (>=12.1)"); - expect(result.rejection.reason).toContain(SUPPORTED_GHIDRA_VERSION); + expect(result.checks.find(({ name }) => name === "version")).toMatchObject({ + status: "failed", + code: "unsupported_version", + detail: ghidraVersionDetail("12.0.4"), + }); expect(result.checks.find(({ name }) => name === "java")).toMatchObject({ status: "failed", - remediation: expect.stringContaining("JDK 21 or newer"), + code: "unsupported_version", }); }); @@ -1091,7 +1101,7 @@ describe("Ghidra JDK version admission", () => { }); it.each([21, 25])( - "admits Ghidra 12.2 independently of its declared Java 25 minimum (JDK %s)", + "keeps verified Ghidra 12.2 admission separate from its declared Java minimum (JDK %s)", async (major) => { const result = await inspectGhidraInstallation( { @@ -1117,16 +1127,36 @@ describe("Ghidra JDK version admission", () => { result.checks.find(({ name }) => name === "version"), ).toMatchObject({ status: "passed", - detail: expect.stringMatching( - /\b12\.2\b.*\bcompatible\b.*\b12\.1\.4\b/u, - ), + detail: ghidraVersionDetail("12.2"), }); expect(result.checks.find(({ name }) => name === "java")).toMatchObject({ status: major === 25 ? "passed" : "failed", + ...(major === 25 ? {} : { code: "unsupported_version" }), }); expect(result.status).toBe(major === 25 ? "available" : "unavailable"); }, ); + + it("rejects Ghidra 12.1 because the bridge no longer compiles there", async () => { + const result = await inspectGhidraInstallation( + { + resourceOwner: inspectionResources.owner, + environment: {}, + installDir: INSTALL, + platform: "linux", + architecture: "x64", + }, + host({ + readText: () => "application.version=12.1.4\napplication.java.min=21\n", + }), + ); + expect(result.status).toBe("unavailable"); + expect(result.checks.find(({ name }) => name === "version")).toMatchObject({ + status: "failed", + code: "unsupported_version", + detail: ghidraVersionDetail("12.1.4"), + }); + }); }); describe("Ghidra absent installation admission", () => { @@ -1800,7 +1830,7 @@ it.each(["arm64", "x64"] as const)( "discovers installed versioned Homebrew Java on macOS %s", async (architecture) => { const prefix = architecture === "arm64" ? "/opt/homebrew" : "/usr/local"; - const command = `${prefix}/opt/openjdk@21/libexec/openjdk.jdk/Contents/Home/bin/java`; + const command = `${prefix}/opt/openjdk@${String(SUPPORTED_GHIDRA_JAVA_MAJOR)}/libexec/openjdk.jdk/Contents/Home/bin/java`; const commands: string[] = []; const inspection = await inspectGhidraInstallation( { @@ -1813,7 +1843,11 @@ it.each(["arm64", "x64"] as const)( host({ directoryEntries: (directory) => directory === `${prefix}/opt` - ? ["openjdk@21", "unrelated", "openjdk@21/../foreign"] + ? [ + `openjdk@${String(SUPPORTED_GHIDRA_JAVA_MAJOR)}`, + "unrelated", + `openjdk@${String(SUPPORTED_GHIDRA_JAVA_MAJOR)}/../foreign`, + ] : [], executable: (candidate) => candidate === "/usr/bin/java" || @@ -1868,7 +1902,7 @@ it.each([ }, host({ readText: () => - "application.version=12.1.4\napplication.java.min=21\napplication.java.max=25\n", + `application.version=${SUPPORTED_GHIDRA_VERSION}\napplication.java.min=21\napplication.java.max=25\n`, directoryEntries: () => ["openjdk@25", "openjdk@21"], executable: (candidate) => (pathJava && candidate === "/usr/bin/java") || @@ -1938,7 +1972,7 @@ it.each([ }, host({ readText: () => - "application.version=12.1.4\napplication.java.min=21\napplication.java.max=21\n", + `application.version=${SUPPORTED_GHIDRA_VERSION}\napplication.java.min=21\napplication.java.max=21\n`, directoryEntries, executable: (candidate) => candidate === "/usr/bin/java" || diff --git a/src/ghidra/GhidraJavaProbe.test.ts b/src/ghidra/GhidraJavaProbe.test.ts index 4a6437b345..6cc022cf22 100644 --- a/src/ghidra/GhidraJavaProbe.test.ts +++ b/src/ghidra/GhidraJavaProbe.test.ts @@ -7,6 +7,7 @@ import { mkdir, writeFile } from "node:fs/promises"; import { join } from "node:path"; import { createTestTempDirectory } from "../../tests/fixtures/temporaryDirectory.js"; import { ghidraProfileInstallationHost } from "./GhidraInstallation.fixture.js"; +import { SUPPORTED_GHIDRA_JAVA_MAJOR } from "./GhidraReleasePolicy.js"; import { inspectGhidraInstallation } from "./GhidraInstallation.js"; import { projectGhidraDoctorInspection } from "./GhidraDoctor.js"; import { describe, expect, it, afterEach } from "vitest"; @@ -253,7 +254,7 @@ it.skipIf(process.platform === "win32").each([ const properties = [ "Property settings:", ` java.home = ${home}`, - " java.version = 21.0.11", + ` java.version = ${String(SUPPORTED_GHIDRA_JAVA_MAJOR)}.0.1`, " java.vm.name = OpenJDK 64-Bit Server VM", ` os.arch = ${process.arch === "arm64" ? "aarch64" : "amd64"}`, ` os.name = ${process.platform === "darwin" ? "Mac OS X" : "Linux"}`, diff --git a/src/ghidra/GhidraProvider.behavior.test.ts b/src/ghidra/GhidraProvider.behavior.test.ts index a8a5efa423..2d44162120 100644 --- a/src/ghidra/GhidraProvider.behavior.test.ts +++ b/src/ghidra/GhidraProvider.behavior.test.ts @@ -1,5 +1,9 @@ import { failedInspectionDescriptor } from "../../tests/fixtures/processInspectionCleanup.js"; import { ghidraFailureOutput } from "./GhidraDiagnostics.js"; +import { + ghidraKnownProviderDefectLimitations, + unverifiedGhidraBuildLimitation, +} from "./GhidraReleasePolicy.js"; import { ghidraProducerIdentity } from "./GhidraProducerIdentity.js"; import { ProcessOwnershipInspectionCancelled, @@ -136,22 +140,22 @@ const GHIDRA_ANNOTATIONS_RETAINED = "The active analysis session and annotations remain available."; const GHIDRA_PROJECT_PROFILE_MISMATCH = "Selected Ghidra project content no longer matches the profile committed by open_binary; when it changed is not established"; -const INSTALL = "/opt/ghidra_12.1.4_PUBLIC"; +const INSTALL = "/opt/ghidra_12.2_PUBLIC"; afterEach(() => vi.restoreAllMocks()); const installationHost = ( platform: NodeJS.Platform = "linux", ): GhidraInstallationHost => ({ platform, architecture: "x64", - readText: () => "application.version=12.1.4\napplication.java.min=21\n", + readText: () => "application.version=12.2\napplication.java.min=25\n", executable: () => true, probeJava: () => javaProbeOk({ osArch: "amd64", osName: platform === "win32" ? "Windows 11" : "Linux", - version: "21.0.11", - major: 21, - home: "/usr/lib/jvm/jdk-21", + version: "25.0.1", + major: 25, + home: "/usr/lib/jvm/jdk-25", bits: 64, runtime: "jdk", vmName: "OpenJDK 64-Bit Server VM", @@ -227,7 +231,7 @@ it.each(["mixed-inspection", "held-inspection", "ordinary-launch"] as const)( { ...installationHost(), readText: () => - "application.version=12.1.4\napplication.release.name=PUBLIC\napplication.java.min=21\n", + "application.version=12.2\napplication.release.name=PUBLIC\napplication.java.min=21\n", }, (options) => { if (!(options.launcher instanceof GhidraHeadlessLauncher)) @@ -447,7 +451,7 @@ it("carries the inspected release identity into the production launcher", async { ...installationHost(), readText: () => - "application.version=12.1.4\napplication.release.name=PUBLIC\napplication.java.min=21\n", + "application.version=12.2\napplication.release.name=PUBLIC\napplication.java.min=21\n", }, (options) => { launchers.push(options.launcher as GhidraHeadlessLauncher); @@ -462,7 +466,7 @@ it("carries the inspected release identity into the production launcher", async expect(launchers).toHaveLength(0); expect((await client.execute("health", {})).ok).toBe(true); expect(launchers[0]?.options).toMatchObject({ - configurationDirectoryName: "ghidra_12.1.4_PUBLIC", + configurationDirectoryName: "ghidra_12.2_PUBLIC", }); await client.close(); }); @@ -534,9 +538,9 @@ describe("Ghidra provider", () => { return javaProbeOk({ osArch: "amd64", osName: "Linux", - version: "21.0.11", - major: 21, - home: "/usr/lib/jvm/jdk-21", + version: "25.0.1", + major: 25, + home: "/usr/lib/jvm/jdk-25", bits: 64, runtime: "jdk", }); @@ -568,8 +572,8 @@ describe("Ghidra provider", () => { status: "available", diagnostics: { install_dir: INSTALL, - provider_version: "12.1.4", - java_version: "21.0.11", + provider_version: "12.2", + java_version: "25.0.1", }, }); expect(await ghidra.inspectAvailability()).toMatchObject({ @@ -911,7 +915,7 @@ describe("Ghidra platform support", () => { expect( existingGhidraAnalysisProfile( peTarget("x86_64"), - { id: "ghidra", name: "Ghidra", version: "12.1.4" }, + { id: "ghidra", name: "Ghidra", version: "12.2" }, { project_name: "fixture" }, ).parameters.loader_relocation_semantics, ).toBe("read-only-relocation-limitations"); @@ -1505,7 +1509,7 @@ describe("Ghidra client projection", () => { if (resolved.value.profile === null) throw new Error("Expected a bound Ghidra profile"); expect(resolved.value.profile).toMatchObject({ - provider: { id: "ghidra", name: "Ghidra", version: "12.1.4" }, + provider: { id: "ghidra", name: "Ghidra", version: "12.2" }, parameters: { import_mode: "ephemeral-source-immutable", annotation_policy: "atomic-function-entry-metadata", @@ -1548,7 +1552,7 @@ describe("Ghidra client projection", () => { provider: { id: "ghidra", name: "Ghidra", - version: "12.1.4", + version: "12.2", }, analysisProfile: resolved.value.profile, result: [{ address: "0x1000", value: "fixture_main" }], @@ -1559,6 +1563,9 @@ describe("Ghidra client projection", () => { expect(result.value.limitations).not.toContainEqual( expect.stringContaining("The bridge is verified against"), ); + expect(result.value.limitations).toEqual( + expect.arrayContaining([...ghidraKnownProviderDefectLimitations("12.2")]), + ); expect(startCount).toBe(1); }); }); @@ -3761,7 +3768,7 @@ const sessionInfo = () => ({ name: "REA Ghidra bridge" as const, run_id: "11111111-1111-4111-8111-111111111111", profile_digest: "a".repeat(64), - provider: { id: "ghidra" as const, version: "12.1.4" }, + provider: { id: "ghidra" as const, version: "12.2" }, read_only: false as const, analysis_complete: true, analysis_timed_out: false, @@ -4512,7 +4519,7 @@ describe("compatible Ghidra builds", () => { { ...installationHost(), readText: () => - "application.version=12.1.2\napplication.java.min=21\napplication.java.max=\n", + "application.version=12.3\napplication.java.min=25\napplication.java.max=\n", probeJava: () => javaProbeOk({ osArch: "amd64", @@ -4529,7 +4536,7 @@ describe("compatible Ghidra builds", () => { Promise.resolve( ok({ ...sessionInfo(), - provider: { id: "ghidra", version: "12.1.2" }, + provider: { id: "ghidra", version: "12.3" }, }), ), callTool: () => @@ -4562,19 +4569,23 @@ describe("compatible Ghidra builds", () => { const procedures = await client.execute("list_procedures", {}); expect(await ghidra.inspectAvailability()).toMatchObject({ status: "available", - diagnostics: { provider_version: "12.1.2", java_version: "27" }, + diagnostics: { provider_version: "12.3", java_version: "27" }, }); - expect(health.ok && health.value.provider.version).toBe("12.1.2"); - const unverified = expect.stringMatching( - /\b12\.1\.2\b.*\bverified\b.*\b12\.1\.4\b/u, - ); + expect(health.ok && health.value.provider.version).toBe("12.3"); + const unverified = unverifiedGhidraBuildLimitation("12.3"); + const openDefects = ghidraKnownProviderDefectLimitations("12.3"); + expect(unverified).toBeTypeOf("string"); + expect(openDefects).toHaveLength(1); expect(health.ok && health.value.limitations).toEqual( - expect.arrayContaining([unverified]), + expect.arrayContaining([unverified, ...openDefects]), + ); + expect(health.ok && health.value.limitations?.join("\n")).not.toContain( + "ghidra-9996", ); expect(procedures.ok && procedures.value.limitations).toEqual( - expect.arrayContaining([unverified]), + expect.arrayContaining([unverified, ...openDefects]), ); - expect(procedures.ok && procedures.value.provider.version).toBe("12.1.2"); + expect(procedures.ok && procedures.value.provider.version).toBe("12.3"); }); }); @@ -5096,7 +5107,7 @@ describe("Ghidra missing project program", () => { it("reports a denied java_home.save with its path and restricted-host remediation", async () => { const path = - "C:\\Users\\a\\AppData\\Local\\Temp\\rea-provider-1\\config\\ghidra\\ghidra_12.1.4_PUBLIC\\java_home.save"; + "C:\\Users\\a\\AppData\\Local\\Temp\\rea-provider-1\\config\\ghidra\\ghidra_12.2_PUBLIC\\java_home.save"; const projected = await startFailure( "", {}, @@ -6560,7 +6571,7 @@ describe("Ghidra SIGKILL projection", () => { it("reuses readiness only inside its active task and provider lifetime", async () => { let probes = 0; - let version = "21.0.11"; + let version = "25.0.1"; const base = installationHost(); const ghidra = provider({ ...base, @@ -6585,14 +6596,14 @@ it("reuses readiness only inside its active task and provider lifetime", async ( ).ok, ).toBe(true); expect(probes).toBe(1); - version = "21.0.12"; + version = "25.0.2"; expect(await ghidra.closeOwnedResources()).toMatchObject({ ok: true }); expect( (await ghidra.inspectAvailability({ scope })).diagnostics.java_version, ).toBe(version); expect(probes).toBe(2); scope.close(); - version = "21.0.13"; + version = "25.0.3"; expect( (await ghidra.inspectAvailability({ scope })).diagnostics.java_version, ).toBe(version); @@ -6705,7 +6716,7 @@ it.each(["retry", "physical", "cleanup", "close"] as const)( ); it("refuses a changed installation before creating a target-bound native client", async () => { - let release = "12.1.4", + let release = "12.2", nativeCreates = 0; const ghidra = provider( { @@ -6723,15 +6734,15 @@ it("refuses a changed installation before creating a target-bound native client" if (!resolved.ok || resolved.value.profile === null) throw new Error("Expected initial profile"); const client = ghidra.createClient(target, resolved.value.profile); - release = "12.1.5"; + release = "12.3"; try { const result = await client.execute("analyze_function", {}); if (result.ok) throw new Error("Changed installation was admitted"); expect(result.error).toMatchObject({ operation: "analyze_function", diagnostics: { - selected_provider_version: "12.1.4", - current_installation: { provider_version: "12.1.5" }, + selected_provider_version: "12.2", + current_installation: { provider_version: "12.3" }, }, }); // The actionable reason reaches the caller, not only details. diff --git a/src/ghidra/GhidraProviderClient.ts b/src/ghidra/GhidraProviderClient.ts index 78faccc6e6..a09f6e7639 100644 --- a/src/ghidra/GhidraProviderClient.ts +++ b/src/ghidra/GhidraProviderClient.ts @@ -120,7 +120,10 @@ import { ghidraRiscvLimitations, } from "./GhidraRiscvProfile.js"; import { ghidraPePdbLimitations } from "./GhidraPeProfile.js"; -import { unverifiedGhidraBuildLimitation } from "./GhidraReleasePolicy.js"; +import { + ghidraKnownProviderDefectLimitations, + unverifiedGhidraBuildLimitation, +} from "./GhidraReleasePolicy.js"; import { GhidraHeadlessLauncher, GhidraLaunchError } from "./GhidraLauncher.js"; import { attestGhidraNativeLoadImage } from "./GhidraLoadImageAttest.js"; import type { NativeAotPeResult } from "../domain/native/nativeAotPe.js"; @@ -861,6 +864,9 @@ export const createGhidraProviderClient = (input: { const releaseLimitation = unverifiedGhidraBuildLimitation( prerequisites.value.providerVersion, ); + const knownDefectLimitations = ghidraKnownProviderDefectLimitations( + prerequisites.value.providerVersion, + ); const sessionLimitations = (): readonly string[] => { const restored = client.checkpointRestore?.(); return [ @@ -883,6 +889,7 @@ export const createGhidraProviderClient = (input: { ...disabledAnalyzerLimitations, ...pdbLimitations, ...(releaseLimitation === undefined ? [] : [releaseLimitation]), + ...knownDefectLimitations, ]; }; const nativeAotOwner = diff --git a/src/ghidra/GhidraReleasePolicy.test.ts b/src/ghidra/GhidraReleasePolicy.test.ts new file mode 100644 index 0000000000..c945857815 --- /dev/null +++ b/src/ghidra/GhidraReleasePolicy.test.ts @@ -0,0 +1,125 @@ +import { describe, expect, it } from "vitest"; + +import { + ADMITTED_GHIDRA_MINOR_FLOOR, + SUPPORTED_GHIDRA_JAVA_MAJOR, + SUPPORTED_GHIDRA_VERSION, + ghidraReleaseAccepted, + ghidraReleaseCompatibility, + ghidraReleaseLine, + GHIDRA_AARCH64_MASKED_BYTE_SWITCH_DEFECT, + GHIDRA_CLANG_O0_SWITCH_DEFECT, + ghidraKnownProviderDefects, + ghidraKnownProviderDefectLimitations, + ghidraVersionDetail, + unverifiedGhidraBuildLimitation, +} from "./GhidraReleasePolicy.js"; + +describe("Ghidra release admission", () => { + it("verifies the pinned build and JDK major", () => { + expect(SUPPORTED_GHIDRA_VERSION).toBe("12.2"); + expect(SUPPORTED_GHIDRA_JAVA_MAJOR).toBe(25); + expect(ADMITTED_GHIDRA_MINOR_FLOOR).toBe(2); + expect(ghidraReleaseCompatibility("12.2")).toMatchObject({ + status: "verified", + raw: "12.2", + }); + expect(ghidraReleaseAccepted("12.2")).toBe(true); + expect(unverifiedGhidraBuildLimitation("12.2")).toBeUndefined(); + expect(ghidraKnownProviderDefects("12.2")).toEqual([ + GHIDRA_CLANG_O0_SWITCH_DEFECT, + GHIDRA_AARCH64_MASKED_BYTE_SWITCH_DEFECT, + ]); + const limitations = ghidraKnownProviderDefectLimitations("12.2"); + expect(limitations).toEqual( + ghidraKnownProviderDefectLimitations(SUPPORTED_GHIDRA_VERSION), + ); + const [closedSwitch, openSwitch] = limitations; + for (const fact of [ + GHIDRA_CLANG_O0_SWITCH_DEFECT.id, + GHIDRA_CLANG_O0_SWITCH_DEFECT.release, + GHIDRA_CLANG_O0_SWITCH_DEFECT.fixed_in, + GHIDRA_CLANG_O0_SWITCH_DEFECT.fix_commit, + GHIDRA_CLANG_O0_SWITCH_DEFECT.upstream_issue, + GHIDRA_CLANG_O0_SWITCH_DEFECT.scope.compiler, + GHIDRA_CLANG_O0_SWITCH_DEFECT.scope.optimization, + GHIDRA_CLANG_O0_SWITCH_DEFECT.scope.architecture, + GHIDRA_CLANG_O0_SWITCH_DEFECT.scope.construct, + GHIDRA_CLANG_O0_SWITCH_DEFECT.effect, + ]) + expect(closedSwitch).toEqual(expect.stringContaining(fact)); + for (const fact of [ + GHIDRA_AARCH64_MASKED_BYTE_SWITCH_DEFECT.id, + GHIDRA_AARCH64_MASKED_BYTE_SWITCH_DEFECT.release, + GHIDRA_AARCH64_MASKED_BYTE_SWITCH_DEFECT.status, + GHIDRA_AARCH64_MASKED_BYTE_SWITCH_DEFECT.upstream_issue, + GHIDRA_AARCH64_MASKED_BYTE_SWITCH_DEFECT.scope.architecture, + GHIDRA_AARCH64_MASKED_BYTE_SWITCH_DEFECT.scope.optimization, + GHIDRA_AARCH64_MASKED_BYTE_SWITCH_DEFECT.scope.construct, + GHIDRA_AARCH64_MASKED_BYTE_SWITCH_DEFECT.scope.bound, + GHIDRA_AARCH64_MASKED_BYTE_SWITCH_DEFECT.scope.table, + GHIDRA_AARCH64_MASKED_BYTE_SWITCH_DEFECT.scope.source, + GHIDRA_AARCH64_MASKED_BYTE_SWITCH_DEFECT.effect, + ]) + expect(openSwitch).toEqual(expect.stringContaining(fact)); + expect(openSwitch).not.toContain(GHIDRA_CLANG_O0_SWITCH_DEFECT.fix_commit); + expect(ghidraVersionDetail("12.2")).toBe("12.2"); + }); + + it("admits other builds on the floor as compatible", () => { + for (const raw of ["12.2.1", "12.3", "12.2-DEV"]) { + expect(ghidraReleaseCompatibility(raw).status).toBe("compatible"); + expect(ghidraReleaseAccepted(raw)).toBe(true); + expect(unverifiedGhidraBuildLimitation(raw)).toBeTypeOf("string"); + expect(ghidraVersionDetail(raw)).toBe( + `${raw}; compatible ${ghidraReleaseLine()} release (verified build ${SUPPORTED_GHIDRA_VERSION})`, + ); + } + const [closedDefect, openDefect] = + ghidraKnownProviderDefectLimitations("12.2"); + for (const raw of ["12.2", "12.2.0", "12.2.0-DEV", "12.2-DEV"]) { + expect(ghidraKnownProviderDefects(raw)).toEqual([ + GHIDRA_CLANG_O0_SWITCH_DEFECT, + GHIDRA_AARCH64_MASKED_BYTE_SWITCH_DEFECT, + ]); + expect(ghidraKnownProviderDefectLimitations(raw)).toEqual([ + closedDefect, + openDefect, + ]); + } + for (const raw of ["12.2.1", "12.3"]) { + expect(ghidraKnownProviderDefects(raw)).toEqual([ + GHIDRA_AARCH64_MASKED_BYTE_SWITCH_DEFECT, + ]); + expect(ghidraKnownProviderDefectLimitations(raw)).toEqual([openDefect]); + expect(openDefect).not.toContain(GHIDRA_CLANG_O0_SWITCH_DEFECT.id); + } + expect(ghidraReleaseLine()).toBe("12.x (>=12.2)"); + }); + + it("rejects builds below the compile floor and other majors", () => { + for (const raw of ["12.1.4", "12.1", "12.0.4", "11.4", "13.0.0"]) { + expect(ghidraReleaseCompatibility(raw).status).toBe("unsupported"); + expect(ghidraReleaseAccepted(raw)).toBe(false); + expect(unverifiedGhidraBuildLimitation(raw)).toBeUndefined(); + expect(ghidraKnownProviderDefects(raw)).toEqual([]); + expect(ghidraKnownProviderDefectLimitations(raw)).toEqual([]); + expect(ghidraVersionDetail(raw)).toBe( + `${raw}; accepted releases are ${ghidraReleaseLine()} (verified build ${SUPPORTED_GHIDRA_VERSION})`, + ); + } + }); + + it("leaves unreadable versions unresolved", () => { + expect(ghidraReleaseCompatibility(null)).toEqual({ + status: "unresolved", + raw: null, + }); + expect(ghidraReleaseCompatibility("latest").status).toBe("unresolved"); + expect(ghidraReleaseAccepted(undefined)).toBe(false); + expect(ghidraVersionDetail(undefined)).toBe("unknown"); + expect(ghidraVersionDetail("latest")).toBe("latest"); + expect(ghidraKnownProviderDefects("latest")).toEqual([]); + expect(ghidraKnownProviderDefectLimitations("latest")).toEqual([]); + }); +}); diff --git a/src/ghidra/GhidraReleasePolicy.ts b/src/ghidra/GhidraReleasePolicy.ts index 7c6a2bb9ef..01d56363b2 100644 --- a/src/ghidra/GhidraReleasePolicy.ts +++ b/src/ghidra/GhidraReleasePolicy.ts @@ -1,7 +1,14 @@ /** Ghidra build whose bridge behavior this REA release verifies. */ -export const SUPPORTED_GHIDRA_VERSION = "12.1.4"; +export const SUPPORTED_GHIDRA_VERSION = "12.2"; /** Verified JDK major; admission uses the installation's declared bounds. */ -export const SUPPORTED_GHIDRA_JAVA_MAJOR = 21; +export const SUPPORTED_GHIDRA_JAVA_MAJOR = 25; +/** + * Oldest minor on the verified major that can compile the packaged bridge. + * Ghidra 12.2 replaced `PrototypeModel.getStorageLocations(Program, DataType[], boolean)` + * with a four-argument form. 12.1.x has only the three-argument method, so the + * bridge does not compile there. + */ +export const ADMITTED_GHIDRA_MINOR_FLOOR = 2; /** Numeric Ghidra release read from `application.version`. */ interface GhidraReleaseVersion { @@ -43,15 +50,86 @@ export const ghidraReleaseCompatibility = ( if (raw === SUPPORTED_GHIDRA_VERSION) return { status: "verified", version, raw }; const verified = verifiedGhidraRelease(); - // Admit the verified line and anything newer on this major: the observed - // version is reported on the provider identity and sessions run with the - // unverified-build limitation, so a newer release like 12.2 is usable - // while the verified build stays pinned. - return version.major === verified.major && version.minor >= verified.minor + // Admit this major from the compile floor upward. The observed version stays + // on the provider identity, and anything other than the verified build runs + // with the unverified-build limitation. + return version.major === verified.major && + version.minor >= ADMITTED_GHIDRA_MINOR_FLOOR ? { status: "compatible", version, raw } : { status: "unsupported", version, raw }; }; +/** + * Exact Ghidra 12.2 PUBLIC build. Closed upstream issue #9996, fixed by + * `c93917a622211349998f641de54cfdbe0e0e5bee` and scheduled for 12.2.1. + */ +export const GHIDRA_CLANG_O0_SWITCH_DEFECT = { + kind: "known-provider-defect", + id: "ghidra-9996", + provider_id: "ghidra", + release: "12.2", + fixed_in: "12.2.1", + fix_commit: "c93917a622211349998f641de54cfdbe0e0e5bee", + scope: { + compiler: "clang", + architecture: "x86-64", + optimization: "-O0", + construct: "switch", + case_base: "above-zero", + }, + effect: "jump-table-flow-references-omitted", + upstream_issue: + "https://github.com/NationalSecurityAgency/ghidra/issues/9996", +} as const; + +/** + * Open upstream issue #10154 has no fix commit and no milestone. REA + * reproduced the unrecovered jump table on exact 12.2. Every admitted build + * keeps the record until a release is known to clear it. + */ +export const GHIDRA_AARCH64_MASKED_BYTE_SWITCH_DEFECT = { + kind: "known-provider-defect", + id: "ghidra-10154", + provider_id: "ghidra", + release: "12.2", + status: "open", + scope: { + architecture: "aarch64", + optimization: "-O", + construct: "switch", + bound: "and-0xff", + table: "byte-offset", + source: "swift-enum", + }, + effect: "jump-table-unrecovered-function-truncated", + upstream_issue: + "https://github.com/NationalSecurityAgency/ghidra/issues/10154", +} as const; + +export type GhidraKnownProviderDefect = + | typeof GHIDRA_CLANG_O0_SWITCH_DEFECT + | typeof GHIDRA_AARCH64_MASKED_BYTE_SWITCH_DEFECT; + +const formatClosedSwitchDefect = ( + defect: typeof GHIDRA_CLANG_O0_SWITCH_DEFECT, +): string => + `Known provider defect ${defect.id} (${defect.effect}): Ghidra ${defect.release} can omit jump-table flow references and emit incorrect decompiler output for ${defect.scope.compiler} ${defect.scope.optimization} ${defect.scope.architecture} switches whose case labels start above zero. Upstream issue ${defect.upstream_issue} is closed by ${defect.fix_commit}, milestone ${defect.fixed_in}, which is not yet released. This limitation is recorded for parsed ${defect.release} releases whose patch is below ${defect.fixed_in}, including a zero patch and a suffix, and clears on ${defect.fixed_in}. REA's verified switch lane compiles with -O2 and does not cover this shape.`; + +const formatOpenSwitchDefect = ( + defect: typeof GHIDRA_AARCH64_MASKED_BYTE_SWITCH_DEFECT, +): string => + `Known provider defect ${defect.id} (${defect.effect}): Ghidra ${defect.release} leaves an ${defect.scope.architecture} ${defect.scope.construct} unrecovered when it is a ${defect.scope.table} bounded by ${defect.scope.bound}. The function body stops at the indirect branch. Upstream issue ${defect.upstream_issue} is ${defect.status} and names a Swift ${defect.scope.optimization} ${defect.scope.source} switch; it has no fix commit and no milestone. REA reproduced the unrecovered jump table on the exact ${defect.release} build with an AArch64 ELF object of that instruction shape. A compare-bounded byte table still recovers. This record stays on every admitted build until a release is known to clear it.`; + +/** Session and decompile limitations for the observed Ghidra build. */ +export const ghidraKnownProviderDefectLimitations = ( + providerVersion: string, +): readonly string[] => + ghidraKnownProviderDefects(providerVersion).map((defect) => + defect.id === "ghidra-9996" + ? formatClosedSwitchDefect(defect) + : formatOpenSwitchDefect(defect), + ); + /** * Limitation recorded when a session runs a compatible build other than the * verified release. The observed version stays on the provider identity. @@ -64,10 +142,10 @@ export const unverifiedGhidraBuildLimitation = ( return `This session uses Ghidra ${providerVersion}. The bridge is verified against ${SUPPORTED_GHIDRA_VERSION}; other ${ghidraReleaseLine()} builds are accepted and the observed version is reported.`; }; -/** Accepted release floor on this major, such as `12.x (>=12.1)`. */ +/** Accepted release floor on this major, such as `12.x (>=12.2)`. */ export const ghidraReleaseLine = (): string => { const verified = verifiedGhidraRelease(); - return `${String(verified.major)}.x (>=${String(verified.major)}.${String(verified.minor)})`; + return `${String(verified.major)}.x (>=${String(verified.major)}.${String(ADMITTED_GHIDRA_MINOR_FLOOR)})`; }; /** Detail for the installation version check, including the accepted line. */ @@ -99,9 +177,9 @@ export const ghidraReleaseAccepted = ( const verifiedGhidraRelease = (): GhidraReleaseVersion => { const version = parseGhidraRelease(SUPPORTED_GHIDRA_VERSION); - if (version === undefined) + if (version === undefined || version.minor < ADMITTED_GHIDRA_MINOR_FLOOR) throw new TypeError( - `SUPPORTED_GHIDRA_VERSION ${SUPPORTED_GHIDRA_VERSION} is not a Ghidra release`, + `SUPPORTED_GHIDRA_VERSION ${SUPPORTED_GHIDRA_VERSION} is not an admitted Ghidra release`, ); return version; }; @@ -131,6 +209,41 @@ export const ghidraConfigurationVersion = (raw: string): string | undefined => { return `${String(version.major)}.${String(version.minor)}${patch}${suffix}`; }; +const parsedReleasePrecedes = ( + version: GhidraReleaseVersion, + boundary: Pick, +): boolean => + version.major < boundary.major || + (version.major === boundary.major && version.minor < boundary.minor) || + (version.major === boundary.major && + version.minor === boundary.minor && + version.patch < boundary.patch); + +/** + * Defects for one observed application version. `ghidra-9996` follows the + * parsed major, minor, and patch, so `12.2`, `12.2.0`, and `12.2.0-DEV` all + * carry it and `12.2.1` does not. A suffix does not change the patch. + * `ghidra-10154` stays on every admitted build until a fix release is known. + */ +export const ghidraKnownProviderDefects = ( + providerVersion: string, +): readonly GhidraKnownProviderDefect[] => { + const version = parseGhidraRelease(providerVersion); + if (version === undefined) return []; + const fix = parseGhidraRelease(GHIDRA_CLANG_O0_SWITCH_DEFECT.fixed_in); + const defects: GhidraKnownProviderDefect[] = []; + if ( + fix !== undefined && + version.major === 12 && + version.minor === 2 && + parsedReleasePrecedes(version, fix) + ) + defects.push(GHIDRA_CLANG_O0_SWITCH_DEFECT); + if (ghidraReleaseAccepted(providerVersion)) + defects.push(GHIDRA_AARCH64_MASKED_BYTE_SWITCH_DEFECT); + return defects; +}; + const integerGroup = (value: string | undefined): number | undefined => { if (value === undefined) return undefined; const parsed = Number(value); diff --git a/src/ghidra/GhidraSnapshotCache.test.ts b/src/ghidra/GhidraSnapshotCache.test.ts index 5ed59b0cd9..5287ce8ec0 100644 --- a/src/ghidra/GhidraSnapshotCache.test.ts +++ b/src/ghidra/GhidraSnapshotCache.test.ts @@ -28,7 +28,7 @@ const TARGET: BinaryTarget = { // Exercise the real provider descriptors, profile, input/output projection and // session cache; only the installed Ghidra process is replaced at its seam. -const fixture = (version = "12.1.4", coverage?: RelationshipCoverage) => { +const fixture = (version = "12.2", coverage?: RelationshipCoverage) => { const config = parseConfig({ GHIDRA_INSTALL_DIR: "/opt/ghidra" }); if (!config.ok) throw config.error; const calls: string[] = []; @@ -46,15 +46,15 @@ const fixture = (version = "12.1.4", coverage?: RelationshipCoverage) => { platform: "linux", architecture: "x64", readText: () => - `application.version=${version}\napplication.java.min=21\n`, + `application.version=${version}\napplication.java.min=25\n`, executable: () => true, probeJava: () => javaProbeOk({ osArch: "amd64", osName: "Linux", - version: "21.0.11", - major: 21, - home: "/usr/lib/jvm/jdk-21", + version: "25.0.1", + major: 25, + home: "/usr/lib/jvm/jdk-25", bits: 64, runtime: "jdk", }), @@ -262,7 +262,7 @@ describe("Ghidra relationship coverage replay", () => { ] satisfies (RelationshipCoverage | undefined)[])( "preserves relationship coverage %j as historical Evidence while reobserving new calls", async (coverage) => { - const initial = fixture("12.1.4", coverage); + const initial = fixture("12.2", coverage); await open(initial.session); const parameters = { procedure: "0x1000" }; for (let i = 0; i < 2; i++) { @@ -285,7 +285,7 @@ describe("Ghidra relationship coverage replay", () => { status: "unknown", reason: "Current observation after import", }; - const replay = fixture("12.1.4", liveCoverage); + const replay = fixture("12.2", liveCoverage); expect(replay.session.importAnalysisSnapshot(snapshot.value).ok).toBe( true, ); @@ -400,7 +400,7 @@ describe("Ghidra snapshot cache", () => { if (!snapshot.ok) throw snapshot.error; expect(snapshot.value.entries).toHaveLength(1); expect(snapshot.value.binding.analysis_profile.provider.version).toBe( - "12.1.4", + "12.2", ); await initial.session.close(); @@ -430,7 +430,7 @@ describe("Ghidra snapshot cache", () => { ); await replay.session.close(); - const changed = fixture("12.1.5"); + const changed = fixture("12.3"); expect(changed.session.importAnalysisSnapshot(snapshot.value).ok).toBe( true, ); diff --git a/tests/acceptance/localToolsMcpProviderIsolation.test.ts b/tests/acceptance/localToolsMcpProviderIsolation.test.ts index 13316e0398..06f93cc51c 100644 --- a/tests/acceptance/localToolsMcpProviderIsolation.test.ts +++ b/tests/acceptance/localToolsMcpProviderIsolation.test.ts @@ -14,7 +14,7 @@ it("isolates Ghidra PATH discovery while honoring an explicit installation overr await mkdir(join(root, "support"), { recursive: true }); await writeFile( join(root, "Ghidra", "application.properties"), - "application.version=12.1.4\napplication.java.min=21\n", + "application.version=12.2\napplication.java.min=25\n", ); await writeFile( join(root, process.platform === "win32" ? "ghidraRun.bat" : "ghidraRun"), diff --git a/tests/boundary/cli/doctorRegistrationEnvironment.test.ts b/tests/boundary/cli/doctorRegistrationEnvironment.test.ts index d337548b4e..a7f9c72c71 100644 --- a/tests/boundary/cli/doctorRegistrationEnvironment.test.ts +++ b/tests/boundary/cli/doctorRegistrationEnvironment.test.ts @@ -25,7 +25,7 @@ const writeAdmittedGhidra = async (root: string) => { await mkdir(path, { recursive: true }); await writeFile( join(install, "Ghidra/application.properties"), - "application.version=12.1.4\napplication.java.min=21\n", + "application.version=12.2\napplication.java.min=25\n", ); await writeFile( join(install, "support/analyzeHeadless"), @@ -40,7 +40,7 @@ const writeAdmittedGhidra = async (root: string) => { ); await chmod(native, 0o700); const properties = [ - "java.version = 21.0.11", + "java.version = 25.0.1", `java.home = ${jdk}`, "sun.arch.data.model = 64", `os.arch = ${process.arch === "arm64" ? "aarch64" : "amd64"}`, diff --git a/tests/boundary/cli/ghidraJavaDoctor.test.ts b/tests/boundary/cli/ghidraJavaDoctor.test.ts index 2e33162ad0..ec78713250 100644 --- a/tests/boundary/cli/ghidraJavaDoctor.test.ts +++ b/tests/boundary/cli/ghidraJavaDoctor.test.ts @@ -39,7 +39,7 @@ cliTest.skipIf(!["darwin", "linux"].includes(process.platform)).for([ await mkdir(path, { recursive: true }); await writeFile( join(install, "Ghidra/application.properties"), - "application.version=12.1.4\napplication.java.min=21\n", + "application.version=12.2\napplication.java.min=25\n", ); await writeFile( join(install, "support/analyzeHeadless"), @@ -135,7 +135,7 @@ cliTest.skipIf(!["darwin", "linux"].includes(process.platform))( await mkdir(join(install, "Ghidra"), { recursive: true }); await writeFile( join(install, "Ghidra/application.properties"), - "application.version=12.1.4\napplication.java.min=21\n", + "application.version=12.2\napplication.java.min=25\n", ); await writeFile( join(jdk, "bin/java"), @@ -260,7 +260,7 @@ cliTest.skipIf(!["darwin", "linux"].includes(process.platform))( await mkdir(join(install, "support"), { recursive: true }); await writeFile( join(install, "Ghidra/application.properties"), - "application.version=12.1.4\napplication.java.min=21\n", + "application.version=12.2\napplication.java.min=25\n", ); await writeFile(marker, "unexecuted"); const launcher = `#!${process.execPath}\nrequire("node:fs").writeFileSync(${JSON.stringify(marker)}, "executed");\n`; diff --git a/tests/boundary/filesystem/ghidraBridgeSources.test.ts b/tests/boundary/filesystem/ghidraBridgeSources.test.ts index 296803554b..0c7a15a100 100644 --- a/tests/boundary/filesystem/ghidraBridgeSources.test.ts +++ b/tests/boundary/filesystem/ghidraBridgeSources.test.ts @@ -27,7 +27,7 @@ const execute = promisify(execFile); /** A stand-in compiler proves admission and cleanup, not real Java compilation. */ const installation = async ( - properties = "application.version=12.1.4\n", + properties = `application.version=${SUPPORTED_GHIDRA_VERSION}\n`, compilerStatus = 0, ) => { const root = await createTestTempDirectory("rea-ghidra-bridge-test-"); @@ -47,7 +47,7 @@ const installation = async ( [ "#!/bin/sh", 'printf "invoked\\n" >> "$REA_JAVAC_MARKER"', - 'if [ "$1" = "-version" ]; then echo "javac 21.0.12"; exit 0; fi', + 'if [ "$1" = "-version" ]; then echo "javac 25.0.5"; exit 0; fi', ...(compilerStatus === 0 ? ["exit 0"] : [ @@ -80,31 +80,40 @@ type AdmissionCase = { error?: string; }; const admissionCases: readonly AdmissionCase[] = [ - { name: "compiler succeeds", properties: "application.version=12.1.4\n" }, + { + name: "compiler succeeds", + properties: `application.version=${SUPPORTED_GHIDRA_VERSION}\n`, + expectedVersion: SUPPORTED_GHIDRA_VERSION, + }, { name: "compiler fails", - properties: "application.version=12.1.4\n", + properties: `application.version=${SUPPORTED_GHIDRA_VERSION}\n`, compilerStatus: 1, error: "bridge/ghidra/ReaGhidraBridge.java:1: error: cannot find symbol", }, - { name: "colon separator", properties: "application.version : 12.1.4\n" }, + { + name: "colon separator", + properties: `application.version : ${SUPPORTED_GHIDRA_VERSION}\n`, + expectedVersion: SUPPORTED_GHIDRA_VERSION, + }, { name: "escaped key and continued value", - properties: "application\\u002eversion=12.1.\\\n 4\n", + properties: "application\\u002eversion=12.\\\n 2\n", + expectedVersion: "12.2", }, { name: "Latin-1 distro suffix", - properties: "application.version=12.1.4-é\n", - expectedVersion: "12.1.4-é", + properties: "application.version=12.2-é\n", + expectedVersion: "12.2-é", }, { name: "trailing version whitespace", - properties: "application.version=12.1.4 \n", - error: 'Observed application.version="12.1.4 ".', + properties: "application.version=12.2 \n", + error: 'Observed application.version="12.2 ".', }, { name: "malformed Unicode escape", - properties: "application.version=12.1.4\nother=\\u00xx\n", + properties: "application.version=12.2\nother=\\u00xx\n", error: "malformed_unicode_escape", }, ]; @@ -113,7 +122,12 @@ const admissionCases: readonly AdmissionCase[] = [ // hosted lane; the installed provider's Properties tests cover the parser too. it.skipIf(process.platform === "win32").each(admissionCases)( "preserves version admission and scratch cleanup: $name", - async ({ properties, compilerStatus, expectedVersion = "12.1.4", error }) => { + async ({ + properties, + compilerStatus, + expectedVersion = SUPPORTED_GHIDRA_VERSION, + error, + }) => { const fixture = await installation(properties, compilerStatus); const run = execute( process.execPath, diff --git a/tests/boundary/filesystem/ghidraInstallationProperties.test.ts b/tests/boundary/filesystem/ghidraInstallationProperties.test.ts index 91194263c3..f01ac1a491 100644 --- a/tests/boundary/filesystem/ghidraInstallationProperties.test.ts +++ b/tests/boundary/filesystem/ghidraInstallationProperties.test.ts @@ -14,7 +14,9 @@ import { afterEach, expect, it, vi } from "vitest"; import { AnalysisError } from "../../../src/domain/analysisErrorBase.js"; import { ProviderCleanupError } from "../../../src/domain/providerCleanupError.js"; import { projectAnalysisError } from "../../../src/domain/analysisErrorProjection.js"; +import { verifiedGhidraApplicationProperties } from "../../../src/ghidra/GhidraInstallation.fixture.js"; import { readGhidraInstallationProperties } from "../../../src/ghidra/GhidraInstallationProperties.js"; +import { SUPPORTED_GHIDRA_VERSION } from "../../../src/ghidra/GhidraReleasePolicy.js"; import { createInspectionResources } from "../../fixtures/inspectionResources.js"; import { createTestTempDirectory } from "../../fixtures/temporaryDirectory.js"; @@ -39,7 +41,7 @@ afterEach(() => { vi.restoreAllMocks(); }); -const properties = "application.version=12.1.4\napplication.java.min=21\n"; +const properties = verifiedGhidraApplicationProperties; it("preserves a descriptor read failure instead of reporting absent metadata", async () => { const root = await createTestTempDirectory( @@ -272,7 +274,7 @@ it.each(["read", "capacity", "completed"] as const)( diagnostics: { completed_properties: { bytes: Buffer.byteLength(properties), - properties: { providerVersion: "12.1.4" }, + properties: { providerVersion: SUPPORTED_GHIDRA_VERSION }, }, }, }); diff --git a/tests/boundary/filesystem/ghidraPspExtension.test.ts b/tests/boundary/filesystem/ghidraPspExtension.test.ts index 2c12d3c1b3..4c63a1ce13 100644 --- a/tests/boundary/filesystem/ghidraPspExtension.test.ts +++ b/tests/boundary/filesystem/ghidraPspExtension.test.ts @@ -28,6 +28,13 @@ import { parseBinaryTarget } from "../../../src/application/BinaryTargetResolver import { GhidraProvider } from "../../../src/ghidra/GhidraProvider.js"; import { ghidraProcessorUnsupportedReason } from "../../../src/ghidra/GhidraPspProfile.js"; import { inspectGhidraPspExtension } from "../../../src/ghidra/GhidraPspExtension.js"; +import { + SUPPORTED_GHIDRA_JAVA_MAJOR, + SUPPORTED_GHIDRA_VERSION, +} from "../../../src/ghidra/GhidraReleasePolicy.js"; + +const INSTALL_VERSION = SUPPORTED_GHIDRA_VERSION; +const INSTALL_JAVA_MAJOR = SUPPORTED_GHIDRA_JAVA_MAJOR; import { GhidraHeadlessLauncher, ghidraHeadlessArguments, @@ -95,15 +102,16 @@ const target = { const host: GhidraInstallationHost = { platform: "linux", architecture: "x64", - readText: () => "application.version=12.1.3\napplication.java.min=21\n", + readText: () => + `application.version=${INSTALL_VERSION}\napplication.java.min=${String(INSTALL_JAVA_MAJOR)}\n`, executable: () => true, probeJava: () => javaProbeOk({ osArch: "amd64", osName: "Linux", - version: "21.0.12", - major: 21, - home: "/jdk-21", + version: `${String(INSTALL_JAVA_MAJOR)}.0.1`, + major: INSTALL_JAVA_MAJOR, + home: "/jdk-25", bits: 64, runtime: "jdk", }), @@ -113,7 +121,7 @@ async function installation() { const root = join(directory, "Ghidra", "Extensions", "ghidra-allegrex"); const contents = { "Module.manifest": "", - "extension.properties": "name=ghidra-allegrex\nversion=12.1.3\n", + "extension.properties": `name=ghidra-allegrex\nversion=${INSTALL_VERSION}\n`, "data/languages/allegrex.ldefs": "synthetic language definition", "data/languages/allegrex.sla": "synthetic compiled processor", "data/languages/allegrex.pspec": "synthetic processor specification", @@ -203,7 +211,7 @@ describe.skipIf(process.platform === "win32")( psp_extension: { id: "ghidra-allegrex", root, - ghidra_version: "12.1.3", + ghidra_version: INSTALL_VERSION, sha256: expect.stringMatching(/^[a-f0-9]{64}$/u), }, }); @@ -223,7 +231,7 @@ describe.skipIf(process.platform === "win32")( const { directory, root } = await installation(); const extension = await inspectGhidraPspExtension( root, - "12.1.3", + INSTALL_VERSION, new ArtifactResourceScope(), ); await writeFile(join(root, "lib/extension.jar"), "changed loader"); @@ -231,7 +239,7 @@ describe.skipIf(process.platform === "win32")( const launcher = new GhidraHeadlessLauncher({ environment: {}, analyzeHeadlessPath: join(directory, "support/analyzeHeadless"), - configurationDirectoryName: "ghidra_12.1.3_PUBLIC", + configurationDirectoryName: `ghidra_${INSTALL_VERSION}_PUBLIC`, javaHome: "/jdk-21", bridgeScriptPath: "/packaged/ReaGhidraBridge.java", pspExtension: extension, @@ -246,7 +254,7 @@ describe.skipIf(process.platform === "win32")( runId: "00000000-0000-4000-8000-000000000001", targetPath: target.path, targetSha256: target.sha256, - providerVersion: "12.1.3", + providerVersion: INSTALL_VERSION, profileDigest: "b".repeat(64), }, { resourceScope: new ArtifactResourceScope() }, @@ -296,14 +304,14 @@ describe.skipIf(process.platform === "win32")( await expect( inspectGhidraPspExtension( root, - "12.1.3", + INSTALL_VERSION, new ArtifactResourceScope(), ), ).rejects.toMatchObject({ diagnostics: { code, ...(parserCode === undefined - ? { ghidra_version: "12.1.3" } + ? { ghidra_version: INSTALL_VERSION } : { parser_code: parserCode }), }, }); @@ -317,7 +325,11 @@ describe.skipIf(process.platform === "win32")( join(root, "Module.manifest.uninstalled"), ); await expect( - inspectGhidraPspExtension(root, "12.1.3", new ArtifactResourceScope()), + inspectGhidraPspExtension( + root, + INSTALL_VERSION, + new ArtifactResourceScope(), + ), ).rejects.toMatchObject({ diagnostics: { code: "component_missing", @@ -332,7 +344,11 @@ describe.skipIf(process.platform === "win32")( await rename(path, join(directory, "external.jar")); await symlink(join(directory, "external.jar"), path); await expect( - inspectGhidraPspExtension(root, "12.1.3", new ArtifactResourceScope()), + inspectGhidraPspExtension( + root, + INSTALL_VERSION, + new ArtifactResourceScope(), + ), ).rejects.toMatchObject({ diagnostics: { code: "entry_kind", relative: "lib/extension.jar" }, }); @@ -342,7 +358,11 @@ describe.skipIf(process.platform === "win32")( const { root } = await installation(); await truncate(join(root, "lib/extension.jar"), 64 * 1024 * 1024 + 1); await expect( - inspectGhidraPspExtension(root, "12.1.3", new ArtifactResourceScope()), + inspectGhidraPspExtension( + root, + INSTALL_VERSION, + new ArtifactResourceScope(), + ), ).rejects.toMatchObject({ diagnostics: { code: "bytes_exceed_limit", @@ -372,7 +392,7 @@ describe.skipIf(process.platform === "win32")( await expect( inspectGhidraPspExtension( root, - "12.1.3", + INSTALL_VERSION, new ArtifactResourceScope(), ), ).rejects.toMatchObject({ @@ -681,16 +701,15 @@ describe.skipIf(process.platform === "win32")( it.each([ { form: "escaped key and value with colon separator", - properties: "n\\u0061me : ghidra-allegrex\nver\\u0073ion=12.1.3\n", + properties: `n\\u0061me : ghidra-allegrex\nver\\u0073ion=${INSTALL_VERSION}\n`, }, { form: "continued key and value lines", - properties: "name=ghidra-\\\n allegrex\nversion=12.1.\\\n 3\n", + properties: `name=ghidra-\\\n allegrex\nversion=${INSTALL_VERSION.slice(0, -1)}\\\n ${INSTALL_VERSION.slice(-1)}\n`, }, { form: "duplicate keys use the last value", - properties: - "name=wrong\nname=ghidra-allegrex\nversion=12.1.4\nversion=12.1.3\n", + properties: `name=wrong\nname=ghidra-allegrex\nversion=12.1.4\nversion=${INSTALL_VERSION}\n`, }, ])( "accepts Java Properties $form and hashes raw bytes", @@ -698,7 +717,7 @@ describe.skipIf(process.platform === "win32")( const { root } = await installation(); const canonical = await inspectGhidraPspExtension( root, - "12.1.3", + INSTALL_VERSION, new ArtifactResourceScope(), ); const latin1Properties = Buffer.from( @@ -708,7 +727,7 @@ describe.skipIf(process.platform === "win32")( await writeFile(join(root, "extension.properties"), latin1Properties); const extension = await inspectGhidraPspExtension( root, - "12.1.3", + INSTALL_VERSION, new ArtifactResourceScope(), ); expect(extension.id).toBe("ghidra-allegrex"); @@ -840,7 +859,7 @@ describe.skipIf(process.platform === "win32")( const { directory, root } = await installation(); const extension = await inspectGhidraPspExtension( root, - "12.1.3", + INSTALL_VERSION, new ArtifactResourceScope(), ); const controller = new AbortController(); @@ -866,7 +885,7 @@ describe.skipIf(process.platform === "win32")( const launcher = new GhidraHeadlessLauncher({ environment: {}, analyzeHeadlessPath: join(directory, "support/analyzeHeadless"), - configurationDirectoryName: "ghidra_12.1.3_PUBLIC", + configurationDirectoryName: `ghidra_${INSTALL_VERSION}_PUBLIC`, bridgeScriptPath: "/packaged/ReaGhidraBridge.java", pspExtension: extension, spawnProcess: spawn, @@ -879,7 +898,7 @@ describe.skipIf(process.platform === "win32")( targetSha256: createHash("sha256") .update("synthetic target") .digest("hex"), - providerVersion: "12.1.3", + providerVersion: INSTALL_VERSION, profileDigest: "b".repeat(64), }); try { @@ -931,7 +950,7 @@ describe.skipIf(process.platform === "win32")( } const extension = await inspectGhidraPspExtension( root, - "12.1.3", + INSTALL_VERSION, new ArtifactResourceScope(), ); expect(extension.sha256).toBe(hash.digest("hex")); diff --git a/tests/boundary/mcp/batchDecompileViewsMcp.test.ts b/tests/boundary/mcp/batchDecompileViewsMcp.test.ts index 4d00344924..29f7cc016a 100644 --- a/tests/boundary/mcp/batchDecompileViewsMcp.test.ts +++ b/tests/boundary/mcp/batchDecompileViewsMcp.test.ts @@ -30,6 +30,7 @@ import { closeEnhancedToolResources, connect as connectFixedAnalysis, } from "./enhancedToolsHarness.js"; +import { SUPPORTED_GHIDRA_VERSION } from "../../../src/ghidra/GhidraReleasePolicy.js"; import { connectGhidraMcp, ghidraFixtureResult } from "./ghidraMcpHarness.js"; const MAIN_BODY = "int main(void) { return 0; }"; @@ -257,7 +258,10 @@ it.each(["compact"] as const)( batch: { total: 6, succeeded: 4, failed: 2 }, source_provider: parent.provider, source_analysis_profile_digest: parent.analysis_profile?.digest, - decompiling_provider: { id: "ghidra", version: "12.1.4" }, + decompiling_provider: { + id: "ghidra", + version: SUPPORTED_GHIDRA_VERSION, + }, procedures: { distinct_resolved: 3, unknown_identity: 1, diff --git a/tests/boundary/mcp/ghidraEvidenceMcp.test.ts b/tests/boundary/mcp/ghidraEvidenceMcp.test.ts index b58c89b65f..3bf4327df4 100644 --- a/tests/boundary/mcp/ghidraEvidenceMcp.test.ts +++ b/tests/boundary/mcp/ghidraEvidenceMcp.test.ts @@ -3,6 +3,7 @@ import { parseMcpToolError } from "../../fixtures/mcpToolError.js"; import { describe, expect, it } from "vitest"; import { z } from "zod"; import { EnhancedTools } from "../../../src/application/EnhancedTools.js"; +import { SUPPORTED_GHIDRA_VERSION } from "../../../src/ghidra/GhidraReleasePolicy.js"; import { connectGhidraMcp, sessionEvidence } from "./ghidraMcpHarness.js"; import { ghidraProducerIdentity } from "../../../src/ghidra/GhidraProducerIdentity.js"; import { functionDossierSchema } from "../../../src/domain/native/functionDossier.js"; @@ -606,9 +607,13 @@ describe("Ghidra MCP evidence parity", () => { ); expect(listed).toMatchObject({ operation: "list_procedures", - provider: { id: "ghidra", name: "Ghidra", version: "12.1.4" }, + provider: { + id: "ghidra", + name: "Ghidra", + version: SUPPORTED_GHIDRA_VERSION, + }, analysis_profile: { - provider: { id: "ghidra", version: "12.1.4" }, + provider: { id: "ghidra", version: SUPPORTED_GHIDRA_VERSION }, parameters: { import_mode: "ephemeral-source-immutable", annotation_policy: "atomic-function-entry-metadata", @@ -670,7 +675,7 @@ describe("Ghidra MCP evidence parity", () => { ); expect(pseudocode).toMatchObject({ operation: "procedure_pseudo_code", - provider: { id: "ghidra", version: "12.1.4" }, + provider: { id: "ghidra", version: SUPPORTED_GHIDRA_VERSION }, normalized_result: expect.stringContaining("return 42"), limitations: expect.arrayContaining([ expect.stringMatching(/not text.equivalent to Hopper/iu), @@ -688,7 +693,7 @@ describe("Ghidra MCP evidence parity", () => { ); expect(analyzed).toMatchObject({ operation: "analyze_function", - provider: { id: "ghidra", version: "12.1.4" }, + provider: { id: "ghidra", version: SUPPORTED_GHIDRA_VERSION }, normalized_result: { procedure: { address: "0x401000", diff --git a/tests/boundary/mcp/ghidraMcpHarness.ts b/tests/boundary/mcp/ghidraMcpHarness.ts index a2f6f90eed..dfc5f92343 100644 --- a/tests/boundary/mcp/ghidraMcpHarness.ts +++ b/tests/boundary/mcp/ghidraMcpHarness.ts @@ -1,5 +1,9 @@ import { ok as javaProbeOk, ok } from "../../../src/domain/result.js"; -import type { GhidraJavaObservation } from "../../../src/ghidra/GhidraJavaProbe.js"; +import { + verifiedGhidraApplicationProperties, + verifiedGhidraJavaObservation, +} from "../../../src/ghidra/GhidraInstallation.fixture.js"; +import { SUPPORTED_GHIDRA_VERSION } from "../../../src/ghidra/GhidraReleasePolicy.js"; import { expect } from "vitest"; import { parseEvidence } from "../../../src/domain/evidence.js"; import { createApplicationMcpHarness } from "../../fixtures/applicationMcpHarness.js"; @@ -24,7 +28,7 @@ import { ghidraReferenceEdge, } from "../../../src/domain/ghidraValues.fixture.js"; -const INSTALL = "/opt/ghidra_12.1.4_PUBLIC"; +const INSTALL = `/opt/ghidra_${SUPPORTED_GHIDRA_VERSION}_PUBLIC`; export const connectGhidraMcp = async ( name: string, @@ -123,25 +127,17 @@ export const sessionEvidence = (session: BinarySession, value: unknown) => { export const ghidraInstallationHost = (): GhidraInstallationHost => ({ platform: "linux", architecture: "x64", - readText: () => "application.version=12.1.4\napplication.java.min=21\n", + readText: () => verifiedGhidraApplicationProperties, executable: () => true, probeJava: () => - javaProbeOk({ - osArch: "amd64", - osName: "Linux", - version: "21.0.11", - major: 21, - home: "/usr/lib/jvm/jdk-21", - bits: 64, - runtime: "jdk", - }), + javaProbeOk(verifiedGhidraJavaObservation("/usr/lib/jvm/jdk-25")), }); const sessionInfo = (profileDigest: string, targetSha256: string) => ({ name: "REA Ghidra bridge" as const, run_id: "11111111-1111-4111-8111-111111111111", profile_digest: profileDigest, - provider: { id: "ghidra" as const, version: "12.1.4" }, + provider: { id: "ghidra" as const, version: SUPPORTED_GHIDRA_VERSION }, read_only: false as const, analysis_complete: true, analysis_timed_out: false, diff --git a/tests/boundary/mcp/ghidraReopen.test.ts b/tests/boundary/mcp/ghidraReopen.test.ts index 17e396e18f..a9bcd8e20a 100644 --- a/tests/boundary/mcp/ghidraReopen.test.ts +++ b/tests/boundary/mcp/ghidraReopen.test.ts @@ -104,15 +104,15 @@ class FixtureLauncher implements GhidraLauncher { const installationHost: GhidraInstallationHost = { platform: "linux", architecture: "x64", - readText: () => "application.version=12.1.4\napplication.java.min=21\n", + readText: () => "application.version=12.2\napplication.java.min=25\n", executable: () => true, probeJava: () => javaProbeOk({ osArch: "amd64", osName: "Linux", - version: "21.0.11", - major: 21, - home: "/fixture/jdk-21", + version: "25.0.1", + major: 25, + home: "/fixture/jdk-25", bits: 64, runtime: "jdk", }), @@ -126,7 +126,7 @@ const connectGhidra = async () => { const source = elf(2, 1, 62); await writeFile(target, source); const config = parseConfig({ - GHIDRA_INSTALL_DIR: "/fixture/ghidra_12.1.4_PUBLIC", + GHIDRA_INSTALL_DIR: "/fixture/ghidra_12.2_PUBLIC", }); if (!config.ok) throw config.error; const launcher = new FixtureLauncher(); diff --git a/tests/boundary/mcp/ghidraRoutingMcp.test.ts b/tests/boundary/mcp/ghidraRoutingMcp.test.ts index a80bc7ee9f..1b631ed788 100644 --- a/tests/boundary/mcp/ghidraRoutingMcp.test.ts +++ b/tests/boundary/mcp/ghidraRoutingMcp.test.ts @@ -1,6 +1,7 @@ import { batchDecompileResultSchema } from "../../../src/domain/native/batchDecompile.js"; import { parseMcpToolError } from "../../fixtures/mcpToolError.js"; import { describe, expect, it } from "vitest"; +import { SUPPORTED_GHIDRA_VERSION } from "../../../src/ghidra/GhidraReleasePolicy.js"; import { connectGhidraMcp, ghidraFixtureResult } from "./ghidraMcpHarness.js"; import { parseEvidence } from "../../../src/domain/evidence.js"; import { ok } from "../../../src/domain/result.js"; @@ -52,7 +53,7 @@ describe("Ghidra MCP capability routing", () => { expect(sessionStatus.result).toMatchObject({ open: true, analysis_provider_binding: { - provider: { id: "ghidra", version: "12.1.4" }, + provider: { id: "ghidra", version: SUPPORTED_GHIDRA_VERSION }, }, }); const availability = expandToolAvailability( diff --git a/tests/boundary/providers/ghidra/ghidraClient.test.ts b/tests/boundary/providers/ghidra/ghidraClient.test.ts index 96787613c5..a6d7592e93 100644 --- a/tests/boundary/providers/ghidra/ghidraClient.test.ts +++ b/tests/boundary/providers/ghidra/ghidraClient.test.ts @@ -60,7 +60,7 @@ import { import { waitFor } from "../../../support/testWait.js"; const PROFILE_DIGEST = "a".repeat(64); -const PROVIDER_VERSION = "12.1.4"; +const PROVIDER_VERSION = "12.2"; const TARGET_SHA256 = createHash("sha256") .update(readFileSync(fixturePath)) .digest("hex"); @@ -262,7 +262,7 @@ it.each(["descriptor-close", "result-consumption"] as const)( const caller = new AbortController(); const reason = { caller: phase }; const config = parseConfig({ - GHIDRA_INSTALL_DIR: "/controlled/ghidra_12.1.4_PUBLIC", + GHIDRA_INSTALL_DIR: "/controlled/ghidra_12.2_PUBLIC", }); if (!config.ok) throw config.error; const provider = new GhidraProvider( @@ -272,15 +272,15 @@ it.each(["descriptor-close", "result-consumption"] as const)( { platform: "linux", architecture: "x64", - readText: () => "application.version=12.1.4\napplication.java.min=21\n", + readText: () => "application.version=12.2\napplication.java.min=25\n", executable: () => true, probeJava: () => ok({ osArch: "amd64", osName: "Linux", - version: "21.0.11", - major: 21, - home: "/controlled/jdk21", + version: "25.0.1", + major: 25, + home: "/controlled/jdk-25", bits: 64, runtime: "jdk", }), diff --git a/tests/boundary/providers/ghidra/ghidraJavaLaunch.test.ts b/tests/boundary/providers/ghidra/ghidraJavaLaunch.test.ts index 0a9401672d..3775a85c2f 100644 --- a/tests/boundary/providers/ghidra/ghidraJavaLaunch.test.ts +++ b/tests/boundary/providers/ghidra/ghidraJavaLaunch.test.ts @@ -940,7 +940,7 @@ describe.skipIf(process.platform === "win32")( platform: process.platform, architecture: process.arch, readText: () => - "application.version=12.1.4\napplication.java.min=21\n", + "application.version=12.2\napplication.java.min=25\n", executable: () => true, probeJava: () => javaProbeOk({ @@ -951,8 +951,8 @@ describe.skipIf(process.platform === "win32")( : process.platform === "win32" ? "Windows 11" : "Linux", - version: "21.0.12", - major: 21, + version: "25.0.1", + major: 25, home: "/fixture/jdk", bits: 64, runtime: "jdk", diff --git a/tests/boundary/providers/ghidra/ghidraOomRetention.test.ts b/tests/boundary/providers/ghidra/ghidraOomRetention.test.ts index 5c7908fd37..92ea52438d 100644 --- a/tests/boundary/providers/ghidra/ghidraOomRetention.test.ts +++ b/tests/boundary/providers/ghidra/ghidraOomRetention.test.ts @@ -66,7 +66,7 @@ const failedOperation = async ( { platform: process.platform, architecture: process.arch, - readText: () => "application.version=12.1.4\napplication.java.min=21\n", + readText: () => "application.version=12.2\napplication.java.min=25\n", executable: () => true, probeJava: () => ok({ @@ -77,8 +77,8 @@ const failedOperation = async ( : process.platform === "win32" ? "Windows 11" : "Linux", - version: "21.0.12", - major: 21, + version: "25.0.1", + major: 25, home: "/fixture/jdk", bits: 64, runtime: "jdk", diff --git a/tests/boundary/providers/ghidra/ghidraPathDiscovery.test.ts b/tests/boundary/providers/ghidra/ghidraPathDiscovery.test.ts index e8527c990c..1cf75412c8 100644 --- a/tests/boundary/providers/ghidra/ghidraPathDiscovery.test.ts +++ b/tests/boundary/providers/ghidra/ghidraPathDiscovery.test.ts @@ -18,7 +18,7 @@ it.skipIf(process.platform === "win32")( await mkdir(join(directory, "support"), { recursive: true }); await writeFile( join(directory, "Ghidra/application.properties"), - "application.version=12.1.4\n", + "application.version=12.2\n", ); const launcher = join(directory, "ghidraRun"); await writeFile( diff --git a/tests/conformance/ghidra/README.md b/tests/conformance/ghidra/README.md index 14669bea00..1e99640f48 100644 --- a/tests/conformance/ghidra/README.md +++ b/tests/conformance/ghidra/README.md @@ -17,7 +17,7 @@ no-overwrite CLI delivery. It checks the target and project files for changes. call-site oracle. `npm run verify:ghidra:riscv` exercises real CLI/MCP discovery, decompilation, argument storage, output schemas, profile and snapshot identity, admission and refusal diagnostics, immutable source bytes, - and owned cleanup. It requires BYO Ghidra 12.1.4/JDK 21+ and RISC-V + and owned cleanup. It requires BYO Ghidra 12.2/JDK 25+ and RISC-V Clang/LLD/LLVM readelf/LLVM objdump; `REA_RISCV_CLANG`, `REA_RISCV_LLD`, `REA_RISCV_READELF` and `REA_RISCV_OBJDUMP` select existing tool commands. @@ -106,9 +106,9 @@ no-overwrite CLI delivery. It checks the target and project files for changes. `scripts/verify-real-ghidra.mjs` uses `cc`, `clang`, and `lld-link` by default; `REA_CC`, `REA_CLANG`, and `REA_LLD_LINK` can select alternate commands. The -verifier requires the verified bring-your-own Ghidra 12.1.4 installation through +verifier requires the verified bring-your-own Ghidra 12.2 installation through `GHIDRA_INSTALL_DIR` and validates header classification before starting the -provider. Provider admission accepts newer 12.x (>=12.1) builds with an unverified-build limitation; this lane does +provider. Provider admission accepts other 12.x (>=12.2) builds with an unverified-build limitation; this lane does not. Conformance compares semantic facts: provider/profile identity, function diff --git a/tests/conformance/ghidra/masked-byte-switch.S b/tests/conformance/ghidra/masked-byte-switch.S new file mode 100644 index 0000000000..da905cd21c --- /dev/null +++ b/tests/conformance/ghidra/masked-byte-switch.S @@ -0,0 +1,98 @@ +#if defined(__APPLE__) +.section __TEXT,__text,regular,pure_instructions +.globl _rea_masked_byte_switch +_rea_masked_byte_switch: +#else +.text +.globl rea_masked_byte_switch +.type rea_masked_byte_switch,%function +rea_masked_byte_switch: +#endif + and x8, x0, #0xff +#if defined(__APPLE__) + adrp x9, Lmasked_table@PAGE + add x9, x9, Lmasked_table@PAGEOFF +#else + adrp x9, Lmasked_table + add x9, x9, :lo12:Lmasked_table +#endif + adr x10, Lmasked_case0 + ldrb w11, [x9, x8] + add x10, x10, x11, lsl #2 + br x10 +Lmasked_case0: + mov w0, #200 + ret +Lmasked_case1: + mov w0, #201 + ret +Lmasked_case2: + mov w0, #202 + ret +Lmasked_case3: + mov w0, #203 + ret +Lmasked_case4: + mov w0, #204 + ret +Lmasked_case5: + mov w0, #205 + ret +Lmasked_case6: + mov w0, #206 + ret +Lmasked_case7: + mov w0, #207 + ret + +#if defined(__APPLE__) +.globl _rea_bounded_byte_switch +_rea_bounded_byte_switch: +#else +.globl rea_bounded_byte_switch +.type rea_bounded_byte_switch,%function +rea_bounded_byte_switch: +#endif + cmp w0, #3 + b.hi Lbounded_default + mov w8, w0 +#if defined(__APPLE__) + adrp x9, Lbounded_table@PAGE + add x9, x9, Lbounded_table@PAGEOFF +#else + adrp x9, Lbounded_table + add x9, x9, :lo12:Lbounded_table +#endif + adr x10, Lbounded_case0 + ldrb w11, [x9, x8] + add x10, x10, x11, lsl #2 + br x10 +Lbounded_case0: + mov w0, #1 + ret +Lbounded_case1: + mov w0, #2 + ret +Lbounded_case2: + mov w0, #3 + ret +Lbounded_case3: + mov w0, #4 + ret + +Lbounded_default: + mov w0, #-1 + ret +#if defined(__APPLE__) +.section __TEXT,__const +#else +.section .rodata +#endif +.p2align 1 +Lmasked_table: + .byte 0, 2, 4, 6, 8, 10, 12, 14 + .rept 248 + .byte 0 + .endr +Lbounded_table: + .byte 0, 2, 4, 6 diff --git a/website/locales/ar/messages.po b/website/locales/ar/messages.po index 1d4b5019e1..c2d328160e 100644 --- a/website/locales/ar/messages.po +++ b/website/locales/ar/messages.po @@ -3573,11 +3573,8 @@ msgctxt "page:get-started/index.html" msgid "" "Windows x64 has experimental, read-only support for native x86 and x64 PE " "applications and DLLs on fixed local NTFS/ReFS drives. Use an existing " -"Ghidra 12.1.x installation and a 64-bit JDK 21 or newer:" +"Ghidra 12.2 installation and a 64-bit JDK 25 or newer:" msgstr "" -"على Windows x64، يتوفر دعم تجريبي للقراءة فقط لتطبيقات PE ومكتبات DLL " -"الأصلية بمعمارية x86 وx64 على أقراص NTFS/ReFS المحلية الثابتة. استخدم نسخة " -"مثبتة من Ghidra 12.1.x وJDK بمعمارية 64 بت وإصدار 21 أو أحدث:" #: website/public/get-started/index.html:1182 msgctxt "page:get-started/index.html" @@ -5092,10 +5089,8 @@ msgstr "REA يحتاج إلى واحد من هؤلاء لقراءة البرام msgctxt "page:guides/native/index.html" msgid "" "{ph0}Ghidra{ph1} (macOS or Linux; experimental on Windows): free, but needs " -"an existing Ghidra 12.1.x installation and a 64-bit JDK 21 or newer." +"an existing Ghidra 12.2 installation and a 64-bit JDK 25 or newer." msgstr "" -"{ph0}Ghidra{ph1} (macOS أو Linux؛ التجريبية على Windows): مجانا ، ولكن يحتاج" -" إلى القائمة Ghidra 12.1.س التثبيت و 64 بت جدك 21 أو أحدث." #. {ph0}: #. {ph1}: @@ -13485,22 +13480,18 @@ msgstr "Ghidra · ثبّت أداة التحليل المجانية وJava" #: website/public/get-started/index.html:1111 msgctxt "page:get-started/index.html" msgid "" -"Install a 64-bit JDK 21 or newer, including the Java compiler. Choose the " +"Install a 64-bit JDK 25 or newer, including the Java compiler. Choose the " "package matching your computer's architecture." msgstr "" -"ثبّت JDK بإصدار 21 أو أحدث وبمعمارية 64 بت، بما فيه مترجم Java. اختر الحزمة " -"المطابقة لمعمارية جهازك." #. {ph0}: ghidra_…_PUBLIC_….zip #: website/public/get-started/index.html:1116 #, python-brace-format msgctxt "page:get-started/index.html" msgid "" -"Download Ghidra 12.1.4 from the release's Assets list and extract the {ph0} " +"Download Ghidra 12.2 from the release's Assets list and extract the {ph0} " "archive. Choose the release archive, not “Source code”." msgstr "" -"نزّل Ghidra 12.1.4 من قائمة Assets للإصدار وفك ضغط أرشيف {ph0}. اختر أرشيف " -"الإصدار، لا «Source code»." #. {ph0}: ghidraRun #. {ph1}: ghidraRun.bat @@ -13515,17 +13506,17 @@ msgstr "" "اعثر على المجلد الذي يحتوي على {ph0} أو {ph1} بعد فك الضغط. استخدم هذا " "المجلد لـ {ph2}." -#. {ph0}: +#. {ph0}: #. {ph1}: #. {ph2}: #. {ph3}: #: website/public/get-started/index.html:1127 #, python-brace-format msgctxt "page:get-started/index.html" -msgid "{ph0}Download a JDK{ph1} · {ph2}Download Ghidra 12.1.4{ph3}" -msgstr "{ph0}تنزيل JDK{ph1} · {ph2}تنزيل Ghidra 12.1.4{ph3}" +msgid "{ph0}Download a JDK{ph1} · {ph2}Download Ghidra 12.2{ph3}" +msgstr "" #. {ph0}: java.home #. {ph1}: JAVA_HOME @@ -14103,7 +14094,7 @@ msgid "{ph0}macOS · Apple Silicon{ph1}" msgstr "{ph0}macOS · Apple Silicon{ph1}" #. {ph0}: #. {ph1}: #: website/public/get-started/index.html:1228 diff --git a/website/locales/bg/messages.po b/website/locales/bg/messages.po index 6a5ff24224..cecfa1920c 100644 --- a/website/locales/bg/messages.po +++ b/website/locales/bg/messages.po @@ -5257,7 +5257,7 @@ msgstr "" #: website/public/get-started/index.html:1113 msgctxt "page:get-started/index.html" msgid "" -"Install a 64-bit JDK 21 or newer, including the Java compiler. Choose the " +"Install a 64-bit JDK 25 or newer, including the Java compiler. Choose the " "package matching your computer's architecture." msgstr "" @@ -5266,7 +5266,7 @@ msgstr "" #, python-brace-format msgctxt "page:get-started/index.html" msgid "" -"Download Ghidra 12.1.4 from the release's Assets list and extract the {ph0} " +"Download Ghidra 12.2 from the release's Assets list and extract the {ph0} " "archive. Choose the release archive, not “Source code”." msgstr "" @@ -5281,16 +5281,16 @@ msgid "" "{ph2}." msgstr "" -#. {ph0}: +#. {ph0}: #. {ph1}: #. {ph2}: #. {ph3}: #: website/public/get-started/index.html:1129 #, python-brace-format msgctxt "page:get-started/index.html" -msgid "{ph0}Download a JDK{ph1} · {ph2}Download Ghidra 12.1.4{ph3}" +msgid "{ph0}Download a JDK{ph1} · {ph2}Download Ghidra 12.2{ph3}" msgstr "" #. {ph0}: java.home @@ -5313,7 +5313,7 @@ msgctxt "page:get-started/index.html" msgid "" "Windows x64 has experimental, read-only support for native x86 and x64 PE " "applications and DLLs on fixed local NTFS/ReFS drives. Use an existing " -"Ghidra 12.1.x installation and a 64-bit JDK 21 or newer:" +"Ghidra 12.2 installation and a 64-bit JDK 25 or newer:" msgstr "" #: website/public/get-started/index.html:1184 @@ -5366,7 +5366,7 @@ msgid "{ph0}macOS · Apple Silicon{ph1}" msgstr "" #. {ph0}: #. {ph1}: #: website/public/get-started/index.html:1230 @@ -7473,7 +7473,7 @@ msgstr "" msgctxt "page:guides/native/index.html" msgid "" "{ph0}Ghidra{ph1} (macOS or Linux; experimental on Windows): free, but needs " -"an existing Ghidra 12.1.x installation and a 64-bit JDK 21 or newer." +"an existing Ghidra 12.2 installation and a 64-bit JDK 25 or newer." msgstr "" #. {ph0}: diff --git a/website/locales/de/messages.po b/website/locales/de/messages.po index 0d3836eb46..63c12148e5 100644 --- a/website/locales/de/messages.po +++ b/website/locales/de/messages.po @@ -3725,12 +3725,8 @@ msgctxt "page:get-started/index.html" msgid "" "Windows x64 has experimental, read-only support for native x86 and x64 PE " "applications and DLLs on fixed local NTFS/ReFS drives. Use an existing " -"Ghidra 12.1.x installation and a 64-bit JDK 21 or newer:" +"Ghidra 12.2 installation and a 64-bit JDK 25 or newer:" msgstr "" -"Windows x64 bietet experimentelle schreibgeschützte Unterstützung für native" -" x86- und x64-PE-Anwendungen und DLLs auf festen lokalen NTFS/ReFS-" -"Laufwerken. Verwenden Sie einen vorhandenen Ghidra 12.1.x-Installation und " -"ein 64-Bit-JDK 21 oder neuer:" #: website/public/get-started/index.html:1182 msgctxt "page:get-started/index.html" @@ -5306,11 +5302,8 @@ msgstr "REA benötigt eines davon, um native Programme zu lesen:" msgctxt "page:guides/native/index.html" msgid "" "{ph0}Ghidra{ph1} (macOS or Linux; experimental on Windows): free, but needs " -"an existing Ghidra 12.1.x installation and a 64-bit JDK 21 or newer." +"an existing Ghidra 12.2 installation and a 64-bit JDK 25 or newer." msgstr "" -"{ph0} MODELL: Ghidra {ph1} (macOS oder Linux; experimentell auf Windows): " -"kostenlos, benötigt jedoch ein vorhandenes Ghidra 12.1.x-Installation und " -"ein 64-Bit-JDK 21 oder neuer." #. {ph0}: #. {ph1}: @@ -14043,23 +14036,18 @@ msgstr "Ghidra · das kostenlose Analysewerkzeug und Java installieren" #: website/public/get-started/index.html:1111 msgctxt "page:get-started/index.html" msgid "" -"Install a 64-bit JDK 21 or newer, including the Java compiler. Choose the " +"Install a 64-bit JDK 25 or newer, including the Java compiler. Choose the " "package matching your computer's architecture." msgstr "" -"Installieren Sie ein 64-Bit-JDK 21 oder neuer, einschließlich des Java-" -"Compilers. Wählen Sie das Paket passend zur Architektur Ihres Computers." #. {ph0}: ghidra_…_PUBLIC_….zip #: website/public/get-started/index.html:1116 #, python-brace-format msgctxt "page:get-started/index.html" msgid "" -"Download Ghidra 12.1.4 from the release's Assets list and extract the {ph0} " +"Download Ghidra 12.2 from the release's Assets list and extract the {ph0} " "archive. Choose the release archive, not “Source code”." msgstr "" -"Laden Sie Ghidra 12.1.4 aus der Assets-Liste der Veröffentlichung herunter " -"und entpacken Sie das Archiv {ph0}. Wählen Sie das Release-Archiv, nicht " -"„Source code“." #. {ph0}: ghidraRun #. {ph1}: ghidraRun.bat @@ -14074,18 +14062,17 @@ msgstr "" "Suchen Sie im entpackten Inhalt den Ordner mit {ph0} oder {ph1}. Verwenden " "Sie diesen Ordner für {ph2}." -#. {ph0}: +#. {ph0}: #. {ph1}: #. {ph2}: #. {ph3}: #: website/public/get-started/index.html:1127 #, python-brace-format msgctxt "page:get-started/index.html" -msgid "{ph0}Download a JDK{ph1} · {ph2}Download Ghidra 12.1.4{ph3}" +msgid "{ph0}Download a JDK{ph1} · {ph2}Download Ghidra 12.2{ph3}" msgstr "" -"{ph0}Ein JDK herunterladen{ph1} · {ph2}Ghidra 12.1.4 herunterladen{ph3}" #. {ph0}: java.home #. {ph1}: JAVA_HOME @@ -14685,7 +14672,7 @@ msgid "{ph0}macOS · Apple Silicon{ph1}" msgstr "{ph0}macOS · Apple Silicon{ph1}" #. {ph0}: #. {ph1}: #: website/public/get-started/index.html:1228 diff --git a/website/locales/el/messages.po b/website/locales/el/messages.po index 774b7c90b6..20f874910e 100644 --- a/website/locales/el/messages.po +++ b/website/locales/el/messages.po @@ -5563,12 +5563,8 @@ msgctxt "page:get-started/index.html" msgid "" "Windows x64 has experimental, read-only support for native x86 and x64 PE " "applications and DLLs on fixed local NTFS/ReFS drives. Use an existing " -"Ghidra 12.1.x installation and a 64-bit JDK 21 or newer:" +"Ghidra 12.2 installation and a 64-bit JDK 25 or newer:" msgstr "" -"Τα Windows x64 έχουν πειραματική υποστήριξη μόνο για ανάγνωση για εφαρμογές " -"PE και DLL εγγενούς κώδικα x86 και x64 σε σταθερούς τοπικούς δίσκους " -"NTFS/ReFS. Χρησιμοποιήστε μια υπάρχουσα εγκατάσταση Ghidra 12.1.x και JDK 21" -" ή νεότερο, 64 bit:" #: website/public/get-started/index.html:1182 msgctxt "page:get-started/index.html" @@ -7261,10 +7257,8 @@ msgstr "" msgctxt "page:guides/native/index.html" msgid "" "{ph0}Ghidra{ph1} (macOS or Linux; experimental on Windows): free, but needs " -"an existing Ghidra 12.1.x installation and a 64-bit JDK 21 or newer." +"an existing Ghidra 12.2 installation and a 64-bit JDK 25 or newer." msgstr "" -"{ph0}Ghidra{ph1} (macOS ή Linux· πειραματικά στα Windows): δωρεάν, αλλά " -"χρειάζεται υπάρχουσα εγκατάσταση Ghidra 12.1.x και JDK 21 ή νεότερο, 64 bit." #. {ph0}: #. {ph1}: @@ -14138,22 +14132,18 @@ msgstr "Ghidra · εγκαταστήστε το δωρεάν εργαλείο α #: website/public/get-started/index.html:1111 msgctxt "page:get-started/index.html" msgid "" -"Install a 64-bit JDK 21 or newer, including the Java compiler. Choose the " +"Install a 64-bit JDK 25 or newer, including the Java compiler. Choose the " "package matching your computer's architecture." msgstr "" -"Εγκαταστήστε JDK 21 ή νεότερο, 64 bit, μαζί με τον μεταγλωττιστή Java. " -"Επιλέξτε το πακέτο που αντιστοιχεί στην αρχιτεκτονική του υπολογιστή σας." #. {ph0}: ghidra_…_PUBLIC_….zip #: website/public/get-started/index.html:1116 #, python-brace-format msgctxt "page:get-started/index.html" msgid "" -"Download Ghidra 12.1.4 from the release's Assets list and extract the {ph0} " +"Download Ghidra 12.2 from the release's Assets list and extract the {ph0} " "archive. Choose the release archive, not “Source code”." msgstr "" -"Κατεβάστε το Ghidra 12.1.4 από τη λίστα Assets της έκδοσης και αποσυμπιέστε " -"το αρχείο {ph0}. Επιλέξτε το αρχείο της έκδοσης και όχι το «Source code»." #. {ph0}: ghidraRun #. {ph1}: ghidraRun.bat @@ -14168,17 +14158,17 @@ msgstr "" "Βρείτε τον αποσυμπιεσμένο φάκελο που περιέχει το {ph0} ή το {ph1}. " "Χρησιμοποιήστε αυτόν τον φάκελο για το {ph2}." -#. {ph0}: +#. {ph0}: #. {ph1}: #. {ph2}: #. {ph3}: #: website/public/get-started/index.html:1127 #, python-brace-format msgctxt "page:get-started/index.html" -msgid "{ph0}Download a JDK{ph1} · {ph2}Download Ghidra 12.1.4{ph3}" -msgstr "{ph0}Λήψη JDK{ph1} · {ph2}Λήψη Ghidra 12.1.4{ph3}" +msgid "{ph0}Download a JDK{ph1} · {ph2}Download Ghidra 12.2{ph3}" +msgstr "" #. {ph0}: java.home #. {ph1}: JAVA_HOME @@ -14237,7 +14227,7 @@ msgid "{ph0}macOS · Apple Silicon{ph1}" msgstr "{ph0}macOS · Apple Silicon{ph1}" #. {ph0}: #. {ph1}: #: website/public/get-started/index.html:1228 diff --git a/website/locales/es/messages.po b/website/locales/es/messages.po index 7ca112e7d0..9ede921e8f 100644 --- a/website/locales/es/messages.po +++ b/website/locales/es/messages.po @@ -3706,12 +3706,8 @@ msgctxt "page:get-started/index.html" msgid "" "Windows x64 has experimental, read-only support for native x86 and x64 PE " "applications and DLLs on fixed local NTFS/ReFS drives. Use an existing " -"Ghidra 12.1.x installation and a 64-bit JDK 21 or newer:" +"Ghidra 12.2 installation and a 64-bit JDK 25 or newer:" msgstr "" -"Windows x64 tiene soporte experimental de solo lectura para aplicaciones y " -"DLL nativas x86 y x64 PE en unidades NTFS/ReFS locales fijas. Usa una " -"instalación existente de Ghidra 12.1.x y un JDK de 64 bits, versión 21 o " -"posterior:" #: website/public/get-started/index.html:1182 msgctxt "page:get-started/index.html" @@ -5270,11 +5266,8 @@ msgstr "REA necesita uno de estos para leer programas nativos:" msgctxt "page:guides/native/index.html" msgid "" "{ph0}Ghidra{ph1} (macOS or Linux; experimental on Windows): free, but needs " -"an existing Ghidra 12.1.x installation and a 64-bit JDK 21 or newer." +"an existing Ghidra 12.2 installation and a 64-bit JDK 25 or newer." msgstr "" -"{ph0} Ghidra {ph1} ( macOS o Linux; experimental en Windows): gratis, pero " -"necesita un Ghidra 12.1 existente.x instalación y un JDK 21 de 64 bits o más" -" reciente." #. {ph0}: #. {ph1}: @@ -13942,23 +13935,18 @@ msgstr "Ghidra · instala la herramienta de análisis gratuita y Java" #: website/public/get-started/index.html:1111 msgctxt "page:get-started/index.html" msgid "" -"Install a 64-bit JDK 21 or newer, including the Java compiler. Choose the " +"Install a 64-bit JDK 25 or newer, including the Java compiler. Choose the " "package matching your computer's architecture." msgstr "" -"Instala un JDK de 64 bits, versión 21 o posterior, que incluya el compilador" -" de Java. Elige el paquete correspondiente a la arquitectura de tu " -"ordenador." #. {ph0}: ghidra_…_PUBLIC_….zip #: website/public/get-started/index.html:1116 #, python-brace-format msgctxt "page:get-started/index.html" msgid "" -"Download Ghidra 12.1.4 from the release's Assets list and extract the {ph0} " +"Download Ghidra 12.2 from the release's Assets list and extract the {ph0} " "archive. Choose the release archive, not “Source code”." msgstr "" -"Descarga Ghidra 12.1.4 desde la lista Assets de la versión publicada y " -"extrae el archivo {ph0}. Elige el archivo de la versión, no «Source code»." #. {ph0}: ghidraRun #. {ph1}: ghidraRun.bat @@ -13973,17 +13961,17 @@ msgstr "" "Busca la carpeta extraída que contiene {ph0} o {ph1}. Usa esa carpeta para " "{ph2}." -#. {ph0}: +#. {ph0}: #. {ph1}: #. {ph2}: #. {ph3}: #: website/public/get-started/index.html:1127 #, python-brace-format msgctxt "page:get-started/index.html" -msgid "{ph0}Download a JDK{ph1} · {ph2}Download Ghidra 12.1.4{ph3}" -msgstr "{ph0}Descargar un JDK{ph1} · {ph2}Descargar Ghidra 12.1.4{ph3}" +msgid "{ph0}Download a JDK{ph1} · {ph2}Download Ghidra 12.2{ph3}" +msgstr "" #. {ph0}: java.home #. {ph1}: JAVA_HOME @@ -14576,7 +14564,7 @@ msgid "{ph0}macOS · Apple Silicon{ph1}" msgstr "{ph0}macOS · Apple Silicon{ph1}" #. {ph0}: #. {ph1}: #: website/public/get-started/index.html:1228 diff --git a/website/locales/fa/messages.po b/website/locales/fa/messages.po index 03c46f770f..d30d30f3d7 100644 --- a/website/locales/fa/messages.po +++ b/website/locales/fa/messages.po @@ -3601,11 +3601,8 @@ msgctxt "page:get-started/index.html" msgid "" "Windows x64 has experimental, read-only support for native x86 and x64 PE " "applications and DLLs on fixed local NTFS/ReFS drives. Use an existing " -"Ghidra 12.1.x installation and a 64-bit JDK 21 or newer:" +"Ghidra 12.2 installation and a 64-bit JDK 25 or newer:" msgstr "" -"Windows x64 پشتیبانی آزمایشی و فقط‌خواندنی از برنامه‌ها و DLLهای بومی x86 " -"وx64 با قالب PE روی درایوهای ثابت محلی NTFS/ReFS دارد. از نصب موجود Ghidra " -"12.1.x وJDK ‏64 بیتی نسخهٔ 21 یا جدیدتر استفاده کنید:" #: website/public/get-started/index.html:1182 msgctxt "page:get-started/index.html" @@ -5137,10 +5134,8 @@ msgstr "REA برای خواندن برنامه های بومی به یکی از msgctxt "page:guides/native/index.html" msgid "" "{ph0}Ghidra{ph1} (macOS or Linux; experimental on Windows): free, but needs " -"an existing Ghidra 12.1.x installation and a 64-bit JDK 21 or newer." +"an existing Ghidra 12.2 installation and a 64-bit JDK 25 or newer." msgstr "" -"{ph0} Ghidra {ph1} (macOS یا Linux; تجربی در Windows): رایگان, اما نیاز به " -"Ghidra موجود 12.1.x نصب و 64 بیتی JDK 21 یا جدیدتر." #. {ph0}: #. {ph1}: @@ -13610,22 +13605,18 @@ msgstr "Ghidra · ابزار تحلیل رایگان و Java را نصب کنی #: website/public/get-started/index.html:1111 msgctxt "page:get-started/index.html" msgid "" -"Install a 64-bit JDK 21 or newer, including the Java compiler. Choose the " +"Install a 64-bit JDK 25 or newer, including the Java compiler. Choose the " "package matching your computer's architecture." msgstr "" -"یک JDK ‏64 بیتی نسخهٔ 21 یا جدیدتر، شامل کامپایلر Java، نصب کنید. بسته‌ای را" -" انتخاب کنید که با معماری رایانه‌تان مطابقت دارد." #. {ph0}: ghidra_…_PUBLIC_….zip #: website/public/get-started/index.html:1116 #, python-brace-format msgctxt "page:get-started/index.html" msgid "" -"Download Ghidra 12.1.4 from the release's Assets list and extract the {ph0} " +"Download Ghidra 12.2 from the release's Assets list and extract the {ph0} " "archive. Choose the release archive, not “Source code”." msgstr "" -"Ghidra 12.1.4 را از فهرست Assets نسخه دانلود کنید و بایگانی {ph0} را استخراج" -" کنید. بایگانی نسخه را انتخاب کنید، نه «Source code»." #. {ph0}: ghidraRun #. {ph1}: ghidraRun.bat @@ -13640,17 +13631,17 @@ msgstr "" "پوشهٔ استخراج‌شده‌ای را پیدا کنید که {ph0} یا {ph1} در آن است. از همان پوشه " "برای {ph2} استفاده کنید." -#. {ph0}: +#. {ph0}: #. {ph1}: #. {ph2}: #. {ph3}: #: website/public/get-started/index.html:1127 #, python-brace-format msgctxt "page:get-started/index.html" -msgid "{ph0}Download a JDK{ph1} · {ph2}Download Ghidra 12.1.4{ph3}" -msgstr "{ph0}دانلود JDK{ph1} · {ph2}دانلود Ghidra 12.1.4{ph3}" +msgid "{ph0}Download a JDK{ph1} · {ph2}Download Ghidra 12.2{ph3}" +msgstr "" #. {ph0}: java.home #. {ph1}: JAVA_HOME @@ -14237,7 +14228,7 @@ msgid "{ph0}macOS · Apple Silicon{ph1}" msgstr "{ph0}macOS · Apple Silicon{ph1}" #. {ph0}: #. {ph1}: #: website/public/get-started/index.html:1228 diff --git a/website/locales/fr/messages.po b/website/locales/fr/messages.po index c04f8d1323..aec6a79509 100644 --- a/website/locales/fr/messages.po +++ b/website/locales/fr/messages.po @@ -3708,12 +3708,8 @@ msgctxt "page:get-started/index.html" msgid "" "Windows x64 has experimental, read-only support for native x86 and x64 PE " "applications and DLLs on fixed local NTFS/ReFS drives. Use an existing " -"Ghidra 12.1.x installation and a 64-bit JDK 21 or newer:" +"Ghidra 12.2 installation and a 64-bit JDK 25 or newer:" msgstr "" -"Windows x64 offre une prise en charge expérimentale en lecture seule des " -"applications et DLL natives x86 et x64 au format PE sur des disques " -"NTFS/ReFS locaux fixes. Utilisez une installation existante de Ghidra 12.1.x" -" et un JDK 64 bits, version 21 ou ultérieure :" #: website/public/get-started/index.html:1182 msgctxt "page:get-started/index.html" @@ -5274,11 +5270,8 @@ msgstr "REA a besoin de l'un d'entre eux pour lire des programmes natifs:" msgctxt "page:guides/native/index.html" msgid "" "{ph0}Ghidra{ph1} (macOS or Linux; experimental on Windows): free, but needs " -"an existing Ghidra 12.1.x installation and a 64-bit JDK 21 or newer." +"an existing Ghidra 12.2 installation and a 64-bit JDK 25 or newer." msgstr "" -"{ph0}Ghidra{ph1} (macOS ou Linux; expérimental sur Windows): gratuit, mais " -"nécessite un existant Ghidra 12.1.installation x et un JDK 64 bits 21 ou " -"plus récent." #. {ph0}: #. {ph1}: @@ -13975,24 +13968,18 @@ msgstr "Ghidra · installer l’outil d’analyse gratuit et Java" #: website/public/get-started/index.html:1111 msgctxt "page:get-started/index.html" msgid "" -"Install a 64-bit JDK 21 or newer, including the Java compiler. Choose the " +"Install a 64-bit JDK 25 or newer, including the Java compiler. Choose the " "package matching your computer's architecture." msgstr "" -"Installez un JDK 64 bits, version 21 ou ultérieure, comprenant le " -"compilateur Java. Choisissez le paquet correspondant à l’architecture de " -"votre ordinateur." #. {ph0}: ghidra_…_PUBLIC_….zip #: website/public/get-started/index.html:1116 #, python-brace-format msgctxt "page:get-started/index.html" msgid "" -"Download Ghidra 12.1.4 from the release's Assets list and extract the {ph0} " +"Download Ghidra 12.2 from the release's Assets list and extract the {ph0} " "archive. Choose the release archive, not “Source code”." msgstr "" -"Téléchargez Ghidra 12.1.4 dans la liste Assets de la version publiée et " -"extrayez l’archive {ph0}. Choisissez l’archive de la version, pas « Source " -"code »." #. {ph0}: ghidraRun #. {ph1}: ghidraRun.bat @@ -14007,17 +13994,17 @@ msgstr "" "Repérez le dossier extrait contenant {ph0} ou {ph1}. Utilisez ce dossier " "pour {ph2}." -#. {ph0}: +#. {ph0}: #. {ph1}: #. {ph2}: #. {ph3}: #: website/public/get-started/index.html:1127 #, python-brace-format msgctxt "page:get-started/index.html" -msgid "{ph0}Download a JDK{ph1} · {ph2}Download Ghidra 12.1.4{ph3}" -msgstr "{ph0}Télécharger un JDK{ph1} · {ph2}Télécharger Ghidra 12.1.4{ph3}" +msgid "{ph0}Download a JDK{ph1} · {ph2}Download Ghidra 12.2{ph3}" +msgstr "" #. {ph0}: java.home #. {ph1}: JAVA_HOME @@ -14615,7 +14602,7 @@ msgid "{ph0}macOS · Apple Silicon{ph1}" msgstr "{ph0}macOS · Apple Silicon{ph1}" #. {ph0}: #. {ph1}: #: website/public/get-started/index.html:1228 diff --git a/website/locales/id/messages.po b/website/locales/id/messages.po index abac7f3959..8df8a4155e 100644 --- a/website/locales/id/messages.po +++ b/website/locales/id/messages.po @@ -3677,12 +3677,8 @@ msgctxt "page:get-started/index.html" msgid "" "Windows x64 has experimental, read-only support for native x86 and x64 PE " "applications and DLLs on fixed local NTFS/ReFS drives. Use an existing " -"Ghidra 12.1.x installation and a 64-bit JDK 21 or newer:" +"Ghidra 12.2 installation and a 64-bit JDK 25 or newer:" msgstr "" -"Windows x64 memiliki dukungan eksperimental hanya-baca untuk aplikasi dan " -"DLL native x86 dan x64 berformat PE pada drive NTFS/ReFS lokal tetap. " -"Gunakan instalasi Ghidra 12.1.x yang sudah ada dan JDK 64-bit versi 21 atau " -"lebih baru:" #: website/public/get-started/index.html:1182 msgctxt "page:get-started/index.html" @@ -5224,11 +5220,8 @@ msgstr "REA membutuhkan salah satunya untuk membaca program asli:" msgctxt "page:guides/native/index.html" msgid "" "{ph0}Ghidra{ph1} (macOS or Linux; experimental on Windows): free, but needs " -"an existing Ghidra 12.1.x installation and a 64-bit JDK 21 or newer." +"an existing Ghidra 12.2 installation and a 64-bit JDK 25 or newer." msgstr "" -"{ph0} Ghidra {ph1} ( macOS atau Linux; eksperimental pada Windows): gratis, " -"tetapi membutuhkan Ghidra 12.1 yang sudah ada.instalasi x dan JDK 64-bit 21 " -"atau yang lebih baru." #. {ph0}: #. {ph1}: @@ -13827,22 +13820,18 @@ msgstr "Ghidra · instal alat analisis gratis dan Java" #: website/public/get-started/index.html:1111 msgctxt "page:get-started/index.html" msgid "" -"Install a 64-bit JDK 21 or newer, including the Java compiler. Choose the " +"Install a 64-bit JDK 25 or newer, including the Java compiler. Choose the " "package matching your computer's architecture." msgstr "" -"Instal JDK 64-bit versi 21 atau lebih baru, termasuk kompiler Java. Pilih " -"paket yang sesuai dengan arsitektur komputermu." #. {ph0}: ghidra_…_PUBLIC_….zip #: website/public/get-started/index.html:1116 #, python-brace-format msgctxt "page:get-started/index.html" msgid "" -"Download Ghidra 12.1.4 from the release's Assets list and extract the {ph0} " +"Download Ghidra 12.2 from the release's Assets list and extract the {ph0} " "archive. Choose the release archive, not “Source code”." msgstr "" -"Unduh Ghidra 12.1.4 dari daftar Assets pada rilis dan ekstrak arsip {ph0}. " -"Pilih arsip rilis, bukan “Source code”." #. {ph0}: ghidraRun #. {ph1}: ghidraRun.bat @@ -13857,17 +13846,17 @@ msgstr "" "Cari folder hasil ekstraksi yang berisi {ph0} atau {ph1}. Gunakan folder itu" " untuk {ph2}." -#. {ph0}: +#. {ph0}: #. {ph1}: #. {ph2}: #. {ph3}: #: website/public/get-started/index.html:1127 #, python-brace-format msgctxt "page:get-started/index.html" -msgid "{ph0}Download a JDK{ph1} · {ph2}Download Ghidra 12.1.4{ph3}" -msgstr "{ph0}Unduh JDK{ph1} · {ph2}Unduh Ghidra 12.1.4{ph3}" +msgid "{ph0}Download a JDK{ph1} · {ph2}Download Ghidra 12.2{ph3}" +msgstr "" #. {ph0}: java.home #. {ph1}: JAVA_HOME @@ -14458,7 +14447,7 @@ msgid "{ph0}macOS · Apple Silicon{ph1}" msgstr "{ph0}macOS · Apple Silicon{ph1}" #. {ph0}: #. {ph1}: #: website/public/get-started/index.html:1228 diff --git a/website/locales/it/messages.po b/website/locales/it/messages.po index 4a4b44f6c0..43fba89297 100644 --- a/website/locales/it/messages.po +++ b/website/locales/it/messages.po @@ -3690,12 +3690,8 @@ msgctxt "page:get-started/index.html" msgid "" "Windows x64 has experimental, read-only support for native x86 and x64 PE " "applications and DLLs on fixed local NTFS/ReFS drives. Use an existing " -"Ghidra 12.1.x installation and a 64-bit JDK 21 or newer:" +"Ghidra 12.2 installation and a 64-bit JDK 25 or newer:" msgstr "" -"Windows x64 offre supporto sperimentale di sola lettura per applicazioni e " -"DLL native x86 e x64 in formato PE su unità NTFS/ReFS locali fisse. Usa " -"un'installazione esistente di Ghidra 12.1.x e un JDK a 64 bit, versione 21 o" -" successiva:" #: website/public/get-started/index.html:1182 msgctxt "page:get-started/index.html" @@ -5249,11 +5245,8 @@ msgstr "REA ha bisogno di uno di questi per leggere i programmi nativi:" msgctxt "page:guides/native/index.html" msgid "" "{ph0}Ghidra{ph1} (macOS or Linux; experimental on Windows): free, but needs " -"an existing Ghidra 12.1.x installation and a 64-bit JDK 21 or newer." +"an existing Ghidra 12.2 installation and a 64-bit JDK 25 or newer." msgstr "" -"{ph0} Ghidra {ph1} (macOS o Linux ; sperimentale su Windows): gratuito, ma " -"richiede un Ghidra 12.1 esistente.x installazione e un 64-bit JDK 21 o più " -"recente." #. {ph0}: #. {ph1}: @@ -13891,22 +13884,18 @@ msgstr "Ghidra · installa lo strumento di analisi gratuito e Java" #: website/public/get-started/index.html:1111 msgctxt "page:get-started/index.html" msgid "" -"Install a 64-bit JDK 21 or newer, including the Java compiler. Choose the " +"Install a 64-bit JDK 25 or newer, including the Java compiler. Choose the " "package matching your computer's architecture." msgstr "" -"Installa un JDK a 64 bit, versione 21 o successiva, incluso il compilatore " -"Java. Scegli il pacchetto adatto all'architettura del tuo computer." #. {ph0}: ghidra_…_PUBLIC_….zip #: website/public/get-started/index.html:1116 #, python-brace-format msgctxt "page:get-started/index.html" msgid "" -"Download Ghidra 12.1.4 from the release's Assets list and extract the {ph0} " +"Download Ghidra 12.2 from the release's Assets list and extract the {ph0} " "archive. Choose the release archive, not “Source code”." msgstr "" -"Scarica Ghidra 12.1.4 dall'elenco Assets della versione ed estrai l'archivio" -" {ph0}. Scegli l'archivio della versione, non “Source code”." #. {ph0}: ghidraRun #. {ph1}: ghidraRun.bat @@ -13921,17 +13910,17 @@ msgstr "" "Trova la cartella estratta che contiene {ph0} o {ph1}. Usa quella cartella " "per {ph2}." -#. {ph0}: +#. {ph0}: #. {ph1}: #. {ph2}: #. {ph3}: #: website/public/get-started/index.html:1127 #, python-brace-format msgctxt "page:get-started/index.html" -msgid "{ph0}Download a JDK{ph1} · {ph2}Download Ghidra 12.1.4{ph3}" -msgstr "{ph0}Scarica un JDK{ph1} · {ph2}Scarica Ghidra 12.1.4{ph3}" +msgid "{ph0}Download a JDK{ph1} · {ph2}Download Ghidra 12.2{ph3}" +msgstr "" #. {ph0}: java.home #. {ph1}: JAVA_HOME @@ -14522,7 +14511,7 @@ msgid "{ph0}macOS · Apple Silicon{ph1}" msgstr "{ph0}macOS · Apple Silicon{ph1}" #. {ph0}: #. {ph1}: #: website/public/get-started/index.html:1228 diff --git a/website/locales/ja/messages.po b/website/locales/ja/messages.po index 6790d5838b..c3ad0f9006 100644 --- a/website/locales/ja/messages.po +++ b/website/locales/ja/messages.po @@ -3401,10 +3401,8 @@ msgctxt "page:get-started/index.html" msgid "" "Windows x64 has experimental, read-only support for native x86 and x64 PE " "applications and DLLs on fixed local NTFS/ReFS drives. Use an existing " -"Ghidra 12.1.x installation and a 64-bit JDK 21 or newer:" +"Ghidra 12.2 installation and a 64-bit JDK 25 or newer:" msgstr "" -"Windows x64では、固定ローカルNTFS/ReFSドライブ上のネイティブx86/x64 " -"PEアプリとDLLに実験的な読み取り専用対応があります。既存のGhidra 12.1.xと64ビットのJDK 21以降を使ってください。" #: website/public/get-started/index.html:1182 msgctxt "page:get-started/index.html" @@ -4856,10 +4854,8 @@ msgstr "REAは、ネイティブプログラムを読むためにこれらのい msgctxt "page:guides/native/index.html" msgid "" "{ph0}Ghidra{ph1} (macOS or Linux; experimental on Windows): free, but needs " -"an existing Ghidra 12.1.x installation and a 64-bit JDK 21 or newer." +"an existing Ghidra 12.2 installation and a 64-bit JDK 25 or newer." msgstr "" -"{ph0} Ghidra {ph1} " -"(macOSまたはLinux;Windowsで実験):無料ですが、既存のGhidra12.1が必要です。Xのインストールおよび64ビットJDK21以降。" #. {ph0}: #. {ph1}: @@ -12836,21 +12832,18 @@ msgstr "Ghidra · 無料の分析ツールとJavaをインストールする" #: website/public/get-started/index.html:1111 msgctxt "page:get-started/index.html" msgid "" -"Install a 64-bit JDK 21 or newer, including the Java compiler. Choose the " +"Install a 64-bit JDK 25 or newer, including the Java compiler. Choose the " "package matching your computer's architecture." msgstr "" -"Javaコンパイラーを含む64ビットのJDK 21以降をインストールしてください。コンピューターのアーキテクチャに合うパッケージを選びます。" #. {ph0}: ghidra_…_PUBLIC_….zip #: website/public/get-started/index.html:1116 #, python-brace-format msgctxt "page:get-started/index.html" msgid "" -"Download Ghidra 12.1.4 from the release's Assets list and extract the {ph0} " +"Download Ghidra 12.2 from the release's Assets list and extract the {ph0} " "archive. Choose the release archive, not “Source code”." msgstr "" -"リリースのAssets一覧からGhidra 12.1.4をダウンロードし、{ph0}アーカイブを展開してください。「Source " -"code」ではなく、リリース用のアーカイブを選びます。" #. {ph0}: ghidraRun #. {ph1}: ghidraRun.bat @@ -12863,17 +12856,17 @@ msgid "" "{ph2}." msgstr "展開したフォルダーのうち、{ph0}または{ph1}が入っているものを探してください。そのフォルダーを{ph2}に指定します。" -#. {ph0}: +#. {ph0}: #. {ph1}: #. {ph2}: #. {ph3}: #: website/public/get-started/index.html:1127 #, python-brace-format msgctxt "page:get-started/index.html" -msgid "{ph0}Download a JDK{ph1} · {ph2}Download Ghidra 12.1.4{ph3}" -msgstr "{ph0}JDKをダウンロード{ph1} · {ph2}Ghidra 12.1.4をダウンロード{ph3}" +msgid "{ph0}Download a JDK{ph1} · {ph2}Download Ghidra 12.2{ph3}" +msgstr "" #. {ph0}: java.home #. {ph1}: JAVA_HOME @@ -13422,7 +13415,7 @@ msgid "{ph0}macOS · Apple Silicon{ph1}" msgstr "{ph0}macOS · Apple Silicon{ph1}" #. {ph0}: #. {ph1}: #: website/public/get-started/index.html:1228 diff --git a/website/locales/ko/messages.po b/website/locales/ko/messages.po index 243a2247db..2f8c33da9e 100644 --- a/website/locales/ko/messages.po +++ b/website/locales/ko/messages.po @@ -3397,10 +3397,8 @@ msgctxt "page:get-started/index.html" msgid "" "Windows x64 has experimental, read-only support for native x86 and x64 PE " "applications and DLLs on fixed local NTFS/ReFS drives. Use an existing " -"Ghidra 12.1.x installation and a 64-bit JDK 21 or newer:" +"Ghidra 12.2 installation and a 64-bit JDK 25 or newer:" msgstr "" -"Windows x64에서는 고정 로컬 NTFS/ReFS 드라이브의 네이티브 x86 및 x64 PE 앱과 DLL을 실험적으로 읽기 전용 " -"분석할 수 있습니다. 기존 Ghidra 12.1.x 설치와 64비트 JDK 21 이상을 사용하세요." #: website/public/get-started/index.html:1182 msgctxt "page:get-started/index.html" @@ -4855,10 +4853,8 @@ msgstr "REA로 네이티브 프로그램을 읽으려면 다음 중 하나가 msgctxt "page:guides/native/index.html" msgid "" "{ph0}Ghidra{ph1} (macOS or Linux; experimental on Windows): free, but needs " -"an existing Ghidra 12.1.x installation and a 64-bit JDK 21 or newer." +"an existing Ghidra 12.2 installation and a 64-bit JDK 25 or newer." msgstr "" -"{ph0}Ghidra{ph1} (macOS 또는 Linux, Windows에서는 실험적 지원): 무료이지만 기존 Ghidra 12.1.x" -" 설치와 64비트 JDK 21 이상이 필요합니다." #. {ph0}: #. {ph1}: @@ -12897,20 +12893,18 @@ msgstr "Ghidra · 무료 분석 도구와 Java 설치하기" #: website/public/get-started/index.html:1111 msgctxt "page:get-started/index.html" msgid "" -"Install a 64-bit JDK 21 or newer, including the Java compiler. Choose the " +"Install a 64-bit JDK 25 or newer, including the Java compiler. Choose the " "package matching your computer's architecture." -msgstr "Java 컴파일러를 포함하는 64비트 JDK 21 이상을 설치하세요. 컴퓨터 아키텍처에 맞는 패키지를 선택하세요." +msgstr "" #. {ph0}: ghidra_…_PUBLIC_….zip #: website/public/get-started/index.html:1116 #, python-brace-format msgctxt "page:get-started/index.html" msgid "" -"Download Ghidra 12.1.4 from the release's Assets list and extract the {ph0} " +"Download Ghidra 12.2 from the release's Assets list and extract the {ph0} " "archive. Choose the release archive, not “Source code”." msgstr "" -"릴리스의 Assets 목록에서 Ghidra 12.1.4를 다운로드하고 {ph0} 압축 파일을 푸세요. ‘Source code’가 아닌 " -"릴리스 압축 파일을 선택하세요." #. {ph0}: ghidraRun #. {ph1}: ghidraRun.bat @@ -12923,17 +12917,17 @@ msgid "" "{ph2}." msgstr "압축을 푼 폴더 중 {ph0} 또는 {ph1}가 들어 있는 폴더를 찾으세요. 그 폴더를 {ph2}로 지정하세요." -#. {ph0}: +#. {ph0}: #. {ph1}: #. {ph2}: #. {ph3}: #: website/public/get-started/index.html:1127 #, python-brace-format msgctxt "page:get-started/index.html" -msgid "{ph0}Download a JDK{ph1} · {ph2}Download Ghidra 12.1.4{ph3}" -msgstr "{ph0}JDK 다운로드{ph1} · {ph2}Ghidra 12.1.4 다운로드{ph3}" +msgid "{ph0}Download a JDK{ph1} · {ph2}Download Ghidra 12.2{ph3}" +msgstr "" #. {ph0}: java.home #. {ph1}: JAVA_HOME @@ -13488,7 +13482,7 @@ msgid "{ph0}macOS · Apple Silicon{ph1}" msgstr "{ph0}macOS · Apple Silicon{ph1}" #. {ph0}: #. {ph1}: #: website/public/get-started/index.html:1228 diff --git a/website/locales/messages.pot b/website/locales/messages.pot index f97e811eb7..cb48f60396 100644 --- a/website/locales/messages.pot +++ b/website/locales/messages.pot @@ -5063,7 +5063,7 @@ msgstr "" #: website/public/get-started/index.html:1113 msgctxt "page:get-started/index.html" msgid "" -"Install a 64-bit JDK 21 or newer, including the Java compiler. Choose the package " +"Install a 64-bit JDK 25 or newer, including the Java compiler. Choose the package " "matching your computer's architecture." msgstr "" @@ -5072,7 +5072,7 @@ msgstr "" #, python-brace-format msgctxt "page:get-started/index.html" msgid "" -"Download Ghidra 12.1.4 from the release's Assets list and extract the {ph0} archive. " +"Download Ghidra 12.2 from the release's Assets list and extract the {ph0} archive. " "Choose the release archive, not “Source code”." msgstr "" @@ -5085,16 +5085,16 @@ msgctxt "page:get-started/index.html" msgid "Find the extracted folder containing {ph0} or {ph1}. Use that folder for {ph2}." msgstr "" -#. {ph0}: +#. {ph0}: #. {ph1}: #. {ph2}: #. {ph3}: #: website/public/get-started/index.html:1129 #, python-brace-format msgctxt "page:get-started/index.html" -msgid "{ph0}Download a JDK{ph1} · {ph2}Download Ghidra 12.1.4{ph3}" +msgid "{ph0}Download a JDK{ph1} · {ph2}Download Ghidra 12.2{ph3}" msgstr "" #. {ph0}: java.home @@ -5116,8 +5116,8 @@ msgstr "" msgctxt "page:get-started/index.html" msgid "" "Windows x64 has experimental, read-only support for native x86 and x64 PE applications" -" and DLLs on fixed local NTFS/ReFS drives. Use an existing Ghidra 12.1.x installation " -"and a 64-bit JDK 21 or newer:" +" and DLLs on fixed local NTFS/ReFS drives. Use an existing Ghidra 12.2 installation " +"and a 64-bit JDK 25 or newer:" msgstr "" #: website/public/get-started/index.html:1184 @@ -5168,7 +5168,7 @@ msgid "{ph0}macOS · Apple Silicon{ph1}" msgstr "" #. {ph0}: #. {ph1}: #: website/public/get-started/index.html:1230 @@ -7215,7 +7215,7 @@ msgstr "" msgctxt "page:guides/native/index.html" msgid "" "{ph0}Ghidra{ph1} (macOS or Linux; experimental on Windows): free, but needs an " -"existing Ghidra 12.1.x installation and a 64-bit JDK 21 or newer." +"existing Ghidra 12.2 installation and a 64-bit JDK 25 or newer." msgstr "" #. {ph0}: diff --git a/website/locales/ml/messages.po b/website/locales/ml/messages.po index e2a59a8d1c..40001ca172 100644 --- a/website/locales/ml/messages.po +++ b/website/locales/ml/messages.po @@ -5176,7 +5176,7 @@ msgstr "" #: website/public/get-started/index.html:1111 msgctxt "page:get-started/index.html" msgid "" -"Install a 64-bit JDK 21 or newer, including the Java compiler. Choose the " +"Install a 64-bit JDK 25 or newer, including the Java compiler. Choose the " "package matching your computer's architecture." msgstr "" @@ -5185,7 +5185,7 @@ msgstr "" #, python-brace-format msgctxt "page:get-started/index.html" msgid "" -"Download Ghidra 12.1.4 from the release's Assets list and extract the {ph0} " +"Download Ghidra 12.2 from the release's Assets list and extract the {ph0} " "archive. Choose the release archive, not “Source code”." msgstr "" @@ -5200,16 +5200,16 @@ msgid "" "{ph2}." msgstr "" -#. {ph0}: +#. {ph0}: #. {ph1}: #. {ph2}: #. {ph3}: #: website/public/get-started/index.html:1127 #, python-brace-format msgctxt "page:get-started/index.html" -msgid "{ph0}Download a JDK{ph1} · {ph2}Download Ghidra 12.1.4{ph3}" +msgid "{ph0}Download a JDK{ph1} · {ph2}Download Ghidra 12.2{ph3}" msgstr "" #. {ph0}: java.home @@ -5232,7 +5232,7 @@ msgctxt "page:get-started/index.html" msgid "" "Windows x64 has experimental, read-only support for native x86 and x64 PE " "applications and DLLs on fixed local NTFS/ReFS drives. Use an existing " -"Ghidra 12.1.x installation and a 64-bit JDK 21 or newer:" +"Ghidra 12.2 installation and a 64-bit JDK 25 or newer:" msgstr "" #: website/public/get-started/index.html:1182 @@ -5285,7 +5285,7 @@ msgid "{ph0}macOS · Apple Silicon{ph1}" msgstr "" #. {ph0}: #. {ph1}: #: website/public/get-started/index.html:1228 @@ -7330,7 +7330,7 @@ msgstr "" msgctxt "page:guides/native/index.html" msgid "" "{ph0}Ghidra{ph1} (macOS or Linux; experimental on Windows): free, but needs " -"an existing Ghidra 12.1.x installation and a 64-bit JDK 21 or newer." +"an existing Ghidra 12.2 installation and a 64-bit JDK 25 or newer." msgstr "" #. {ph0}: diff --git a/website/locales/pl/messages.po b/website/locales/pl/messages.po index 098ca63b53..b1b26cfa51 100644 --- a/website/locales/pl/messages.po +++ b/website/locales/pl/messages.po @@ -3650,12 +3650,8 @@ msgctxt "page:get-started/index.html" msgid "" "Windows x64 has experimental, read-only support for native x86 and x64 PE " "applications and DLLs on fixed local NTFS/ReFS drives. Use an existing " -"Ghidra 12.1.x installation and a 64-bit JDK 21 or newer:" +"Ghidra 12.2 installation and a 64-bit JDK 25 or newer:" msgstr "" -"Windows x64 ma eksperymentalną obsługę tylko do odczytu dla natywnych " -"aplikacji x86 i x64 PE oraz bibliotek DLL na stałych lokalnych dyskach " -"NTFS/ReFS. Użyj istniejącego Ghidra 12.1.instalacja x i 64-bitowy JDK 21 lub" -" nowszy:" #: website/public/get-started/index.html:1182 msgctxt "page:get-started/index.html" @@ -5197,11 +5193,8 @@ msgstr "REA potrzebuje jednego z nich do odczytu programów natywnych:" msgctxt "page:guides/native/index.html" msgid "" "{ph0}Ghidra{ph1} (macOS or Linux; experimental on Windows): free, but needs " -"an existing Ghidra 12.1.x installation and a 64-bit JDK 21 or newer." +"an existing Ghidra 12.2 installation and a 64-bit JDK 25 or newer." msgstr "" -"{ph0} Ghidra {ph1} (macOS lub Linux ; eksperymentalny na Windows): wolny, " -"ale potrzebuje istniejącego Ghidra 12.1.instalacja x i 64-bitowy JDK 21 lub " -"nowszy." #. {ph0}: #. {ph1}: @@ -13784,22 +13777,18 @@ msgstr "Ghidra · zainstaluj bezpłatne narzędzie analizy i Javę" #: website/public/get-started/index.html:1111 msgctxt "page:get-started/index.html" msgid "" -"Install a 64-bit JDK 21 or newer, including the Java compiler. Choose the " +"Install a 64-bit JDK 25 or newer, including the Java compiler. Choose the " "package matching your computer's architecture." msgstr "" -"Zainstaluj 64-bitowy JDK 21 lub nowszy, zawierający kompilator Java. Wybierz" -" pakiet pasujący do architektury Twojego komputera." #. {ph0}: ghidra_…_PUBLIC_….zip #: website/public/get-started/index.html:1116 #, python-brace-format msgctxt "page:get-started/index.html" msgid "" -"Download Ghidra 12.1.4 from the release's Assets list and extract the {ph0} " +"Download Ghidra 12.2 from the release's Assets list and extract the {ph0} " "archive. Choose the release archive, not “Source code”." msgstr "" -"Pobierz Ghidra 12.1.4 z listy Assets wydania i rozpakuj archiwum {ph0}. " -"Wybierz archiwum wydania, a nie „Source code”." #. {ph0}: ghidraRun #. {ph1}: ghidraRun.bat @@ -13813,17 +13802,17 @@ msgid "" msgstr "" "Znajdź rozpakowany folder zawierający {ph0} lub {ph1}. Użyj go jako {ph2}." -#. {ph0}: +#. {ph0}: #. {ph1}: #. {ph2}: #. {ph3}: #: website/public/get-started/index.html:1127 #, python-brace-format msgctxt "page:get-started/index.html" -msgid "{ph0}Download a JDK{ph1} · {ph2}Download Ghidra 12.1.4{ph3}" -msgstr "{ph0}Pobierz JDK{ph1} · {ph2}Pobierz Ghidra 12.1.4{ph3}" +msgid "{ph0}Download a JDK{ph1} · {ph2}Download Ghidra 12.2{ph3}" +msgstr "" #. {ph0}: java.home #. {ph1}: JAVA_HOME @@ -14415,7 +14404,7 @@ msgid "{ph0}macOS · Apple Silicon{ph1}" msgstr "{ph0}macOS · Apple Silicon{ph1}" #. {ph0}: #. {ph1}: #: website/public/get-started/index.html:1228 diff --git a/website/locales/pt-BR/messages.po b/website/locales/pt-BR/messages.po index 52c1fcbc05..cb74ee5fe6 100644 --- a/website/locales/pt-BR/messages.po +++ b/website/locales/pt-BR/messages.po @@ -3681,12 +3681,8 @@ msgctxt "page:get-started/index.html" msgid "" "Windows x64 has experimental, read-only support for native x86 and x64 PE " "applications and DLLs on fixed local NTFS/ReFS drives. Use an existing " -"Ghidra 12.1.x installation and a 64-bit JDK 21 or newer:" +"Ghidra 12.2 installation and a 64-bit JDK 25 or newer:" msgstr "" -"O Windows x64 tem suporte experimental somente leitura para aplicativos e " -"DLLs nativos x86 e x64 PE em unidades NTFS/ReFS locais fixas. Use uma " -"instalação existente do Ghidra 12.1.x e um JDK de 64 bits, versão 21 ou " -"posterior:" #: website/public/get-started/index.html:1182 msgctxt "page:get-started/index.html" @@ -5236,11 +5232,8 @@ msgstr "REA precisa de um destes para ler programas nativos:" msgctxt "page:guides/native/index.html" msgid "" "{ph0}Ghidra{ph1} (macOS or Linux; experimental on Windows): free, but needs " -"an existing Ghidra 12.1.x installation and a 64-bit JDK 21 or newer." +"an existing Ghidra 12.2 installation and a 64-bit JDK 25 or newer." msgstr "" -"{ph0} Ghidra {ph1} (macOS ou Linux; experimental em Windows): gratuito, mas " -"necessita de um Ghidra 12.1 existente.x Instalação e um JDK de 64 bits 21 ou" -" mais recente." #. {ph0}: #. {ph1}: @@ -13862,22 +13855,18 @@ msgstr "Ghidra · instale a ferramenta de análise gratuita e o Java" #: website/public/get-started/index.html:1111 msgctxt "page:get-started/index.html" msgid "" -"Install a 64-bit JDK 21 or newer, including the Java compiler. Choose the " +"Install a 64-bit JDK 25 or newer, including the Java compiler. Choose the " "package matching your computer's architecture." msgstr "" -"Instale um JDK de 64 bits, versão 21 ou posterior, incluindo o compilador " -"Java. Escolha o pacote correspondente à arquitetura do seu computador." #. {ph0}: ghidra_…_PUBLIC_….zip #: website/public/get-started/index.html:1116 #, python-brace-format msgctxt "page:get-started/index.html" msgid "" -"Download Ghidra 12.1.4 from the release's Assets list and extract the {ph0} " +"Download Ghidra 12.2 from the release's Assets list and extract the {ph0} " "archive. Choose the release archive, not “Source code”." msgstr "" -"Baixe o Ghidra 12.1.4 na lista Assets da versão publicada e extraia o " -"arquivo {ph0}. Escolha o arquivo da versão, não “Source code”." #. {ph0}: ghidraRun #. {ph1}: ghidraRun.bat @@ -13892,17 +13881,17 @@ msgstr "" "Encontre a pasta extraída que contém {ph0} ou {ph1}. Use essa pasta para " "{ph2}." -#. {ph0}: +#. {ph0}: #. {ph1}: #. {ph2}: #. {ph3}: #: website/public/get-started/index.html:1127 #, python-brace-format msgctxt "page:get-started/index.html" -msgid "{ph0}Download a JDK{ph1} · {ph2}Download Ghidra 12.1.4{ph3}" -msgstr "{ph0}Baixar um JDK{ph1} · {ph2}Baixar o Ghidra 12.1.4{ph3}" +msgid "{ph0}Download a JDK{ph1} · {ph2}Download Ghidra 12.2{ph3}" +msgstr "" #. {ph0}: java.home #. {ph1}: JAVA_HOME @@ -14494,7 +14483,7 @@ msgid "{ph0}macOS · Apple Silicon{ph1}" msgstr "{ph0}macOS · Apple Silicon{ph1}" #. {ph0}: #. {ph1}: #: website/public/get-started/index.html:1228 diff --git a/website/locales/ro/messages.po b/website/locales/ro/messages.po index a0fdecee56..6fdec320e6 100644 --- a/website/locales/ro/messages.po +++ b/website/locales/ro/messages.po @@ -5176,7 +5176,7 @@ msgstr "" #: website/public/get-started/index.html:1111 msgctxt "page:get-started/index.html" msgid "" -"Install a 64-bit JDK 21 or newer, including the Java compiler. Choose the " +"Install a 64-bit JDK 25 or newer, including the Java compiler. Choose the " "package matching your computer's architecture." msgstr "" @@ -5185,7 +5185,7 @@ msgstr "" #, python-brace-format msgctxt "page:get-started/index.html" msgid "" -"Download Ghidra 12.1.4 from the release's Assets list and extract the {ph0} " +"Download Ghidra 12.2 from the release's Assets list and extract the {ph0} " "archive. Choose the release archive, not “Source code”." msgstr "" @@ -5200,16 +5200,16 @@ msgid "" "{ph2}." msgstr "" -#. {ph0}: +#. {ph0}: #. {ph1}: #. {ph2}: #. {ph3}: #: website/public/get-started/index.html:1127 #, python-brace-format msgctxt "page:get-started/index.html" -msgid "{ph0}Download a JDK{ph1} · {ph2}Download Ghidra 12.1.4{ph3}" +msgid "{ph0}Download a JDK{ph1} · {ph2}Download Ghidra 12.2{ph3}" msgstr "" #. {ph0}: java.home @@ -5232,7 +5232,7 @@ msgctxt "page:get-started/index.html" msgid "" "Windows x64 has experimental, read-only support for native x86 and x64 PE " "applications and DLLs on fixed local NTFS/ReFS drives. Use an existing " -"Ghidra 12.1.x installation and a 64-bit JDK 21 or newer:" +"Ghidra 12.2 installation and a 64-bit JDK 25 or newer:" msgstr "" #: website/public/get-started/index.html:1182 @@ -5285,7 +5285,7 @@ msgid "{ph0}macOS · Apple Silicon{ph1}" msgstr "" #. {ph0}: #. {ph1}: #: website/public/get-started/index.html:1228 @@ -7330,7 +7330,7 @@ msgstr "" msgctxt "page:guides/native/index.html" msgid "" "{ph0}Ghidra{ph1} (macOS or Linux; experimental on Windows): free, but needs " -"an existing Ghidra 12.1.x installation and a 64-bit JDK 21 or newer." +"an existing Ghidra 12.2 installation and a 64-bit JDK 25 or newer." msgstr "" #. {ph0}: diff --git a/website/locales/ru/messages.po b/website/locales/ru/messages.po index 7259e90016..496153b0d0 100644 --- a/website/locales/ru/messages.po +++ b/website/locales/ru/messages.po @@ -3688,12 +3688,8 @@ msgctxt "page:get-started/index.html" msgid "" "Windows x64 has experimental, read-only support for native x86 and x64 PE " "applications and DLLs on fixed local NTFS/ReFS drives. Use an existing " -"Ghidra 12.1.x installation and a 64-bit JDK 21 or newer:" +"Ghidra 12.2 installation and a 64-bit JDK 25 or newer:" msgstr "" -"Windows x64 имеет экспериментальную поддержку только для чтения собственных " -"приложений x86 и x64 PE и библиотек DLL на фиксированных локальных дисках " -"NTFS/ReFS. Используйте существующую установку Ghidra 12.1.x и 64-разрядную " -"версию JDK 21 или новее:" #: website/public/get-started/index.html:1182 msgctxt "page:get-started/index.html" @@ -5249,11 +5245,8 @@ msgstr "REA нужен один из них для чтения собствен msgctxt "page:guides/native/index.html" msgid "" "{ph0}Ghidra{ph1} (macOS or Linux; experimental on Windows): free, but needs " -"an existing Ghidra 12.1.x installation and a 64-bit JDK 21 or newer." +"an existing Ghidra 12.2 installation and a 64-bit JDK 25 or newer." msgstr "" -"{ph0} Ghidra{ph1} ( macOS или Linux ; экспериментальная версия Windows ): " -"бесплатен, но требует существующей установки Ghidra 12.1.x и 64-разрядной " -"версии JDK 21 или новее." #. {ph0}: #. {ph1}: @@ -13901,22 +13894,18 @@ msgstr "Ghidra · установите бесплатный инструмент #: website/public/get-started/index.html:1111 msgctxt "page:get-started/index.html" msgid "" -"Install a 64-bit JDK 21 or newer, including the Java compiler. Choose the " +"Install a 64-bit JDK 25 or newer, including the Java compiler. Choose the " "package matching your computer's architecture." msgstr "" -"Установите 64-битный JDK 21 или новее, включающий компилятор Java. Выберите " -"пакет для архитектуры своего компьютера." #. {ph0}: ghidra_…_PUBLIC_….zip #: website/public/get-started/index.html:1116 #, python-brace-format msgctxt "page:get-started/index.html" msgid "" -"Download Ghidra 12.1.4 from the release's Assets list and extract the {ph0} " +"Download Ghidra 12.2 from the release's Assets list and extract the {ph0} " "archive. Choose the release archive, not “Source code”." msgstr "" -"Скачайте Ghidra 12.1.4 из списка Assets выпуска и распакуйте архив {ph0}. " -"Выберите архив выпуска, а не «Source code»." #. {ph0}: ghidraRun #. {ph1}: ghidraRun.bat @@ -13931,17 +13920,17 @@ msgstr "" "Найдите распакованную папку, содержащую {ph0} или {ph1}. Используйте её для " "{ph2}." -#. {ph0}: +#. {ph0}: #. {ph1}: #. {ph2}: #. {ph3}: #: website/public/get-started/index.html:1127 #, python-brace-format msgctxt "page:get-started/index.html" -msgid "{ph0}Download a JDK{ph1} · {ph2}Download Ghidra 12.1.4{ph3}" -msgstr "{ph0}Скачать JDK{ph1} · {ph2}Скачать Ghidra 12.1.4{ph3}" +msgid "{ph0}Download a JDK{ph1} · {ph2}Download Ghidra 12.2{ph3}" +msgstr "" #. {ph0}: java.home #. {ph1}: JAVA_HOME @@ -14531,7 +14520,7 @@ msgid "{ph0}macOS · Apple Silicon{ph1}" msgstr "{ph0}macOS · Apple Silicon{ph1}" #. {ph0}: #. {ph1}: #: website/public/get-started/index.html:1228 diff --git a/website/locales/th/messages.po b/website/locales/th/messages.po index b57a3cc48b..3e700c9d3a 100644 --- a/website/locales/th/messages.po +++ b/website/locales/th/messages.po @@ -3589,11 +3589,8 @@ msgctxt "page:get-started/index.html" msgid "" "Windows x64 has experimental, read-only support for native x86 and x64 PE " "applications and DLLs on fixed local NTFS/ReFS drives. Use an existing " -"Ghidra 12.1.x installation and a 64-bit JDK 21 or newer:" +"Ghidra 12.2 installation and a 64-bit JDK 25 or newer:" msgstr "" -"Windows x64 รองรับการวิเคราะห์แบบทดลองและอ่านอย่างเดียวสำหรับแอป PE และ DLL " -"เนทีฟ x86 และ x64 บนไดรฟ์ NTFS/ReFS ภายในเครื่องแบบคงที่ ใช้ Ghidra 12.1.x " -"ที่ติดตั้งไว้แล้วและ JDK 21 ขึ้นไปแบบ 64 บิต:" #: website/public/get-started/index.html:1182 msgctxt "page:get-started/index.html" @@ -5103,10 +5100,8 @@ msgstr "REA การศึกษาและการติว,อังกฤ msgctxt "page:guides/native/index.html" msgid "" "{ph0}Ghidra{ph1} (macOS or Linux; experimental on Windows): free, but needs " -"an existing Ghidra 12.1.x installation and a 64-bit JDK 21 or newer." +"an existing Ghidra 12.2 installation and a 64-bit JDK 25 or newer." msgstr "" -"{ph0}Ghidra{ph1} (macOS หรือ Linux การทดลอง Windows):ฟรีแต่ต้องการที่มีอยู่ " -"Ghidra 12.1.64 บิตเจดีเค 21 หรือใหม่กว่า" #. {ph0}: #. {ph1}: @@ -13528,22 +13523,18 @@ msgstr "Ghidra · ติดตั้งเครื่องมือวิเ #: website/public/get-started/index.html:1111 msgctxt "page:get-started/index.html" msgid "" -"Install a 64-bit JDK 21 or newer, including the Java compiler. Choose the " +"Install a 64-bit JDK 25 or newer, including the Java compiler. Choose the " "package matching your computer's architecture." msgstr "" -"ติดตั้ง JDK 21 ขึ้นไปแบบ 64 บิตที่มีคอมไพเลอร์ Java " -"เลือกแพ็กเกจที่ตรงกับสถาปัตยกรรมของคอมพิวเตอร์" #. {ph0}: ghidra_…_PUBLIC_….zip #: website/public/get-started/index.html:1116 #, python-brace-format msgctxt "page:get-started/index.html" msgid "" -"Download Ghidra 12.1.4 from the release's Assets list and extract the {ph0} " +"Download Ghidra 12.2 from the release's Assets list and extract the {ph0} " "archive. Choose the release archive, not “Source code”." msgstr "" -"ดาวน์โหลด Ghidra 12.1.4 จากรายการ Assets ของรุ่นที่เผยแพร่ แล้วแตกไฟล์ {ph0}" -" เลือกไฟล์สำหรับรุ่นที่เผยแพร่ ไม่ใช่ “Source code”" #. {ph0}: ghidraRun #. {ph1}: ghidraRun.bat @@ -13557,17 +13548,17 @@ msgid "" msgstr "" "หาโฟลเดอร์ที่แตกไฟล์แล้วและมี {ph0} หรือ {ph1} ใช้โฟลเดอร์นั้นเป็นค่า {ph2}" -#. {ph0}: +#. {ph0}: #. {ph1}: #. {ph2}: #. {ph3}: #: website/public/get-started/index.html:1127 #, python-brace-format msgctxt "page:get-started/index.html" -msgid "{ph0}Download a JDK{ph1} · {ph2}Download Ghidra 12.1.4{ph3}" -msgstr "{ph0}ดาวน์โหลด JDK{ph1} · {ph2}ดาวน์โหลด Ghidra 12.1.4{ph3}" +msgid "{ph0}Download a JDK{ph1} · {ph2}Download Ghidra 12.2{ph3}" +msgstr "" #. {ph0}: java.home #. {ph1}: JAVA_HOME @@ -14151,7 +14142,7 @@ msgid "{ph0}macOS · Apple Silicon{ph1}" msgstr "{ph0}macOS · Apple Silicon{ph1}" #. {ph0}: #. {ph1}: #: website/public/get-started/index.html:1228 diff --git a/website/locales/tr/messages.po b/website/locales/tr/messages.po index bb30fe3a01..149d16c376 100644 --- a/website/locales/tr/messages.po +++ b/website/locales/tr/messages.po @@ -3648,12 +3648,8 @@ msgctxt "page:get-started/index.html" msgid "" "Windows x64 has experimental, read-only support for native x86 and x64 PE " "applications and DLLs on fixed local NTFS/ReFS drives. Use an existing " -"Ghidra 12.1.x installation and a 64-bit JDK 21 or newer:" +"Ghidra 12.2 installation and a 64-bit JDK 25 or newer:" msgstr "" -"Windows x64, sabit yerel NTFS/ReFS sürücülerindeki native x86 ve x64 PE " -"uygulamaları ve DLL'ler için deneysel, salt okunur desteğe sahiptir. Mevcut " -"bir Ghidra 12.1.x kurulumu ve 64 bit JDK 21 veya daha yeni bir sürüm " -"kullanın:" #: website/public/get-started/index.html:1182 msgctxt "page:get-started/index.html" @@ -5187,10 +5183,8 @@ msgstr "REA, yerel programları okumak için bunlardan birine ihtiyaç duyar:" msgctxt "page:guides/native/index.html" msgid "" "{ph0}Ghidra{ph1} (macOS or Linux; experimental on Windows): free, but needs " -"an existing Ghidra 12.1.x installation and a 64-bit JDK 21 or newer." +"an existing Ghidra 12.2 installation and a 64-bit JDK 25 or newer." msgstr "" -"{ph0} Ghidra{ph1} (macOS veya Linux; Windows üzerinde deneysel): ücretsiz, " -"ancak mevcut bir Ghidra 12.1.x kurulumu ve 64 bit JDK 21 veya daha yenisi." #. {ph0}: #. {ph1}: @@ -13765,22 +13759,18 @@ msgstr "Ghidra · ücretsiz analiz aracını ve Java’yı kurun" #: website/public/get-started/index.html:1111 msgctxt "page:get-started/index.html" msgid "" -"Install a 64-bit JDK 21 or newer, including the Java compiler. Choose the " +"Install a 64-bit JDK 25 or newer, including the Java compiler. Choose the " "package matching your computer's architecture." msgstr "" -"Java derleyicisini de içeren 64 bit JDK 21 veya daha yeni bir sürüm kurun. " -"Bilgisayarınızın mimarisine uygun paketi seçin." #. {ph0}: ghidra_…_PUBLIC_….zip #: website/public/get-started/index.html:1116 #, python-brace-format msgctxt "page:get-started/index.html" msgid "" -"Download Ghidra 12.1.4 from the release's Assets list and extract the {ph0} " +"Download Ghidra 12.2 from the release's Assets list and extract the {ph0} " "archive. Choose the release archive, not “Source code”." msgstr "" -"Ghidra 12.1.4’ü sürümün Assets listesinden indirin ve {ph0} arşivini açın. " -"“Source code” yerine sürüm arşivini seçin." #. {ph0}: ghidraRun #. {ph1}: ghidraRun.bat @@ -13795,17 +13785,17 @@ msgstr "" "Açılan dosyalar arasında {ph0} veya {ph1} içeren klasörü bulun. {ph2} için " "bu klasörü kullanın." -#. {ph0}: +#. {ph0}: #. {ph1}: #. {ph2}: #. {ph3}: #: website/public/get-started/index.html:1127 #, python-brace-format msgctxt "page:get-started/index.html" -msgid "{ph0}Download a JDK{ph1} · {ph2}Download Ghidra 12.1.4{ph3}" -msgstr "{ph0}JDK indirin{ph1} · {ph2}Ghidra 12.1.4’ü indirin{ph3}" +msgid "{ph0}Download a JDK{ph1} · {ph2}Download Ghidra 12.2{ph3}" +msgstr "" #. {ph0}: java.home #. {ph1}: JAVA_HOME @@ -14398,7 +14388,7 @@ msgid "{ph0}macOS · Apple Silicon{ph1}" msgstr "{ph0}macOS · Apple Silicon{ph1}" #. {ph0}: #. {ph1}: #: website/public/get-started/index.html:1228 diff --git a/website/locales/uk/messages.po b/website/locales/uk/messages.po index ca120be54a..c050d32f73 100644 --- a/website/locales/uk/messages.po +++ b/website/locales/uk/messages.po @@ -3668,12 +3668,8 @@ msgctxt "page:get-started/index.html" msgid "" "Windows x64 has experimental, read-only support for native x86 and x64 PE " "applications and DLLs on fixed local NTFS/ReFS drives. Use an existing " -"Ghidra 12.1.x installation and a 64-bit JDK 21 or newer:" +"Ghidra 12.2 installation and a 64-bit JDK 25 or newer:" msgstr "" -"Windows x64 має експериментальну підтримку лише для читання власних програм " -"x86 та x64 PE та бібліотек DLL на фіксованих локальних дисках NTFS/ReFS. " -"Використовуйте існуючу установку Ghidra 12.1.x і 64-розрядну версію JDK 21 " -"або новіше:" #: website/public/get-started/index.html:1182 msgctxt "page:get-started/index.html" @@ -5227,11 +5223,8 @@ msgstr "REA потрібен один з них для читання власн msgctxt "page:guides/native/index.html" msgid "" "{ph0}Ghidra{ph1} (macOS or Linux; experimental on Windows): free, but needs " -"an existing Ghidra 12.1.x installation and a 64-bit JDK 21 or newer." +"an existing Ghidra 12.2 installation and a 64-bit JDK 25 or newer." msgstr "" -"{ph0} Ghidra{ph1} (macOS або Linux ; експериментальна версія Windows ): " -"безкоштовний, але вимагає існуючої установки Ghidra 12.1.x і 64-розрядної " -"версії JDK 21 або новіше." #. {ph0}: #. {ph1}: @@ -13845,22 +13838,18 @@ msgstr "Ghidra · встановіть безкоштовний інструме #: website/public/get-started/index.html:1111 msgctxt "page:get-started/index.html" msgid "" -"Install a 64-bit JDK 21 or newer, including the Java compiler. Choose the " +"Install a 64-bit JDK 25 or newer, including the Java compiler. Choose the " "package matching your computer's architecture." msgstr "" -"Встановіть 64-бітний JDK 21 або новіший, що містить компілятор Java. " -"Виберіть пакет для архітектури свого комп’ютера." #. {ph0}: ghidra_…_PUBLIC_….zip #: website/public/get-started/index.html:1116 #, python-brace-format msgctxt "page:get-started/index.html" msgid "" -"Download Ghidra 12.1.4 from the release's Assets list and extract the {ph0} " +"Download Ghidra 12.2 from the release's Assets list and extract the {ph0} " "archive. Choose the release archive, not “Source code”." msgstr "" -"Завантажте Ghidra 12.1.4 зі списку Assets випуску та розпакуйте архів {ph0}." -" Виберіть архів випуску, а не «Source code»." #. {ph0}: ghidraRun #. {ph1}: ghidraRun.bat @@ -13875,17 +13864,17 @@ msgstr "" "Знайдіть розпаковану папку, яка містить {ph0} або {ph1}. Використовуйте її " "для {ph2}." -#. {ph0}: +#. {ph0}: #. {ph1}: #. {ph2}: #. {ph3}: #: website/public/get-started/index.html:1127 #, python-brace-format msgctxt "page:get-started/index.html" -msgid "{ph0}Download a JDK{ph1} · {ph2}Download Ghidra 12.1.4{ph3}" -msgstr "{ph0}Завантажити JDK{ph1} · {ph2}Завантажити Ghidra 12.1.4{ph3}" +msgid "{ph0}Download a JDK{ph1} · {ph2}Download Ghidra 12.2{ph3}" +msgstr "" #. {ph0}: java.home #. {ph1}: JAVA_HOME @@ -14477,7 +14466,7 @@ msgid "{ph0}macOS · Apple Silicon{ph1}" msgstr "{ph0}macOS · Apple Silicon{ph1}" #. {ph0}: #. {ph1}: #: website/public/get-started/index.html:1228 diff --git a/website/locales/ur-Latn/messages.po b/website/locales/ur-Latn/messages.po index e06c0faf56..9f430379e3 100644 --- a/website/locales/ur-Latn/messages.po +++ b/website/locales/ur-Latn/messages.po @@ -5176,7 +5176,7 @@ msgstr "" #: website/public/get-started/index.html:1111 msgctxt "page:get-started/index.html" msgid "" -"Install a 64-bit JDK 21 or newer, including the Java compiler. Choose the " +"Install a 64-bit JDK 25 or newer, including the Java compiler. Choose the " "package matching your computer's architecture." msgstr "" @@ -5185,7 +5185,7 @@ msgstr "" #, python-brace-format msgctxt "page:get-started/index.html" msgid "" -"Download Ghidra 12.1.4 from the release's Assets list and extract the {ph0} " +"Download Ghidra 12.2 from the release's Assets list and extract the {ph0} " "archive. Choose the release archive, not “Source code”." msgstr "" @@ -5200,16 +5200,16 @@ msgid "" "{ph2}." msgstr "" -#. {ph0}: +#. {ph0}: #. {ph1}: #. {ph2}: #. {ph3}: #: website/public/get-started/index.html:1127 #, python-brace-format msgctxt "page:get-started/index.html" -msgid "{ph0}Download a JDK{ph1} · {ph2}Download Ghidra 12.1.4{ph3}" +msgid "{ph0}Download a JDK{ph1} · {ph2}Download Ghidra 12.2{ph3}" msgstr "" #. {ph0}: java.home @@ -5232,7 +5232,7 @@ msgctxt "page:get-started/index.html" msgid "" "Windows x64 has experimental, read-only support for native x86 and x64 PE " "applications and DLLs on fixed local NTFS/ReFS drives. Use an existing " -"Ghidra 12.1.x installation and a 64-bit JDK 21 or newer:" +"Ghidra 12.2 installation and a 64-bit JDK 25 or newer:" msgstr "" #: website/public/get-started/index.html:1182 @@ -5285,7 +5285,7 @@ msgid "{ph0}macOS · Apple Silicon{ph1}" msgstr "" #. {ph0}: #. {ph1}: #: website/public/get-started/index.html:1228 @@ -7330,7 +7330,7 @@ msgstr "" msgctxt "page:guides/native/index.html" msgid "" "{ph0}Ghidra{ph1} (macOS or Linux; experimental on Windows): free, but needs " -"an existing Ghidra 12.1.x installation and a 64-bit JDK 21 or newer." +"an existing Ghidra 12.2 installation and a 64-bit JDK 25 or newer." msgstr "" #. {ph0}: diff --git a/website/locales/vi/messages.po b/website/locales/vi/messages.po index 70f45b1707..dc93190373 100644 --- a/website/locales/vi/messages.po +++ b/website/locales/vi/messages.po @@ -3656,11 +3656,8 @@ msgctxt "page:get-started/index.html" msgid "" "Windows x64 has experimental, read-only support for native x86 and x64 PE " "applications and DLLs on fixed local NTFS/ReFS drives. Use an existing " -"Ghidra 12.1.x installation and a 64-bit JDK 21 or newer:" +"Ghidra 12.2 installation and a 64-bit JDK 25 or newer:" msgstr "" -"Windows x64 có hỗ trợ thử nghiệm, chỉ đọc cho các ứng dụng VÀ Dll X86 và x64" -" pe gốc trên các ổ đĩa NTFS/ReFS cục bộ cố định. Sử DỤNG Ghidra 12.1 hiện có.x " -"cài đặt VÀ 64-bit JDK 21 hoặc mới hơn:" #: website/public/get-started/index.html:1182 msgctxt "page:get-started/index.html" @@ -5200,10 +5197,8 @@ msgstr "REA cần một trong số này để đọc các chương trình gốc: msgctxt "page:guides/native/index.html" msgid "" "{ph0}Ghidra{ph1} (macOS or Linux; experimental on Windows): free, but needs " -"an existing Ghidra 12.1.x installation and a 64-bit JDK 21 or newer." +"an existing Ghidra 12.2 installation and a 64-bit JDK 25 or newer." msgstr "" -"{ph0} Ghidra {ph1} (macOS hoặc Linux ; thử nghiệm TRÊN Windows ): miễn phí, " -"nhưng cần Ghidra 12.1 hiện có.x cài đặt và 64-bit JDK 21 hoặc mới hơn." #. {ph0}: #. {ph1}: @@ -13746,22 +13741,18 @@ msgstr "Ghidra · cài công cụ phân tích miễn phí và Java" #: website/public/get-started/index.html:1111 msgctxt "page:get-started/index.html" msgid "" -"Install a 64-bit JDK 21 or newer, including the Java compiler. Choose the " +"Install a 64-bit JDK 25 or newer, including the Java compiler. Choose the " "package matching your computer's architecture." msgstr "" -"Cài JDK 21 trở lên bản 64-bit, có cả trình biên dịch Java. Chọn gói phù hợp " -"với kiến trúc máy tính của bạn." #. {ph0}: ghidra_…_PUBLIC_….zip #: website/public/get-started/index.html:1116 #, python-brace-format msgctxt "page:get-started/index.html" msgid "" -"Download Ghidra 12.1.4 from the release's Assets list and extract the {ph0} " +"Download Ghidra 12.2 from the release's Assets list and extract the {ph0} " "archive. Choose the release archive, not “Source code”." msgstr "" -"Tải Ghidra 12.1.4 từ danh sách Assets của bản phát hành rồi giải nén tệp " -"{ph0}. Chọn gói phát hành, không chọn “Source code”." #. {ph0}: ghidraRun #. {ph1}: ghidraRun.bat @@ -13775,17 +13766,17 @@ msgid "" msgstr "" "Tìm thư mục đã giải nén chứa {ph0} hoặc {ph1}. Dùng thư mục đó cho {ph2}." -#. {ph0}: +#. {ph0}: #. {ph1}: #. {ph2}: #. {ph3}: #: website/public/get-started/index.html:1127 #, python-brace-format msgctxt "page:get-started/index.html" -msgid "{ph0}Download a JDK{ph1} · {ph2}Download Ghidra 12.1.4{ph3}" -msgstr "{ph0}Tải JDK{ph1} · {ph2}Tải Ghidra 12.1.4{ph3}" +msgid "{ph0}Download a JDK{ph1} · {ph2}Download Ghidra 12.2{ph3}" +msgstr "" #. {ph0}: java.home #. {ph1}: JAVA_HOME @@ -14372,7 +14363,7 @@ msgid "{ph0}macOS · Apple Silicon{ph1}" msgstr "{ph0}macOS · Apple Silicon{ph1}" #. {ph0}: #. {ph1}: #: website/public/get-started/index.html:1228 diff --git a/website/locales/zh-CN/messages.po b/website/locales/zh-CN/messages.po index 46ee66d99f..6f12341247 100644 --- a/website/locales/zh-CN/messages.po +++ b/website/locales/zh-CN/messages.po @@ -3232,10 +3232,8 @@ msgctxt "page:get-started/index.html" msgid "" "Windows x64 has experimental, read-only support for native x86 and x64 PE " "applications and DLLs on fixed local NTFS/ReFS drives. Use an existing " -"Ghidra 12.1.x installation and a 64-bit JDK 21 or newer:" +"Ghidra 12.2 installation and a 64-bit JDK 25 or newer:" msgstr "" -"Windows x64 提供实验性的只读支持:分析固定本地 NTFS/ReFS 驱动器上的原生 x86、x64 PE 应用和 DLL。使用已有的 " -"Ghidra 12.1.x 和 64 位 JDK 21 或更新版本:" #: website/public/get-started/index.html:1182 msgctxt "page:get-started/index.html" @@ -4639,10 +4637,8 @@ msgstr "REA需要其中一个来阅读原生程序:" msgctxt "page:guides/native/index.html" msgid "" "{ph0}Ghidra{ph1} (macOS or Linux; experimental on Windows): free, but needs " -"an existing Ghidra 12.1.x installation and a 64-bit JDK 21 or newer." +"an existing Ghidra 12.2 installation and a 64-bit JDK 25 or newer." msgstr "" -"{ph0}Ghidra{ph1}(macOS 或 Linux;在 Windows 上为实验性):免费,但需要已安装的 Ghidra 12.1.x,以及 " -"64 位 JDK 21 或更新版本。" #. {ph0}: #. {ph1}: @@ -12541,18 +12537,18 @@ msgstr "Ghidra · 安装免费的分析工具和 Java" #: website/public/get-started/index.html:1111 msgctxt "page:get-started/index.html" msgid "" -"Install a 64-bit JDK 21 or newer, including the Java compiler. Choose the " +"Install a 64-bit JDK 25 or newer, including the Java compiler. Choose the " "package matching your computer's architecture." -msgstr "安装包含 Java 编译器的 64 位 JDK 21 或更新版本。下载时选择符合电脑架构的安装包。" +msgstr "" #. {ph0}: ghidra_…_PUBLIC_….zip #: website/public/get-started/index.html:1116 #, python-brace-format msgctxt "page:get-started/index.html" msgid "" -"Download Ghidra 12.1.4 from the release's Assets list and extract the {ph0} " +"Download Ghidra 12.2 from the release's Assets list and extract the {ph0} " "archive. Choose the release archive, not “Source code”." -msgstr "从 Ghidra 12.1.4 发布页的 Assets 列表下载并解压 {ph0}。选择发布包,不要选择“Source code”。" +msgstr "" #. {ph0}: ghidraRun #. {ph1}: ghidraRun.bat @@ -12565,17 +12561,17 @@ msgid "" "{ph2}." msgstr "找到解压后包含 {ph0} 或 {ph1} 的文件夹,把该文件夹的完整路径填入 {ph2}。" -#. {ph0}: +#. {ph0}: #. {ph1}: #. {ph2}: #. {ph3}: #: website/public/get-started/index.html:1127 #, python-brace-format msgctxt "page:get-started/index.html" -msgid "{ph0}Download a JDK{ph1} · {ph2}Download Ghidra 12.1.4{ph3}" -msgstr "{ph0}下载 JDK{ph1} · {ph2}下载 Ghidra 12.1.4{ph3}" +msgid "{ph0}Download a JDK{ph1} · {ph2}Download Ghidra 12.2{ph3}" +msgstr "" #. {ph0}: java.home #. {ph1}: JAVA_HOME @@ -13115,7 +13111,7 @@ msgid "{ph0}macOS · Apple Silicon{ph1}" msgstr "{ph0}macOS · Apple Silicon{ph1}" #. {ph0}: #. {ph1}: #: website/public/get-started/index.html:1228 diff --git a/website/locales/zh-TW/messages.po b/website/locales/zh-TW/messages.po index d97b845fd5..420eb00475 100644 --- a/website/locales/zh-TW/messages.po +++ b/website/locales/zh-TW/messages.po @@ -3240,10 +3240,8 @@ msgctxt "page:get-started/index.html" msgid "" "Windows x64 has experimental, read-only support for native x86 and x64 PE " "applications and DLLs on fixed local NTFS/ReFS drives. Use an existing " -"Ghidra 12.1.x installation and a 64-bit JDK 21 or newer:" +"Ghidra 12.2 installation and a 64-bit JDK 25 or newer:" msgstr "" -"Windows x64 提供實驗性的只讀支援:分析固定本地 NTFS/ReFS 驅動器上的原生 x86、x64 PE 應用和 DLL。使用已有的 " -"Ghidra 12.1.x 和 64 位 JDK 21 或更新版本:" #: website/public/get-started/index.html:1182 msgctxt "page:get-started/index.html" @@ -4647,10 +4645,8 @@ msgstr "REA需要其中一個來閱讀原生程式:" msgctxt "page:guides/native/index.html" msgid "" "{ph0}Ghidra{ph1} (macOS or Linux; experimental on Windows): free, but needs " -"an existing Ghidra 12.1.x installation and a 64-bit JDK 21 or newer." +"an existing Ghidra 12.2 installation and a 64-bit JDK 25 or newer." msgstr "" -"{ph0} Ghidra {ph1} " -"(macOS或Linux;在Windows上進行實驗):免費,但需要現有的Ghidra12.1。x安裝和64位JDK21或更高版本。" #. {ph0}: #. {ph1}: @@ -12557,18 +12553,18 @@ msgstr "Ghidra · 安裝免費的分析工具和 Java" #: website/public/get-started/index.html:1111 msgctxt "page:get-started/index.html" msgid "" -"Install a 64-bit JDK 21 or newer, including the Java compiler. Choose the " +"Install a 64-bit JDK 25 or newer, including the Java compiler. Choose the " "package matching your computer's architecture." -msgstr "安裝包含 Java 編譯器的 64 位元 JDK 21 或更新版本。下載時選擇符合電腦架構的安裝套件。" +msgstr "" #. {ph0}: ghidra_…_PUBLIC_….zip #: website/public/get-started/index.html:1116 #, python-brace-format msgctxt "page:get-started/index.html" msgid "" -"Download Ghidra 12.1.4 from the release's Assets list and extract the {ph0} " +"Download Ghidra 12.2 from the release's Assets list and extract the {ph0} " "archive. Choose the release archive, not “Source code”." -msgstr "從 Ghidra 12.1.4 發布頁的 Assets 清單下載並解壓縮 {ph0}。選擇發布套件,不要選擇「Source code」。" +msgstr "" #. {ph0}: ghidraRun #. {ph1}: ghidraRun.bat @@ -12581,17 +12577,17 @@ msgid "" "{ph2}." msgstr "找到解壓縮後包含 {ph0} 或 {ph1} 的資料夾,把該資料夾的完整路徑填入 {ph2}。" -#. {ph0}: +#. {ph0}: #. {ph1}: #. {ph2}: #. {ph3}: #: website/public/get-started/index.html:1127 #, python-brace-format msgctxt "page:get-started/index.html" -msgid "{ph0}Download a JDK{ph1} · {ph2}Download Ghidra 12.1.4{ph3}" -msgstr "{ph0}下載 JDK{ph1} · {ph2}下載 Ghidra 12.1.4{ph3}" +msgid "{ph0}Download a JDK{ph1} · {ph2}Download Ghidra 12.2{ph3}" +msgstr "" #. {ph0}: java.home #. {ph1}: JAVA_HOME @@ -13132,7 +13128,7 @@ msgid "{ph0}macOS · Apple Silicon{ph1}" msgstr "{ph0}macOS · Apple Silicon{ph1}" #. {ph0}: #. {ph1}: #: website/public/get-started/index.html:1228 diff --git a/website/public/get-started/index.html b/website/public/get-started/index.html index c363d3970f..4887a9ccf6 100644 --- a/website/public/get-started/index.html +++ b/website/public/get-started/index.html @@ -1111,12 +1111,12 @@ cd rea-work
  1. - Install a 64-bit JDK 21 or newer, including the Java + Install a 64-bit JDK 25 or newer, including the Java compiler. Choose the package matching your computer's architecture.
  2. - Download Ghidra 12.1.4 from the release's Assets list and + Download Ghidra 12.2 from the release's Assets list and extract the ghidra_…_PUBLIC_….zip archive. Choose the release archive, not “Source code”.
  3. @@ -1127,13 +1127,13 @@ cd rea-work

- Download a JDK · Download Ghidra 12.1.4Download Ghidra 12.2

@@ -1161,8 +1161,8 @@ javac -version

Windows x64 has experimental, read-only support for native x86 and x64 PE applications and DLLs on fixed local - NTFS/ReFS drives. Use an existing Ghidra 12.1.x installation - and a 64-bit JDK 21 or newer: + NTFS/ReFS drives. Use an existing Ghidra 12.2 installation + and a 64-bit JDK 25 or newer:

@@ -1176,8 +1176,8 @@ javac -version Copy
-
$env:GHIDRA_INSTALL_DIR = "C:/tools/ghidra_12.1.4_PUBLIC"
-$env:JAVA_HOME = "C:/tools/jdk-21"
+                    
$env:GHIDRA_INSTALL_DIR = "C:/tools/ghidra_12.2_PUBLIC"
+$env:JAVA_HOME = "C:/tools/jdk-25"
 npx -y rea-agents@latest doctor --provider ghidra --json
 npx rea-agents@latest setup
@@ -1200,8 +1200,8 @@ npx rea-agents@latest setup Copy -
export GHIDRA_INSTALL_DIR="/absolute/path/to/ghidra_12.1.4_PUBLIC"
-export JAVA_HOME="/absolute/path/to/jdk-21"
+
export GHIDRA_INSTALL_DIR="/absolute/path/to/ghidra_12.2_PUBLIC"
+export JAVA_HOME="/absolute/path/to/jdk-25"

Replace both paths with your existing installations. For a @@ -1229,7 +1229,7 @@ export JAVA_HOME="/absolute/path/to/jdk-21"

  • Linux arm64 · native build instructions
  • diff --git a/website/public/guides/native/index.html b/website/public/guides/native/index.html index e7cf0a97c0..98a6402bb7 100644 --- a/website/public/guides/native/index.html +++ b/website/public/guides/native/index.html @@ -324,8 +324,8 @@
  • Ghidra (macOS or Linux; experimental on - Windows): free, but needs an existing Ghidra 12.1.x - installation and a 64-bit JDK 21 or newer. + Windows): free, but needs an existing Ghidra 12.2 installation + and a 64-bit JDK 25 or newer.
  • IDA (Windows; macOS arm64 headless): use an