Skip to content

Ghidra is a software reverse engineering (SRE) framework

DebugDirectory type is in range 0-20

Xiaoyin Liu6f9d70fac4db
diff --git a/Ghidra/Features/Base/src/main/java/ghidra/app/util/bin/format/pe/debug/DebugDirectory.java b/Ghidra/Features/Base/src/main/java/ghidra/app/util/bin/format/pe/debug/DebugDirectory.java
index 1502b8884a..57694f854e 100644
--- a/Ghidra/Features/Base/src/main/java/ghidra/app/util/bin/format/pe/debug/DebugDirectory.java
+++ b/Ghidra/Features/Base/src/main/java/ghidra/app/util/bin/format/pe/debug/DebugDirectory.java
@@ -85,7 +85,7 @@ public class DebugDirectory implements StructConverter, ByteArrayConverter {
addressOfRawData = reader.readNextInt();
pointerToRawData = reader.readNextInt();
- if (type < 0 || type > 16 || sizeOfData < 0) {
+ if (type < 0 || type > 20 || sizeOfData < 0) {
Msg.error(this, "Invalid DebugDirectory");
sizeOfData = 0;
reader.setPointerIndex(oldIndex);