D
1 учасник1 допис
1 публікацій
Deflate Decompress: reject truncated data without inventing text
Decompression should return the exact original bytes from a valid stream. Test a known DEFLATE sample and its zlib-wrapped counterpart separately, then truncate a few bytes to see whether the tool reports an error. If output is displayed as text, specify UTF-8 or another encoding after decompression; binary bytes are not necessarily readable characters.
Compare length and byte values with an independent decoder. Report wrapper, encoded input format, expected byte count, text encoding, and the error or output observed.
·1