mirror of
https://github.com/crskycode/GARbro.git
synced 2024-12-23 19:34:15 +08:00
(PRS): limit decompressed block size.
This commit is contained in:
parent
b35a80dcdc
commit
65662783ec
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user