1798 Commits

Author SHA1 Message Date
ghidra1 1789bb9c5e GP-1 minor doc fix 2026-01-12 21:00:06 -05:00
ghidra1 00f6e14cb5 Merge remote-tracking branch 'origin/GP-6316_SleighUnique256' into patch 2026-01-12 20:37:27 -05:00
caheckman 7828f235d3 GP-6316 Increase maximum temporary size for SLEIGH to 256 bytes 2026-01-12 22:31:42 +00:00
caheckman 4830a7ab99 GP-6314 Reset label counter for every named section 2026-01-12 19:57:19 +00:00
Ryan Kurtz 2a14ce7be4 Merge remote-tracking branch 'origin/patch' 2026-01-12 06:26:11 -05:00
caheckman 123bd5cbe6 GP-6310 Apply extension patch if consumption is beyond small variable 2026-01-09 20:37:38 +00:00
caheckman 451334568f Let RuleShiftAnd apply in more situations 2026-01-09 20:15:16 +00:00
Ryan Kurtz 5112c0024f Merge remote-tracking branch 'origin/patch' 2026-01-06 13:34:16 -05:00
ghidra007 d98aa6ffc3 GP-6286 added check for empty array 2026-01-06 17:22:02 +00:00
Ryan Kurtz 591333c9bb Merge branch 'GP-0_ryanmkurtz_PR-8411_widberg_rom_space' 2026-01-02 05:26:50 -05:00
dragonmacher e64e36aae1 Javadoc updates 2025-12-22 16:09:07 -05:00
Pal Marci 1282843fb0 DecompileOptions: adding missing scripting API calls that are configurable in the GUI 2025-12-20 22:06:50 +01:00
Ryan Kurtz 8805167de3 Merge remote-tracking branch 'origin/patch' 2025-12-18 12:54:32 -05:00
Ryan Kurtz 07e259ba4e Merge remote-tracking branch 'origin/GP-6201_FreeFunctionalEquality'
into patch (Closes #8743)
2025-12-18 12:52:13 -05:00
Ryan Kurtz 04def2a67b Merge remote-tracking branch 'origin/GP-6224_CastingResolvedPointer'
into patch (Closes #8745)
2025-12-18 12:50:10 -05:00
ghidra1 f72ca84cd0 Merge remote-tracking branch 'origin/patch' 2025-12-18 11:33:59 -05:00
Ryan Kurtz 0a94a47efb Merge remote-tracking branch 'origin/GP-3834_JumptableByte'
(Closes #5494)
2025-12-18 07:10:20 -05:00
caheckman 1983674189 GP-6237 Move the unique crossbuild region to more significant bits 2025-12-17 22:09:15 +00:00
dragonmacher 4938398af0 GP-6199 - Decompiler - Added an action to toggle the option to display type casts 2025-12-12 12:13:01 -05:00
caheckman b8e698d978 GP-3834 Allow 256 case switch, if a LOAD is present 2025-12-12 16:36:14 +00:00
caheckman 6451d3d313 GP-6224 Don't resolve pointer if cast still required 2025-12-12 00:17:12 +00:00
dragonmacher 8257fab87f GP-6205 - Decompiler - Updated Set Equate action to not prompt the user
twice.
2025-12-10 17:19:30 -05:00
caheckman 9692dd0640 GP-6201 Check for free varnodes in functionalEqualityLevel0 2025-12-10 19:26:03 +00:00
Ryan Kurtz 582076e81f Merge remote-tracking branch 'origin/patch' 2025-12-10 12:33:30 -05:00
Ryan Kurtz 7505d89091 Merge remote-tracking branch 'origin/GP-6090_DeleteDescendant' into
patch (Closes #8594)
2025-12-10 12:31:12 -05:00
Ryan Kurtz 4cd60f31b9 Merge remote-tracking branch 'origin/GP-6130_LaneDivideSkip' into patch
(Closes #8620)
2025-12-10 12:29:41 -05:00
caheckman 0e658ae5b6 GP-6133 INT_ADD correction for RuleStructOffset0 applied to offset
pointer
2025-12-10 16:48:42 +00:00
caheckman 35ac4cf37c GP-6130 Correct pointer offsets for buildStore and buildLoad 2025-12-10 16:45:13 +00:00
caheckman f8d7b704df GP-6090 Adjustment for duplicate inputs in pushMultiequal 2025-12-10 16:28:25 +00:00
Ryan Kurtz 4523586417 Merge remote-tracking branch 'origin/patch' 2025-12-09 04:45:07 -05:00
ghidra007 a4b623e429 GP-6183 fixed template shortening infinite loop issue 2025-12-04 21:47:50 +00:00
dragonmacher 9d4f0ded27 Minor theme and help fixes 2025-12-04 14:08:01 -05:00
Ryan Kurtz 5d6de5545c Merge branch 'GP-0_ryanmkurtz_PR-8415_widberg_callother' 2025-12-03 12:46:26 -05:00
Ryan Kurtz 58e5c8e44c Merge remote-tracking branch 'origin/Ghidra_12.0' 2025-12-03 11:18:29 -05:00
ghidra007 c5beedac5a GP-5831 Added a few speed improvements to the RecoverClassesFromRTTIScript. 2025-12-03 05:05:17 -05:00
Ryan Kurtz 17ac51c46b GP-6176: Refactored Objective-C type metadata analyzers 2025-12-02 06:40:10 -05:00
Fabian Kilger 92091a7a2a decompiler: fix bit extractions with RuleShiftAnd and RuleShiftCompare
Fixes https://github.com/NationalSecurityAgency/ghidra/issues/8717

RuleShiftAnd previously replaced the AND opcode with COPY. This,
however doesn't update the NZMask of the Varnode. As a result, following
rules may assume the NZMask after the AND operation also applies to the
Varnode being copied.

In combination with RuleShiftCompare, an expression of the form
(a & bitmask) >> const != 0, wrongfully is reduced to a != 0.
Instead of replacing the AND with COPY, we now replace the input
of the shift operation instead. This way, future rules will see
the correct NZMask.
2025-12-02 10:59:10 +01:00
Fabian Kilger 826834c424 decompiler: Fix extreme value checks in Funcdata::replaceLessequal
Fixes https://github.com/NationalSecurityAgency/ghidra/issues/8696

The checks for extreme values when transforming <= to < were incomplete
and relied on undefined behavior, making compilers optimize them out.

Specifically, for SLESS_EQUAL, the decompiler relied on integer overflows.
For integers smaller than 8 bytes, no overflow will occur when adding 1,
resulting in a missed case and, thus, x <= INT_MAX will become x < INT_MIN.
For the signed case when subtracting one, the compiler removes the check
due to undefined behavior, resulting in another missed case.

To fix this, add helper functions for computing maximum and minimum values
for signed and unsigned varnodes and directly check for them.
2025-11-25 13:45:06 +01:00
dragonmacher 975893212c Test fixes 2025-11-18 12:11:22 -05:00
Ryan Kurtz 7502e9f41d GP-6126: Ghidra now builds on Windows on ARM (requires Gradle 9.2 or
later)
2025-11-18 07:52:58 -05:00
Ryan Kurtz f157c5c46c Merge remote-tracking branch 'origin/GP-6076-dragonmacher-find-all--SQUASHED' 2025-11-17 06:30:40 -05:00
dragonmacher 2ae42befb8 GP-6076 - Find All - Added a button to the Find dialog to find all matches and show the results in a table 2025-11-12 12:34:30 -05:00
ghidra1 835fb3675a Merge branch 'Ghidra_12.0' 2025-11-07 09:34:29 -05:00
emteere 54359a7fef GP-6078 Implement support for segment() ops in SymbolicPropagator 2025-10-30 23:25:00 +00:00
dragonmacher 04ef00b4a3 Minor event mask refactor 2025-10-22 13:02:26 -04:00
Ryan Kurtz d4f56d2c63 Merge remote-tracking branch
'origin/GP-6039_ghidra1_AddressParsing--SQUASHED' (Closes #8503)
2025-10-15 10:56:17 -04:00
ghidra1 ffb7e653cc GP-6039 Address parsing docs. Allow ProgramUtilities.parseAddress to handle external address and removed support for parsing block-name style addresses 2025-10-15 09:45:54 -04:00
Ryan Kurtz 988c4c285a Merge remote-tracking branch
'origin/GP-1_ghidragon_fixed_misplaced_data_popup_action'
2025-10-14 05:27:51 -04:00
Ryan Kurtz 9471be0300 Merge remote-tracking branch
'origin/GP-6045-dragonmacher-edit-structure-field-scroll-fix--SQUASHED'
into Ghidra_12.0 (Closes #8522)
2025-10-14 05:22:38 -04:00
dragonmacher b5f2215553 GP-6045 - Updated the structure editor to correctly scroll to the field being edited when first opened 2025-10-10 17:28:14 -04:00