deflatestream - .NET Deflate Stream Error/Bug -
Does anyone experience the following error while using .NET Deflate stream?
System.IndexOfRangeException: The system was out of range of the array. System.Oo.Compression.HuffmanTree.CreateTable () on System.IO.Compression.Inflater.DecodeDynamicBlockHeader) System.IO.Compression.Inflater.Decode On) System.IO.Compression.Inflater.Inflate (byte [] bytes, int 32 offset, int 32 length) system. IOO Compression. Defaults Reed (byte [] array, intros offset, intros count)
This error occurs when the display disk reads from disproved disk. I am using simple indexed files in which there are several smaller defaults in encoded sections. This is an very rare rare error, because this error is only a narrow object of several hundred thousand (or million) experiences.
It seems that the HuffmanTree.CreateTable method routinely performs exceptions and fills the array beyond its boundaries.
I have tried to allocate an array which is twice the size of the original decompression and it still throws the error.
Although decoded data seems intact, however, keeps trying to decode and overflow regular buffers.
I think I can just try / hold and find out when this error comes and attempts to deal with it.
(I have tried DotNetZip which is causing various issues in the 64 bit environment I am working inside.)
Comments
Post a Comment