GregoryMorse / GhidraDec

Ghidra Decompiler Plugin for IDA Pro
MIT License
161 stars 29 forks source link

Add an Option to Display Non-Constant Strings #6

Open cztian opened 2 years ago

cztian commented 2 years ago

Ghidra uses "Default settings" for string mutability, which Hex-Rays uses a decompiler flag for it. Is it feasible for Ghidra decompiler to display all string literals whether they are constant or not? image image

GregoryMorse commented 2 years ago

As far as I know this is being done by the plugin, the decompiler itself I dont believe contains such a setting. The default string settings you show is part of the Ghidra Java frontend and nothing to do with the decompiler backend. Which means this would basically be an additional feature for the plugin. As far as I know it tries to display all strings, is this not happening, mutable strings arent displayed?

cztian commented 2 years ago

Yes, strings in the mutable address parts are not displayed as strings, but as symbols.