Ghidra: Renaming an UndefinedFunction causes UnsupportedOperationException

Created on 3 Jul 2019  路  2Comments  路  Source: NationalSecurityAgency/ghidra

Describe the bug
Renaming an UndefinedFunction causes UnsupportedOperationException.

To Reproduce
Steps to reproduce the behavior:

  1. Go to the Decompiler window
  2. Right click on an UndefinedFunction name
  3. Select "Rename Function"
  4. See error

Expected behavior
Maybe show a hint that a function has to be created manually first in the assembly editor.

Screenshots
image

Environment:
Build Date: 2019-May-16 1545 EDT
Ghidra Version: 9.0.4
Java Home: /usr/lib/jvm/jdk-12.0.1
JVM Version: Oracle Corporation 12.0.1
OS: Linux 4.18.0-25-generic amd64

Bug

Most helpful comment

Solution: It is necessary to create the function manually in the assembly window: right click -> create function. Maybe instead of the error message, a hint could be useful.

All 2 comments

Solution: It is necessary to create the function manually in the assembly window: right click -> create function. Maybe instead of the error message, a hint could be useful.

Thanks for catching this. At the very least we should prevent users from attempting to rename the undefined function.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

astrelsky picture astrelsky  路  3Comments

chibicitiberiu picture chibicitiberiu  路  3Comments

0x6d696368 picture 0x6d696368  路  3Comments

CalcProgrammer1 picture CalcProgrammer1  路  3Comments

forkoz picture forkoz  路  3Comments