mirror of
https://github.com/SabreTools/BinaryObjectScanner.git
synced 2026-02-03 21:29:23 +00:00
Excessive memory consumption when scanning large MS-CAB files #200
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?
Originally created by @Zopolis4 on GitHub (Jun 14, 2025).
When attempting to scan large MS-CAB files, an excessive amount of memory is consumed, appearing to be more than double the size of the file.
To demonstrate, this is what happens when I try and run ProtectionScan on
Content1.caband providing it with 2GB of memory. (If I do not cap it like this, the high memory consumption results in my computer being unresponsive and I have to reboot)For context,
Content1.cabis 878 MB.This issue has resulted in me being unable to dump multiple discs (http://redump.org/disc/49677/, for example) with protection scanning enabled, as it consumes all the available memory and then everything becomes unresponsive and the scan never finishes.
@mnadareski commented on GitHub (Sep 7, 2025):
This should be addressed as of the latest build due to massive internal changes to MS-CAB handling.
@Zopolis4 commented on GitHub (Sep 8, 2025):
The scanning is near-instant now, which I presume is correct, and I don't OOM anymore, which was this issue.
@mnadareski commented on GitHub (Sep 8, 2025):
It was probably LZX-based, which means it can't effectively be scanned. But it does still cache the chunks, so seeing that it didn't OOM is a very good sign.