diff options
Diffstat (limited to 'cvs-fast-export/0002-Address-GitLab-issue-69-Segfault-due-to-uninitialize.patch')
| -rw-r--r-- | cvs-fast-export/0002-Address-GitLab-issue-69-Segfault-due-to-uninitialize.patch | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/cvs-fast-export/0002-Address-GitLab-issue-69-Segfault-due-to-uninitialize.patch b/cvs-fast-export/0002-Address-GitLab-issue-69-Segfault-due-to-uninitialize.patch new file mode 100644 index 0000000..bca9277 --- /dev/null +++ b/cvs-fast-export/0002-Address-GitLab-issue-69-Segfault-due-to-uninitialize.patch @@ -0,0 +1,33 @@ +From 160f2478f28f36b536ffbc2a1b2cd8e5053106eb Mon Sep 17 00:00:00 2001 +From: "Eric S. Raymond" <esr@thyrsus.com> +Date: Tue, 15 Oct 2024 13:25:18 -0400 +Subject: [PATCH 2/4] Address GitLab issue #69: Segfault due to uninitialized + pack_frame->sdirs + +--- + treepack.c | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/treepack.c b/treepack.c +index fc8b76c..b385460 100644 +--- a/treepack.c ++++ b/treepack.c +@@ -212,6 +212,7 @@ void revdir_pack_init(void) { + frames[0].dir = root_dir; + frames[0].dirs = xmalloc(0, __func__); + frames[0].ndirs = 0; ++ frame->sdirs = 0; + frames[0].hash = hash_init(); + } + +@@ -256,6 +257,7 @@ void revdir_pack_add(const cvs_commit *file, const master_dir *dir) { + frame->dir = first_subdir(dir, parent); + frame->dirs = xmalloc(0, __func__); + frame->ndirs = 0; ++ frame->sdirs = 0; + frame->hash = hash_init(); + continue; + } +-- +2.47.1 + |
