From 58707feb72f9e4e6a2fcdb057d07255b72829303 Mon Sep 17 00:00:00 2001 From: Matt Nadareski Date: Tue, 3 Dec 2024 02:09:19 -0500 Subject: [PATCH] Debug data debugged data --- .../Protection/Macrovision.SafeDisc.cs | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/BinaryObjectScanner/Protection/Macrovision.SafeDisc.cs b/BinaryObjectScanner/Protection/Macrovision.SafeDisc.cs index 419933a0..4ea33d9e 100644 --- a/BinaryObjectScanner/Protection/Macrovision.SafeDisc.cs +++ b/BinaryObjectScanner/Protection/Macrovision.SafeDisc.cs @@ -102,12 +102,19 @@ namespace BinaryObjectScanner.Protection if (name.OptionalEquals("SafeDisc", StringComparison.OrdinalIgnoreCase)) return "SafeDisc"; - // Found in Redump entries 20729 and 65569. - // Get the debug data - if (pex.FindCodeViewDebugTableByPath("SafeDisc").Count > 0) - return "SafeDisc"; - if (pex.FindCodeViewDebugTableByPath("Safedisk").Count > 0) - return "SafeDisc"; + try + { + // Found in Redump entries 20729 and 65569. + // Get the debug data + if (pex.FindCodeViewDebugTableByPath("SafeDisc").Count > 0) + return "SafeDisc"; + if (pex.FindCodeViewDebugTableByPath("Safedisk").Count > 0) + return "SafeDisc"; + } + catch + { + // Absorb inconsistent debug data errors + } // TODO: Investigate various section names: // "STLPORT_" - Found in Redump entry 11638.