Open ubitux opened 2 years ago
Describe the bug When using the variable split features, sometimes the original symbol gets lost.
To Reproduce Steps to reproduce the behavior:
gunzip
0x0101180
int main(int argc, char **argv)
pcVar5
*argv
prog_name
42
ret0
pcVar6
Expected behavior pcVar6 should preserve its prog_name value
Screenshots Screencap of the operation: https://user-images.githubusercontent.com/34467/196301533-3b296965-af7f-4aa3-b41c-83708f6f6124.mp4
Attachments secr3tfl4g.gz
Environment (please complete the following information):
Note: still reproducible with 10.2.3
Describe the bug When using the variable split features, sometimes the original symbol gets lost.
To Reproduce Steps to reproduce the behavior:
gunzip
attached program, load it into Ghidra, with analysis0x0101180
and mark it asint main(int argc, char **argv)
pcVar5
(1st assignment to*argv
) intoprog_name
42
(decompiler view) and use "Split Out As New Variable" onprog_name
ret0
prog_name
is now namedpcVar6
Expected behavior
pcVar6
should preserve itsprog_name
valueScreenshots Screencap of the operation: https://user-images.githubusercontent.com/34467/196301533-3b296965-af7f-4aa3-b41c-83708f6f6124.mp4
Attachments secr3tfl4g.gz
Environment (please complete the following information):