rar5: unpack bugfix

This commit is contained in:
coderb
2017-12-20 18:13:04 -05:00
parent 3e8f52689e
commit 218823e9b2

View File

@@ -283,6 +283,7 @@ void MakeDecodeTables(byte[] LengthTable, int offset, DecodeTable Dec,uint Size)
// so we cannot use the original DecodePos.
uint[] CopyDecodePos = new uint[Dec.DecodePos.Length];
//memcpy(CopyDecodePos,Dec->DecodePos,sizeof(CopyDecodePos));
Array.Copy(Dec.DecodePos, 0, CopyDecodePos, 0, CopyDecodePos.Length);
// For every bit length in the bit length table and so for every item
// of alphabet.