mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2026-05-20 23:08:31 +08:00
GP-0_emteere fix for apply function signature when noreturn is not set
on the signature
This commit is contained in:
+5
-1
@@ -140,7 +140,11 @@ public class ApplyFunctionSignatureCmd extends BackgroundCommand {
|
||||
func.updateFunction(conventionName, returnParam, params,
|
||||
FunctionUpdateType.DYNAMIC_STORAGE_FORMAL_PARAMS, false, source);
|
||||
func.setVarArgs(signature.hasVarArgs());
|
||||
func.setNoReturn(signature.hasNoReturn());
|
||||
|
||||
// Only apply noreturn if signature has it set
|
||||
if (signature.hasNoReturn()) {
|
||||
func.setNoReturn(signature.hasNoReturn());
|
||||
}
|
||||
}
|
||||
catch (DuplicateNameException e) {
|
||||
// should not happen unless caused by a concurrent operation
|
||||
|
||||
Reference in New Issue
Block a user