]> git.pld-linux.org Git - packages/cvs-fast-export.git/blame - cvs-fast-export-ubsan.patch
- updated to 1.66
[packages/cvs-fast-export.git] / cvs-fast-export-ubsan.patch
CommitLineData
0980b64f
JB
1--- cvs-fast-export-1.66/treepack.c.orig 2024-04-07 16:00:03.669621200 +0200
2+++ cvs-fast-export-1.66/treepack.c 2024-04-07 16:01:11.059256119 +0200
3@@ -210,6 +210,7 @@ void revdir_pack_init(void) {
4 frame = frames;
5 nfiles = 0;
6 frames[0].dir = root_dir;
7+ frames[0].dirs = xmalloc(0, __func__);
8 frames[0].ndirs = 0;
9 frames[0].hash = hash_init();
0b0bfc9a 10 }
0980b64f 11@@ -253,6 +254,7 @@ void revdir_pack_add(const cvs_commit *f
0b0bfc9a 12
0980b64f
JB
13 const master_dir *parent = frame++->dir;
14 frame->dir = first_subdir(dir, parent);
15+ frame->dirs = xmalloc(0, __func__);
16 frame->ndirs = 0;
17 frame->hash = hash_init();
18 continue;
19--- cvs-fast-export-1.66/generate.c.orig 2024-04-07 16:00:03.669621200 +0200
20+++ cvs-fast-export-1.66/generate.c 2024-04-07 16:02:04.075635571 +0200
21@@ -1158,7 +1158,7 @@ static node_t *generate_setup(generator_
22 eb->Gfilename = gen->master_name;
23 eb->Gexpand = gen->expand;
24 eb->Gabspath = NULL;
25- Gline(eb) = NULL;
26+ Gline(eb) = xmalloc(0, __func__);
27 Ggap(eb) = Ggapsize(eb) = Glinemax(eb) = 0;
28 }
0b0bfc9a 29
0980b64f
JB
30--- cvs-fast-export-1.66/import.c.orig 2024-04-07 16:00:03.669621200 +0200
31+++ cvs-fast-export-1.66/import.c 2024-04-07 16:02:53.108703269 +0200
32@@ -347,6 +347,7 @@ void analyze_masters(int argc, const cha
33 striplen = analyzer->striplen;
34
35 forest->textsize = forest->filecount = 0;
36+ forest->is_cvs = false;
37 progress_begin("Reading file list...", NO_MAX);
38 for (;;) {
39 struct stat stb;
This page took 0.054046 seconds and 4 git commands to generate.