]> git.ipfire.org Git - thirdparty/libarchive.git/commit
Issue #655: Be more careful verifying sparse file reading
authorTim Kientzle <kientzle@acm.org>
Sun, 10 Apr 2016 01:10:37 +0000 (18:10 -0700)
committerTim Kientzle <kientzle@acm.org>
Sun, 10 Apr 2016 01:10:37 +0000 (18:10 -0700)
commit039463dcd20e15e3650a25cb845e914a54eed26a
tree58cb9a7d7a161058c54de446f386ca60b958d059
parent67aa16600f9283ed3fb78cea5cda28455ed0098e
Issue #655:  Be more careful verifying sparse file reading

The old logic took a number of shortcuts; this now does a careful
comparison of the template used to generate the file with
the contents read back, verifying that the read blocks reflect
the expected pattern of zero and non-zero bytes and that the
expected number of holes actually appear.
libarchive/test/main.c
libarchive/test/test.h
libarchive/test/test_sparse_basic.c