mirror of
https://github.com/crskycode/GARbro.git
synced 2024-12-24 03:44:13 +08:00
(Seraph): limit output.
This commit is contained in:
parent
a2331dfec7
commit
df0afd0632
@ -344,7 +344,7 @@ namespace GameRes.Formats.Seraphim
|
||||
int offset = m_input.ReadByte() + ((ctl & 0xF) << 8) + 1;
|
||||
count = m_input.ReadByte() + 1;
|
||||
int src = dst - m_pixel_size * offset;
|
||||
count *= m_pixel_size;
|
||||
count = Math.Min (count * m_pixel_size, m_output.Length - dst);
|
||||
Binary.CopyOverlapped (m_output, src, dst, count);
|
||||
}
|
||||
else
|
||||
|
Loading…
x
Reference in New Issue
Block a user