mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2024-11-21 19:42:14 +00:00
Fix for GT-2704
This commit is contained in:
parent
79d8f164f8
commit
9cd01c9a08
@ -261,10 +261,7 @@ public class PcodeDataTypeManager {
|
|||||||
if (type instanceof Array) {
|
if (type instanceof Array) {
|
||||||
return buildType(type, size);
|
return buildType(type, size);
|
||||||
}
|
}
|
||||||
if (type instanceof FunctionDefinition) {
|
if (!(type instanceof FunctionDefinition) && type.getLength() <= 0) {
|
||||||
return buildType(type, size);
|
|
||||||
}
|
|
||||||
if (type.getLength() <= 0) {
|
|
||||||
return buildType(type, size);
|
return buildType(type, size);
|
||||||
}
|
}
|
||||||
StringBuilder resBuf = new StringBuilder();
|
StringBuilder resBuf = new StringBuilder();
|
||||||
@ -541,7 +538,7 @@ public class PcodeDataTypeManager {
|
|||||||
}
|
}
|
||||||
resBuf.append("<type");
|
resBuf.append("<type");
|
||||||
if ((type instanceof Pointer) || (type instanceof Array) ||
|
if ((type instanceof Pointer) || (type instanceof Array) ||
|
||||||
(type instanceof FunctionDefinition) || (type.getLength() <= 0)) {
|
(!(type instanceof FunctionDefinition) && type.getLength() <= 0)) {
|
||||||
SpecXmlUtils.encodeStringAttribute(resBuf, "name", "");
|
SpecXmlUtils.encodeStringAttribute(resBuf, "name", "");
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
Loading…
Reference in New Issue
Block a user