diff --git a/AssetStudio/BundleFile.cs b/AssetStudio/BundleFile.cs index 9cdd2b1..fed0323 100644 --- a/AssetStudio/BundleFile.cs +++ b/AssetStudio/BundleFile.cs @@ -432,7 +432,8 @@ namespace AssetStudio byte[] sharedUncompressedBuff = null; if (blocksCompression > CompressionType.Lzma && blocksCompression != CompressionType.Lzham) { - sharedCompressedBuff = BigArrayPool.Shared.Rent(blockSize); + var maxCompressedSize = (int)m_BlocksInfo.Max(x => x.compressedSize); + sharedCompressedBuff = BigArrayPool.Shared.Rent(maxCompressedSize); sharedUncompressedBuff = BigArrayPool.Shared.Rent(blockSize); }