]> wimlib.net Git - wimlib/commit
Warn rather than abort if SHA-1 is same but size is different
authorEric Biggers <ebiggers3@gmail.com>
Mon, 5 Jul 2021 06:03:50 +0000 (23:03 -0700)
committerEric Biggers <ebiggers3@gmail.com>
Mon, 5 Jul 2021 07:05:50 +0000 (00:05 -0700)
commitba8edbaf442ff0b30ca9ee1d16a4a646876ed94c
tree0e5c7e44d1afe0e978d90b5bd22d89d9ed159c78
parentcc187fadce655d4806d450af8936c4c807ba18b8
Warn rather than abort if SHA-1 is same but size is different

Assertions should only be used for bugs in wimlib, but this scenario can
also happen if there is a SHA-1 collision, or if the SHA-1 hash provided
by the filesystem for a WIM-backed file on Windows is wrong.
include/wimlib/blob_table.h
src/blob_table.c
src/template.c
src/win32_capture.c