Ghidra is a software reverse engineering (SRE) framework
Fix potential IndexOutOfBoundsException in PDB parsing
Christian Nieves2428fcc3e135
diff --git a/Ghidra/Features/PDB/src/main/java/ghidra/app/util/bin/format/pdb2/pdbreader/SymbolRecords.java b/Ghidra/Features/PDB/src/main/java/ghidra/app/util/bin/format/pdb2/pdbreader/SymbolRecords.javaindex 6a54442654..a1609f5429 100644--- a/Ghidra/Features/PDB/src/main/java/ghidra/app/util/bin/format/pdb2/pdbreader/SymbolRecords.java+++ b/Ghidra/Features/PDB/src/main/java/ghidra/app/util/bin/format/pdb2/pdbreader/SymbolRecords.java@@ -135,6 +135,9 @@ public class SymbolRecords {if (debugInfo == null) {return;}+ if (debugInfo.getModuleInformationList().size() == 0) {+ return;+ }// We are assuming that first in the list is the one to look at for cases 1 and 2.// If something else like lowest stream number, then need to change the logic.ModuleInformation moduleInfo = debugInfo.getModuleInformationList().get(0);