mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2026-06-02 19:48:18 +08:00
Merge remote-tracking branch
'origin/GP-6776_ghidracadabra_PR-9101_vigneshakaviki_fix_varargs-filter-firstVarArgSlot' (Closes #9101, Closes #9091)
This commit is contained in:
+4
-2
@@ -193,10 +193,11 @@ class FunctionData extends FunctionDataView {
|
||||
|
||||
void setVarArgs(boolean enable) {
|
||||
this.hasVarArgs = enable;
|
||||
updateParameterAndReturnStorage();
|
||||
}
|
||||
|
||||
/**
|
||||
* Update dynamic storage and auto-params when custom storage is disasbled.
|
||||
* Update dynamic storage and auto-params when custom storage is disabled.
|
||||
* Returns immediately if custom storage is enabled.
|
||||
*/
|
||||
void updateParameterAndReturnStorage() {
|
||||
@@ -222,7 +223,8 @@ class FunctionData extends FunctionDataView {
|
||||
}
|
||||
|
||||
VariableStorage[] paramStorage =
|
||||
effectiveCallingConvention.getStorageLocations(getProgram(), dataTypes, true);
|
||||
effectiveCallingConvention.getStorageLocations(getProgram(), dataTypes, true,
|
||||
hasVarArgs);
|
||||
|
||||
returnInfo.setStorage(paramStorage[0]);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user