Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/cecil.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'symbols/pdb/Mono.Cecil.Pdb/PdbReader.cs')
-rw-r--r--symbols/pdb/Mono.Cecil.Pdb/PdbReader.cs5
1 files changed, 5 insertions, 0 deletions
diff --git a/symbols/pdb/Mono.Cecil.Pdb/PdbReader.cs b/symbols/pdb/Mono.Cecil.Pdb/PdbReader.cs
index d56ead0..d06ac91 100644
--- a/symbols/pdb/Mono.Cecil.Pdb/PdbReader.cs
+++ b/symbols/pdb/Mono.Cecil.Pdb/PdbReader.cs
@@ -41,6 +41,11 @@ namespace Mono.Cecil.Pdb {
public bool ProcessDebugHeader (ImageDebugDirectory directory, byte [] header)
{
+ if (directory.Type != 2) //IMAGE_DEBUG_TYPE_CODEVIEW
+ return false;
+ if (directory.MajorVersion != 0 || directory.MinorVersion != 0)
+ return false;
+
if (header.Length < 24)
return false;