GP-0: Better error checking on long PE section name parse (Closes #9167)

This commit is contained in:
Ryan Kurtz
2026-06-08 18:36:01 -04:00
parent 7a0191b6e6
commit 9032c99c5f
@@ -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
}
}