mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-05 02:39:44 +02:00
GP-1792 Prevent proto override from cancelling a callfixup
This commit is contained in:
parent
d6cf7a97f5
commit
6aefaa106d
1 changed files with 3 additions and 3 deletions
|
@ -646,8 +646,8 @@ void FlowInfo::queryCall(FuncCallSpecs &fspecs)
|
|||
Funcdata *otherfunc = data.getScopeLocal()->getParent()->queryFunction( fspecs.getEntryAddress() );
|
||||
if (otherfunc != (Funcdata *)0) {
|
||||
fspecs.setFuncdata(otherfunc); // Associate the symbol with the callsite
|
||||
if (!fspecs.hasModel()) { // If the prototype was not overridden
|
||||
fspecs.copyFlowEffects(otherfunc->getFuncProto()); // Take the symbols's prototype
|
||||
if (!fspecs.hasModel() || otherfunc->getFuncProto().isInline()) { // If the prototype was not overridden
|
||||
fspecs.copyFlowEffects(otherfunc->getFuncProto()); // Take the flow affects of the symbol
|
||||
// If the call site is applying just the standard prototype from the symbol,
|
||||
// this postpones the full copy of the prototype until ActionDefaultParams
|
||||
// Which lets "last second" changes come in, between when the function is first walked and
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue