SOURCES: htop-nonprint.patch (NEW) - fix for CVE-2008-5076 from Fedora repo

sls sls at pld-linux.org
Thu Nov 20 02:16:59 CET 2008


Author: sls                          Date: Thu Nov 20 01:16:59 2008 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- fix for CVE-2008-5076 from Fedora repo

---- Files affected:
SOURCES:
   htop-nonprint.patch (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SOURCES/htop-nonprint.patch
diff -u /dev/null SOURCES/htop-nonprint.patch:1.1
--- /dev/null	Thu Nov 20 02:17:00 2008
+++ SOURCES/htop-nonprint.patch	Thu Nov 20 02:16:54 2008
@@ -0,0 +1,11 @@
+--- RichString.c.orig	2008-03-09 03:23:49.000000000 +0100
++++ RichString.c	2008-11-18 12:30:21.000000000 +0100
+@@ -89,7 +89,7 @@
+ inline void RichString_appendn(RichString* this, int attrs, char* data_c, int len) {
+    int last = MIN(RICHSTRING_MAXLEN - 1, len + this->len);
+    for (int i = this->len, j = 0; i < last; i++, j++)
+-      this->chstr[i] = data_c[j] | attrs;
++      this->chstr[i] = ((data_c[j] > 31) ? data_c[j] : '?' ) | attrs;
+    this->chstr[last] = 0;
+    this->len = last;
+ }
================================================================


More information about the pld-cvs-commit mailing list