]> git.pld-linux.org Git - packages/cvs-fast-export.git/blob - cvs-fast-export-ubsan.patch
- updated to 1.66
[packages/cvs-fast-export.git] / cvs-fast-export-ubsan.patch
1 --- cvs-fast-export-1.62/treepack.c.orig        2019-04-26 16:03:34.000000000 +0200
2 +++ cvs-fast-export-1.62/treepack.c     2023-12-11 20:26:03.515346763 +0100
3 @@ -215,6 +215,7 @@ 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();
10  }
11 @@ -257,6 +257,7 @@ revdir_pack_add(const cvs_commit *file,
12             
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.62/generate.c.orig        2023-12-16 09:25:49.122347160 +0100
20 +++ cvs-fast-export-1.62/generate.c     2023-12-16 09:25:51.565694258 +0100
21 @@ -1058,7 +1058,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; Ggap(eb) = Ggapsize(eb) = Glinemax(eb) = 0;
26 +       Gline(eb) = xmalloc(0, __func__); Ggap(eb) = Ggapsize(eb) = Glinemax(eb) = 0;
27      }
28  
29      return gen->nodehash.head_node;
30 --- cvs-fast-export-1.62/import.c.orig  2023-08-28 19:20:50.000000000 +0200
31 +++ cvs-fast-export-1.62/import.c       2023-12-16 19:32:48.695246837 +0100
32 @@ -322,6 +322,7 @@ void analyze_masters(int argc, const cha
33      striplen = analyzer->striplen;
34  
35      forest->textsize = forest->filecount = 0;
36 +    forest->cvsroot = false;
37      progress_begin("Reading file list...", NO_MAX);
38      for (;;)
39      {
This page took 0.026857 seconds and 3 git commands to generate.