Zlib checksum verification #43
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
DataElementReader.ReadCompressed ignores both the header and the trailer when reading and writing compressed datastream. This means that corrupted data may be red without informing the upper layer which is one of the big benefits with enabling zlib compression.
It should still be possible to read corrupt data so just throwing an exception is an insufficient solution. Marking the DataElement as corrupt is better, then the data can till be used but the upper layer knows that it may be unreliable.
Please also backport this fix to the stable version.
Potential solution here:
https://yal.cc/cs-deflatestream-zlib/