Hello community,

here is the log from the commit of package htop for openSUSE:Factory checked in 
at 2016-03-16 10:35:23
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/htop (Old)
 and      /work/SRC/openSUSE:Factory/.htop.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "htop"

Changes:
--------
--- /work/SRC/openSUSE:Factory/htop/htop.changes        2016-02-16 
09:18:41.000000000 +0100
+++ /work/SRC/openSUSE:Factory/.htop.new/htop.changes   2016-03-16 
10:35:28.000000000 +0100
@@ -1,0 +2,5 @@
+Thu Mar  3 17:25:17 UTC 2016 - [email protected]
+
+- htop-2.0.0-fix-buffer-reuse.patch: upstream fix for crash with SIGABRT
+
+-------------------------------------------------------------------

New:
----
  htop-2.0.0-fix-buffer-reuse.patch

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

Other differences:
------------------
++++++ htop.spec ++++++
--- /var/tmp/diff_new_pack.qijqjJ/_old  2016-03-16 10:35:29.000000000 +0100
+++ /var/tmp/diff_new_pack.qijqjJ/_new  2016-03-16 10:35:29.000000000 +0100
@@ -26,6 +26,8 @@
 Source0:        
http://hisham.hm/htop/releases/%{version}/%{name}-%{version}.tar.gz
 Patch0:         htop-desktop-file-fix-thoenig-01.patch
 Patch1:         htop-stdgnu.patch
+# PATCH-FIX-UPSTREAM htop-2.0.0-fix-buffer-reuse.patch
+Patch2:         htop-2.0.0-fix-buffer-reuse.patch
 BuildRequires:  autoconf
 BuildRequires:  automake
 BuildRequires:  ncurses-devel
@@ -47,6 +49,7 @@
 %setup -q
 %patch0 -p1
 %patch1 -p1
+%patch2 -p1
 
 %build
 autoreconf -fiv

++++++ htop-2.0.0-fix-buffer-reuse.patch ++++++
>From 0b70439316b4e4608c0916317ded7e6e56982de6 Mon Sep 17 00:00:00 2001
From: Hisham <[email protected]>
Date: Sat, 13 Feb 2016 02:18:28 -0200
Subject: [PATCH] Fix buffer reuse.

---
 linux/LinuxProcessList.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/linux/LinuxProcessList.c b/linux/LinuxProcessList.c
index 591210e..ec643ab 100644
--- a/linux/LinuxProcessList.c
+++ b/linux/LinuxProcessList.c
@@ -446,7 +446,7 @@ static void LinuxProcessList_readOomData(LinuxProcess* 
process, const char* dirn
 }
 
 static void setCommand(Process* process, const char* command, int len) {
-   if (process->comm && process->commLen <= len) {
+   if (process->comm && process->commLen >= len) {
       strncpy(process->comm, command, len + 1);
    } else {
       free(process->comm);

Reply via email to