mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-04 18:29:37 +02:00
GT-2743_caheckman fixed dex decompilation due to regression from prior
fix (#247)
This commit is contained in:
parent
49c2010b63
commit
d95a0a05a1
1 changed files with 10 additions and 1 deletions
|
@ -261,7 +261,16 @@ public class PcodeDataTypeManager {
|
||||||
if (type instanceof Array) {
|
if (type instanceof Array) {
|
||||||
return buildType(type, size);
|
return buildType(type, size);
|
||||||
}
|
}
|
||||||
if (!(type instanceof FunctionDefinition) && type.getLength() <= 0) {
|
if (type instanceof FunctionDefinition) {
|
||||||
|
long id = progDataTypes.getID(type);
|
||||||
|
if (id <= 0) {
|
||||||
|
// Its possible the FunctionDefinition was built on the fly and is not
|
||||||
|
// a permanent data-type of the program with an ID. In this case, we can't
|
||||||
|
// construct a <typeref> tag but must build a full <type> tag.
|
||||||
|
return buildType(type, size);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else if (type.getLength() <= 0) {
|
||||||
return buildType(type, size);
|
return buildType(type, size);
|
||||||
}
|
}
|
||||||
StringBuilder resBuf = new StringBuilder();
|
StringBuilder resBuf = new StringBuilder();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue