Hello community,

here is the log from the commit of package i4l-base for openSUSE:Factory 
checked in at 2017-11-16 13:58:02
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/i4l-base (Old)
 and      /work/SRC/openSUSE:Factory/.i4l-base.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "i4l-base"

Thu Nov 16 13:58:02 2017 rev:66 rq:541736 version:2011.8.29

Changes:
--------
--- /work/SRC/openSUSE:Factory/i4l-base/i4l-base.changes        2017-10-02 
16:45:21.512884330 +0200
+++ /work/SRC/openSUSE:Factory/.i4l-base.new/i4l-base.changes   2017-11-16 
13:58:03.560050023 +0100
@@ -1,0 +2,6 @@
+Tue Nov  7 06:25:36 UTC 2017 - [email protected]
+
+- Add isdn4k-utils-initialize-memory.patch to make build
+  reproducible (boo#1066797)
+
+-------------------------------------------------------------------

New:
----
  isdn4k-utils-initialize-memory.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ i4l-base.spec ++++++
--- /var/tmp/diff_new_pack.Ttey5T/_old  2017-11-16 13:58:04.704008575 +0100
+++ /var/tmp/diff_new_pack.Ttey5T/_new  2017-11-16 13:58:04.712008285 +0100
@@ -72,6 +72,7 @@
 Patch38:        isdn4k-utils-perl526.diff
 # fix build with newer automake
 Patch50:        isdn4k-utils-automake-1_13.diff
+Patch51:        isdn4k-utils-initialize-memory.patch
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 PreReq:         /bin/cat
 PreReq:         fileutils
@@ -239,6 +240,7 @@
 %patch38 -p1
 popd
 %patch50 -p1
+%patch51 -p1
 
 %build
 # This package failed when testing with -Wl,-as-needed being default.

++++++ isdn4k-utils-initialize-memory.patch ++++++
Author: Bernhard M. Wiedemann <bwiedemann suse de>
Date: 2017-11-07

initialize array to avoid undefined memory being used
to decide what gets written to the database output file

https://bugzilla.opensuse.org/show_bug.cgi?id=1066797

Index: isdn4k-utils/isdnlog/tools/zone/mkzonedb.c
===================================================================
--- isdn4k-utils.orig/isdnlog/tools/zone/mkzonedb.c
+++ isdn4k-utils/isdnlog/tools/zone/mkzonedb.c
@@ -100,6 +100,7 @@ static void read_rzfile(char *rf) {
                fprintf(stderr, "Out of mem\n");
                exit(EXIT_FAILURE);
        }
+       memset(numbers, 0, (maxnum+1)*sizeof(int));
        n=i=keylen=keydigs=0;
        if (verbose)
                printf("Reading %s\n", rf);
@@ -139,11 +140,12 @@ static void read_rzfile(char *rf) {
                if (to > keylen)
                        keylen=to;
                if(to>maxnum) {
-                       maxnum=to;
-                       if ((numbers = realloc(numbers,(maxnum+1)*sizeof(int))) 
== 0) {
+                       if ((numbers = realloc(numbers,(to+1)*sizeof(int))) == 
0) {
                                fprintf(stderr, "Out of mem\n");
                                exit(EXIT_FAILURE);
                        }
+                       memset(numbers+maxnum+1, 0, (to-maxnum)*sizeof(int));
+                       maxnum=to;
                }
                numbers[to]++;
                n++;

Reply via email to