Hello community,

here is the log from the commit of package libXrandr for openSUSE:Factory 
checked in at 2017-11-30 12:33:34
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/libXrandr (Old)
 and      /work/SRC/openSUSE:Factory/.libXrandr.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "libXrandr"

Thu Nov 30 12:33:34 2017 rev:15 rq:544432 version:1.5.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/libXrandr/libXrandr.changes      2017-06-04 
01:45:31.653434860 +0200
+++ /work/SRC/openSUSE:Factory/.libXrandr.new/libXrandr.changes 2017-11-30 
12:33:37.183599664 +0100
@@ -1,0 +2,8 @@
+Wed Nov 22 10:08:09 UTC 2017 - zai...@opensuse.org
+
+- Add U_libXrandr_fix-memory-leak.patch: Fix memory leak on error
+  paths.
+- Drop unneeded autoconf, automake and libtool BuildRequires and no
+  longer pass autoreconf.
+
+-------------------------------------------------------------------

New:
----
  U_libXrandr_fix-memory-leak.patch

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

Other differences:
------------------
++++++ libXrandr.spec ++++++
--- /var/tmp/diff_new_pack.Og54eD/_old  2017-11-30 12:33:37.755578865 +0100
+++ /var/tmp/diff_new_pack.Og54eD/_new  2017-11-30 12:33:37.759578720 +0100
@@ -29,12 +29,11 @@
 #Git-Web:      http://cgit.freedesktop.org/xorg/lib/libXrandr/
 Source:         
http://xorg.freedesktop.org/releases/individual/lib/%{name}-%{version}.tar.bz2
 Source1:        baselibs.conf
+Patch:          U_libXrandr_fix-memory-leak.patch
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 
-BuildRequires:  autoconf >= 2.60
-BuildRequires:  automake
+#git#BuildRequires:    autoconf >= 2.60, automake, libtool
 BuildRequires:  fdupes
-BuildRequires:  libtool
 BuildRequires:  pkgconfig
 BuildRequires:  pkgconfig(randrproto) >= 1.5
 BuildRequires:  pkgconfig(renderproto)
@@ -73,9 +72,10 @@
 
 %prep
 %setup -q
+%patch -p1
 
 %build
-autoreconf -fi
+#git#autoreconf -fi
 %configure --disable-static
 make %{?_smp_mflags}
 

++++++ U_libXrandr_fix-memory-leak.patch ++++++
>From 87227e5fc79750d3eccc3c3482a3c5b3f2af2e90 Mon Sep 17 00:00:00 2001
From: Tobias Stoeckmann <tob...@stoeckmann.org>
Date: Sat, 28 Jan 2017 15:37:57 +0100
Subject: Fix memory leak on error paths

Introduced in commit a0df3e1c7728205e5c7650b2e6dce684139254a6 "Avoid out
of boundary accesses on illegal responses"

Signed-off-by: Julien Cristau <jcris...@debian.org>

diff --git a/src/XrrCrtc.c b/src/XrrCrtc.c
index 6665092..8316b78 100644
--- a/src/XrrCrtc.c
+++ b/src/XrrCrtc.c
@@ -459,6 +459,7 @@ XRRGetCrtcTransform (Display        *dpy,
     e = extra;
 
     if (e + rep.pendingNbytesFilter > end) {
+       XFree (attr);
        XFree (extra);
        return False;
     }
@@ -468,6 +469,7 @@ XRRGetCrtcTransform (Display        *dpy,
     for (p = 0; p < rep.pendingNparamsFilter; p++) {
        INT32   f;
        if (e + 4 > end) {
+           XFree (attr);
            XFree (extra);
            return False;
        }
@@ -478,6 +480,7 @@ XRRGetCrtcTransform (Display        *dpy,
     attr->pendingNparams = rep.pendingNparamsFilter;
 
     if (e + rep.currentNbytesFilter > end) {
+       XFree (attr);
        XFree (extra);
        return False;
     }
@@ -487,6 +490,7 @@ XRRGetCrtcTransform (Display        *dpy,
     for (p = 0; p < rep.currentNparamsFilter; p++) {
        INT32   f;
        if (e + 4 > end) {
+           XFree (attr);
            XFree (extra);
            return False;
        }
-- 
cgit v0.10.2

Reply via email to