mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2026-09-29 08:23:00 +08:00
GP-0: Better error checking on long PE section name parse (Closes #9167)
This commit is contained in:
@@ -259,8 +259,8 @@ public class SectionHeader implements StructConverter, ByteArrayConverter {
|
||||
int nameOffset = Integer.parseInt(result.name.substring(1));
|
||||
result.name = reader.readAsciiString(stringTableOffset + nameOffset);
|
||||
}
|
||||
catch (NumberFormatException nfe) {
|
||||
// ignore error, section name will remain as it was
|
||||
catch (NumberFormatException | IOException nfe) {
|
||||
// ignore format or out-of-bounds errors...section name will remain as it was
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user