tAdd note - dedup - deduplicating backup program
(HTM) git clone git://git.z3bra.org/dedup.git
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit 4332d126e504bea10eff857f21e2ea7c3d341a96
(DIR) parent 27d4cd35a9abcf80ec50ae3a55fff5fc22dd3e99
(HTM) Author: sin <sin@2f30.org>
Date: Wed, 21 Mar 2018 10:25:16 +0000
Add note
Diffstat:
M dedup.c | 2 ++
1 file changed, 2 insertions(+), 0 deletions(-)
---
(DIR) diff --git a/dedup.c b/dedup.c
t@@ -329,6 +329,8 @@ check(void)
for (j = 0; j < ent->nblks; j++) {
struct blk blk;
+ /* XXX: If there's file corruption, ent->blks[j]
+ * could point anywhere */
read_blk(&blk, ent->blks[j]);
SHA256_Update(&ctx, blk.data, blk.sz);
}