mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-04 18:29:37 +02:00
GT-3401_emteere Interim fix for multiple return types where one type is
tagged as a pointer.
This commit is contained in:
parent
0a517e6864
commit
c814e5bfbf
2 changed files with 10 additions and 4 deletions
|
@ -2037,7 +2037,7 @@ public class SymbolicPropogator {
|
||||||
}
|
}
|
||||||
|
|
||||||
// only want returns that can fit in a pointer!
|
// only want returns that can fit in a pointer!
|
||||||
returnLoc = conv.getReturnLocation(Undefined.getUndefinedDataType(pointerSize), program);
|
returnLoc = conv.getReturnLocation(new PointerDataType(Undefined.DEFAULT,pointerSize), program);
|
||||||
|
|
||||||
return returnLoc;
|
return returnLoc;
|
||||||
}
|
}
|
||||||
|
|
|
@ -323,9 +323,15 @@ public class ParamEntry {
|
||||||
size = SpecXmlUtils.decodeInt(entry.getValue());
|
size = SpecXmlUtils.decodeInt(entry.getValue());
|
||||||
else if (name.equals("metatype")) { // Not implemented at the moment
|
else if (name.equals("metatype")) { // Not implemented at the moment
|
||||||
String meta = entry.getValue();
|
String meta = entry.getValue();
|
||||||
// TODO: Currently only supporting "float" and "unknown" metatypes
|
// TODO: Currently only supporting "float", "ptr", and "unknown" metatypes
|
||||||
if ((meta != null)&&(meta.equals("float")))
|
if ((meta != null)) {
|
||||||
type = TYPE_FLOAT;
|
if (meta.equals("float")) {
|
||||||
|
type = TYPE_FLOAT;
|
||||||
|
}
|
||||||
|
else if (meta.equals("ptr")) {
|
||||||
|
type = TYPE_PTR;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else if (name.equals("group")) // Override the group
|
else if (name.equals("group")) // Override the group
|
||||||
group = SpecXmlUtils.decodeInt(entry.getValue());
|
group = SpecXmlUtils.decodeInt(entry.getValue());
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue