mirror of
https://github.com/lifegpc/GARbro.git
synced 2026-06-06 05:28:49 +08:00
(PRS): limit decompressed block size.
This commit is contained in:
@@ -189,6 +189,7 @@ namespace GameRes.Formats.Marble
|
||||
++shift;
|
||||
if (dst < shift)
|
||||
throw new InvalidFormatException ("Invalid offset value");
|
||||
length = Math.Min (length, m_output.Length - dst);
|
||||
Binary.CopyOverlapped (m_output, dst-shift, dst, length);
|
||||
dst += length;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user