From c6f27c7035b185bac7256a329a620b8f9ea72227 Mon Sep 17 00:00:00 2001 From: John Vogel Date: Sat, 14 Dec 2024 13:54:01 -0500 Subject: local/cvs-fast-export: new aport --- .../0005-xcalloc-argument-cleanup.patch | 28 ++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 cvs-fast-export/0005-xcalloc-argument-cleanup.patch (limited to 'cvs-fast-export/0005-xcalloc-argument-cleanup.patch') diff --git a/cvs-fast-export/0005-xcalloc-argument-cleanup.patch b/cvs-fast-export/0005-xcalloc-argument-cleanup.patch new file mode 100644 index 0000000..30bd15e --- /dev/null +++ b/cvs-fast-export/0005-xcalloc-argument-cleanup.patch @@ -0,0 +1,28 @@ +From b575cfb478df8b6b6bb81b149178fd66401788b1 Mon Sep 17 00:00:00 2001 +From: John Vogel +Date: Sat, 14 Dec 2024 03:19:13 -0500 +Subject: [PATCH] xcalloc argument cleanup. + +--- + export.c | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/export.c b/export.c +index 24c6161..5ab1ad7 100644 +--- a/export.c ++++ b/export.c +@@ -798,9 +798,9 @@ void export_commits(forest_t *forest, export_options_t *opts, + + export_stats.export_total_commits = export_ncommit(rl); + /* the +1 is because mark indices are 1-origin, slot 0 always empty */ +- markmap = (serial_t *)xcalloc(sizeof(serial_t), +- forest->total_revisions + ++ markmap = (serial_t *)xcalloc(forest->total_revisions + + export_stats.export_total_commits + 1, ++ sizeof(serial_t), + "markmap allocation"); + + progress_begin("Generating snapshots...", forest->filecount); +-- +2.47.1 + -- cgit v1.2.3