(UnpackV0): limit decompression loop by input length.

This commit is contained in:
morkt
2015-05-21 23:42:03 +04:00
parent c1356f2e46
commit c2d54d4bfa

View File

@@ -578,7 +578,7 @@ namespace GameRes.Formats.Ffa
byte[] frame = new byte[0x1000]; // word_461A28
PopulateLzssFrame (frame);
int ebp = 0xfee;
for (;;)
while (src < m_input.Length)
{
byte ah = m_input[src++];
for (int mask = 1; mask != 0x100; mask <<= 1)