| Previous | Next |
| STATUS_CONNECTION_ABORTED | STATUS_USER_MAPPED_FILE |
STATUS_BAD_COMPRESSION_BUFFER
The compression buffer cannot be decoded safely
This status concerns the encoded buffer supplied to a compression or file-system path. Truncated chunks, invalid headers, impossible offsets, or data produced for another format can make the stream undecodable before any destination file is updated.
Do not assume that choosing a larger output buffer fixes malformed compressed data. Preserve the input bytes, the format identifier, and the expected uncompressed size so corruption can be distinguished from an API-contract error.
What to inspect
- Verify the compression format and chunk boundaries used by producer and consumer.
- Check input length and expected output size with overflow-safe arithmetic.
- Compare the bytes against a known-good source before attempting repair or fallback decoding.
References
- Microsoft: FSCTL_SET_COMPRESSION
- Microsoft: FSCTL_GET_COMPRESSION
- NTFS-3G: transparently compressed NTFS files
- Microsoft Open Specifications: NTSTATUS values
Looking for a different code? Search another status or error code.