Hello community,

here is the log from the commit of package procps for openSUSE:Factory checked 
in at 2013-10-01 08:25:21
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/procps (Old)
 and      /work/SRC/openSUSE:Factory/.procps.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "procps"

Changes:
--------
--- /work/SRC/openSUSE:Factory/procps/procps.changes    2013-09-26 
19:42:51.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.procps.new/procps.changes       2013-10-01 
08:25:22.000000000 +0200
@@ -1,0 +2,6 @@
+Mon Sep 30 13:06:55 UTC 2013 - [email protected]
+
+- Enable legacy pmap
+- Fix crash of legacy pmap (bnc#842340)
+
+-------------------------------------------------------------------

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

Other differences:
------------------
++++++ procps.spec ++++++
--- /var/tmp/diff_new_pack.bn9pkq/_old  2013-10-01 08:25:23.000000000 +0200
+++ /var/tmp/diff_new_pack.bn9pkq/_new  2013-10-01 08:25:23.000000000 +0200
@@ -165,6 +165,7 @@
 %patch30 -p1
 
 %build
+tar --strip-components=1 -xf %{S:1}
 test -s .tarball-version || echo %{version} > .tarball-version
 #./autogen.sh
 autoreconf
@@ -195,6 +196,8 @@
     --with-gnu-ld
 make %{?_smp_mflags}
 
+./pmap $$
+
 %install
 make DESTDIR=%{buildroot} install
 install -d %{buildroot}/etc/xinetd.d

++++++ procps-pmap-legacy.tar.bz2 ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/procps-pmap-legacy/pmap.c 
new/procps-pmap-legacy/pmap.c
--- old/procps-pmap-legacy/pmap.c       2012-06-06 11:42:58.000000000 +0200
+++ new/procps-pmap-legacy/pmap.c       2013-09-30 15:03:43.000000000 +0200
@@ -24,6 +24,7 @@
 
 #include "proc/readproc.h"
 #include "proc/version.h"
+#include "xalloc.h"
 
 #define BUFFERSIZE     4096
 #define OBJECTSIZE     1024
@@ -300,17 +301,18 @@
                                usage(name);
                                return 1;
                        } else {
-                               char *low = optarg;
+                               char *low = xstrdup(optarg);
                                char *high = strchr(low, ',');
                                if (high) {
                                        *high = '\0';
                                        high++;
-                               }
+                               } else
+                                       high = low;
                                if (low)
                                        range_low = strtoull(low, &low, 16);
                                if (high)
                                        range_high = strtoull(high, &high, 16);
-                               if (*low || *high) {
+                               if (low && (*low || *high)) {
                                        usage(name);
                                        return 1;
                                }

-- 
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to