mirror of
https://github.com/Maschell/GhidraRPXLoader.git
synced 2024-11-14 04:15:09 +01:00
Use String Methods
- Revert length check, test for empty string Needs a lot of parentheses but it works
This commit is contained in:
parent
c4370fd256
commit
3d667024cc
@ -311,7 +311,7 @@ public class Cafe_ElfExtension extends ElfExtension {
|
||||
Address tagAddress = fileInfoAddr.add(tagOffset);
|
||||
while (true) {
|
||||
Data d = elfLoadHelper.createData(tagAddress, TerminatedStringDataType.dataType);
|
||||
if (d == null || d.getLength() <= 1) { // empty string has a length of 1 (just a null terminator)
|
||||
if (d == null || d.getLength() == 0 || (d.hasStringValue() && ((String)d.getValue()).isEmpty())) {
|
||||
break;
|
||||
}
|
||||
tagAddress = tagAddress.add(d.getLength());
|
||||
|
Loading…
Reference in New Issue
Block a user