]> git.ipfire.org Git - thirdparty/zstd.git/commit
Add Tool to Diagnose Whether Corrupt Blobs are Plausibly Bit-Flips 1893/head
authorW. Felix Handte <w@felixhandte.com>
Tue, 19 Nov 2019 06:21:53 +0000 (01:21 -0500)
committerW. Felix Handte <w@felixhandte.com>
Tue, 19 Nov 2019 06:53:36 +0000 (01:53 -0500)
commitb5fb2e7c12665c3c43676986dc5fab1613966f09
tree58a142a06cdd2f74c7f09228119c37b3d8350509
parent6a7f65117e8f270ff30f43855ef0efe63fb4b31f
Add Tool to Diagnose Whether Corrupt Blobs are Plausibly Bit-Flips

I spend an increasing amount of my time looking at "Corrupted block detected"
failures in decompression. Not infrequently, I suspect that it is the result
of hardware failure, and that the blob has become bit-flipped or otherwise
corrupted somewhere along the line.

For that reason I was motivated to write a little tool to inspect blobs that
fail to decompress, to try modifying them, and then check whether they
decompress successfully. This seems like potentially a generally useful tool,
so I figured it might be worth putting in `contrib/`.
contrib/diagnose_corruption/.gitignore [new file with mode: 0644]
contrib/diagnose_corruption/Makefile [new file with mode: 0644]
contrib/diagnose_corruption/check_flipped_bits.c [new file with mode: 0644]