mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2026-06-01 14:54:29 +08:00
GP-5312 fix NPE when logging message about unsupported elf compression
(Closes #7403)
This commit is contained in:
+2
-2
@@ -146,7 +146,7 @@ public class ElfSectionHeader implements StructConverter, MemoryLoadable {
|
||||
ElfCompressedSectionHeader.read(getRawSectionReader(), header);
|
||||
if (!isSupportedCompressionType(result.getCh_type())) {
|
||||
throw new IOException("Unknown ELF section compression type 0x%x for section %s"
|
||||
.formatted(compressedHeader.getCh_type(), getNameAsString()));
|
||||
.formatted(result.getCh_type(), getNameAsString()));
|
||||
}
|
||||
return result;
|
||||
}
|
||||
@@ -465,7 +465,7 @@ public class ElfSectionHeader implements StructConverter, MemoryLoadable {
|
||||
return new ByteProviderWrapper(reader.getByteProvider(), sh_offset, sh_size);
|
||||
}
|
||||
|
||||
private BinaryReader getRawSectionReader() throws IOException {
|
||||
private BinaryReader getRawSectionReader() {
|
||||
return new BinaryReader(getRawSectionByteProvider(), header.isLittleEndian());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user