[PR #297] [MERGED] Update SecuROM v7 detection to correctly handle a partly stripped header #462

Open
opened 2026-01-29 21:08:23 +00:00 by claunia · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/SabreTools/BinaryObjectScanner/pull/297
Author: @CookiePLMonster
Created: 4/4/2024
Status: Merged
Merged: 4/4/2024
Merged by: @mnadareski

Base: masterHead: securom-v7-fix


📝 Commits (1)

  • 93d9eaf Update SecuROM v7 detection to correctly handle a partly stripped header

📊 Changes

1 file changed (+26 additions, -17 deletions)

View changed files

📝 BinaryObjectScanner/Protection/SecuROM.cs (+26 -17)

📄 Description

Executable mentioned in https://github.com/SabreTools/BinaryObjectScanner/issues/142 had a .securom section, but the extended MS-DOS header has been stripped. Therefore, BOS threw an exception when analyzing that file inside GetV7Version.

Added a range check to the function and treated its failure as "remnants" of SecuROM - because we know SecuROM was there, but we don't know what exact version.

Fixes #142.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/SabreTools/BinaryObjectScanner/pull/297 **Author:** [@CookiePLMonster](https://github.com/CookiePLMonster) **Created:** 4/4/2024 **Status:** ✅ Merged **Merged:** 4/4/2024 **Merged by:** [@mnadareski](https://github.com/mnadareski) **Base:** `master` ← **Head:** `securom-v7-fix` --- ### 📝 Commits (1) - [`93d9eaf`](https://github.com/SabreTools/BinaryObjectScanner/commit/93d9eaf7a716ce73a0d7b3b5724496d00092dfad) Update SecuROM v7 detection to correctly handle a partly stripped header ### 📊 Changes **1 file changed** (+26 additions, -17 deletions) <details> <summary>View changed files</summary> 📝 `BinaryObjectScanner/Protection/SecuROM.cs` (+26 -17) </details> ### 📄 Description Executable mentioned in https://github.com/SabreTools/BinaryObjectScanner/issues/142 had a `.securom` section, but the extended MS-DOS header has been stripped. Therefore, BOS threw an exception when analyzing that file inside `GetV7Version`. Added a range check to the function and treated its failure as "remnants" of SecuROM - because we know SecuROM was there, but we don't know what exact version. Fixes #142. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
claunia added the pull-request label 2026-01-29 21:08:23 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: SabreTools/BinaryObjectScanner#462