mirror of
https://github.com/NationalSecurityAgency/ghidra
synced 2024-10-13 05:33:02 +00:00
Fix a bug when parsing the elf SHT_MIPS_OPTIONS section
This commit is contained in:
parent
bcb825fb02
commit
4bed300b33
|
@ -580,9 +580,11 @@ public class MIPS_ElfExtension extends ElfExtension {
|
|||
break;
|
||||
|
||||
default:
|
||||
// consume unprocessed option description bytes
|
||||
elfLoadHelper.createData(nextOptionAddr,
|
||||
new ArrayDataType(ByteDataType.dataType, optionDataSize, 1));
|
||||
if (optionDataSize > 0) {
|
||||
// consume unprocessed option description bytes
|
||||
elfLoadHelper.createData(nextOptionAddr,
|
||||
new ArrayDataType(ByteDataType.dataType, optionDataSize, 1));
|
||||
}
|
||||
}
|
||||
|
||||
limit -= odkHeader.getLength() + optionDataSize;
|
||||
|
|
Loading…
Reference in a new issue