mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-06 03:50:02 +02:00
Fix potential IndexOutOfBoundsException in PDB parsing
This commit is contained in:
parent
954ff4e124
commit
2428fcc3e1
1 changed files with 3 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue