mirror of
https://github.com/SabreTools/BinaryObjectScanner.git
synced 2026-02-04 05:35:49 +00:00
[PR #374] [MERGED] Fixes .hdr+.cab installshield cabinet files not being extracted by BOS when relative paths are provided. #525
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/SabreTools/BinaryObjectScanner/pull/374
Author: @HeroponRikiBestest
Created: 6/29/2025
Status: ✅ Merged
Merged: 7/4/2025
Merged by: @mnadareski
Base:
master← Head:fix-split-is-cab-relativepath📝 Commits (5)
d0dad6aFixes .hdr+.cab installshield cabinet files not being extracted when relative paths are provided.6fd54bfFix for unit tests empty file string.1735059Better fix for unit test failures, due to https://learn.microsoft.com/en-us/dotnet/api/system.io.path.getfullpath?view=net-9.0 listing several more exceptions than the other functions, most of which I would not imagine should be directly handled.032f797Removed try-catch fullpath obtaining, added getting fullpath in scanner via filestream name instead.99e5212Undid previous changes again, re-added path assertion at request, added assert.throws exception for empty paths in the unit tests📊 Changes
3 files changed (+7 additions, -6 deletions)
View changed files
📝
BinaryObjectScanner.Test/FileType/InstallShieldCABTests.cs(+4 -5)📝
BinaryObjectScanner/FileType/InstallShieldCAB.cs(+2 -0)📝
BinaryObjectScanner/Scanner.cs(+1 -1)📄 Description
Installshield .hdr+.cab archives were not being extracted by BOS when relative paths were provided. Let me know if this is an improper fix- I tried to look for similar functions in other extractors, but as far as I can tell, nothing else is written exactly like this bit.
Apologies for closing and re-opening the pull request, but since this is a problem that affects no other part of BOS and is unique to this specific part of ISCAB due to nothing else working like it, I had assumed i was fine to just commit directly to master and it would be a quick merge. It's understandable that this might need further investigation, but I need to make other PRs and I don't want to destroy my own git history, so I had to move my commits to a different branch and roll back master after the fact.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.