mirror of
https://github.com/kwsch/pk3DS.git
synced 2026-10-02 05:46:47 -05:00
Fix possible memory overuse
Mini detection would read all of the file in; no please no. Don't check for mini if above 10MB.
This commit is contained in:
@@ -91,7 +91,7 @@ private void openARC(string path, bool recursing = false)
|
||||
|
||||
// Determine if it is a DARC or a Mini
|
||||
// Check if Mini first
|
||||
string fx = CTR.mini.getIsMini(path);
|
||||
string fx = fi.Length > 10 * (1<<20) ? null : CTR.mini.getIsMini(path); // no mini is above 10MB
|
||||
if (fx != null) // Is Mini Packed File
|
||||
{
|
||||
newFolder = folderPath + "_" + fx;
|
||||
|
||||
Reference in New Issue
Block a user