iFix uninitialized memory - dedup - deduplicating backup program Err bitreich.org 70 hgit clone git://bitreich.org/dedup/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/dedup/ URL:git://bitreich.org/dedup/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/dedup/ bitreich.org 70 1Log /scm/dedup/log.gph bitreich.org 70 1Files /scm/dedup/files.gph bitreich.org 70 1Refs /scm/dedup/refs.gph bitreich.org 70 1Tags /scm/dedup/tag bitreich.org 70 1README /scm/dedup/file/README.gph bitreich.org 70 1LICENSE /scm/dedup/file/LICENSE.gph bitreich.org 70 i--- Err bitreich.org 70 1commit 5bebcbec44537372fcd4e178fdc4057d6d04f783 /scm/dedup/commit/5bebcbec44537372fcd4e178fdc4057d6d04f783.gph bitreich.org 70 1parent 2133dd9a0b1eb34bb850d868da0f4c209aa8cc53 /scm/dedup/commit/2133dd9a0b1eb34bb850d868da0f4c209aa8cc53.gph bitreich.org 70 hAuthor: sin URL:mailto:sin@2f30.org bitreich.org 70 iDate: Tue, 20 Mar 2018 18:19:16 +0000 Err bitreich.org 70 i Err bitreich.org 70 iFix uninitialized memory Err bitreich.org 70 i Err bitreich.org 70 iBug found by Evil_Bob, thanks! Err bitreich.org 70 i Err bitreich.org 70 iDiffstat: Err bitreich.org 70 i M dedup.c | 2 +- Err bitreich.org 70 i Err bitreich.org 70 i1 file changed, 1 insertion(+), 1 deletion(-) Err bitreich.org 70 i--- Err bitreich.org 70 1diff --git a/dedup.c b/dedup.c /scm/dedup/file/dedup.c.gph bitreich.org 70 i@@ -108,7 +108,7 @@ alloc_ent(void) Err bitreich.org 70 i { Err bitreich.org 70 i struct ent *ent; Err bitreich.org 70 i Err bitreich.org 70 i- ent = malloc(sizeof(*ent)); Err bitreich.org 70 i+ ent = calloc(1, sizeof(*ent)); Err bitreich.org 70 i if (ent == NULL) Err bitreich.org 70 i err(1, "malloc"); Err bitreich.org 70 i return ent; Err bitreich.org 70 .