Ghidra is a software reverse engineering (SRE) framework
GT-3029 Fix PDB validation logic
ghizardd951f3c89488
diff --git a/Ghidra/Features/PDB/src/main/java/ghidra/app/util/bin/format/pdb/PdbParser.java b/Ghidra/Features/PDB/src/main/java/ghidra/app/util/bin/format/pdb/PdbParser.javaindex e8a39193cc..d650912f1f 100644--- a/Ghidra/Features/PDB/src/main/java/ghidra/app/util/bin/format/pdb/PdbParser.java+++ b/Ghidra/Features/PDB/src/main/java/ghidra/app/util/bin/format/pdb/PdbParser.java@@ -177,6 +177,9 @@ public class PdbParser {}}}+ else { // only for .pdb.xml files.+ verifyPdbSignature();+ }parsed = true;}@@ -550,18 +553,15 @@ public class PdbParser {catch (SAXException e) {throw new IOException(e.getMessage());}-- verifyPdbSignature(in);}/*** Check to see if GUID and age in XML file matches GUID/Signature and age of binary*- * @param in InputStream for XML file* @throws IOException If an I/O error occurs* @throws PdbException If error parsing the PDB.XML data*/- private void verifyPdbSignature(InputStream in) throws IOException, PdbException {+ private void verifyPdbSignature() throws IOException, PdbException {XmlElement xmlelem;