mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-05 02:39:44 +02:00
GP-2262 - type id should be long
This commit is contained in:
parent
2131e9d1af
commit
f19df90389
3 changed files with 5 additions and 3 deletions
|
@ -3192,6 +3192,8 @@ TypePointer *TypeFactory::getTypePointerNoDepth(int4 s,Datatype *pt,uint4 ws)
|
|||
TypeArray *TypeFactory::getTypeArray(int4 as,Datatype *ao)
|
||||
|
||||
{
|
||||
if (ao->hasStripped())
|
||||
ao = ao->getStripped();
|
||||
TypeArray tmp(as,ao);
|
||||
return (TypeArray *) findAdd(tmp);
|
||||
}
|
||||
|
|
|
@ -52,14 +52,14 @@ public class ClangTypeToken extends ClangToken {
|
|||
|
||||
@Override
|
||||
public void decode(Decoder decoder, PcodeFactory pfactory) throws PcodeXMLException {
|
||||
int id = 0;
|
||||
long id = 0;
|
||||
for (;;) {
|
||||
int attribId = decoder.getNextAttributeId();
|
||||
if (attribId == 0) {
|
||||
break;
|
||||
}
|
||||
if (attribId == AttributeId.ATTRIB_ID.getId()) {
|
||||
id = (int) decoder.readUnsignedInteger();
|
||||
id = decoder.readUnsignedInteger();
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -251,7 +251,7 @@ public class PcodeDataTypeManager {
|
|||
else { // We typically reach here if the decompiler invents a new type
|
||||
// probably an unknown with a non-standard size
|
||||
int size = (int) decoder.readSignedInteger(AttributeId.ATTRIB_SIZE);
|
||||
decoder.closeElement(el);
|
||||
decoder.closeElementSkipping(el);
|
||||
return Undefined.getUndefinedDataType(size).clone(progDataTypes);
|
||||
}
|
||||
if (restype == null) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue