Merge branch 'GT-0_ghidra1_PR-1761_Random06457_ELF_MIPS_Options_Bug'

This commit is contained in:
ghidra1 2020-06-26 11:54:00 -04:00
commit c7cc11a18e

View file

@ -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;