Hello community,

here is the log from the commit of package powerpc-utils for openSUSE:Factory 
checked in at 2015-12-09 19:32:52
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/powerpc-utils (Old)
 and      /work/SRC/openSUSE:Factory/.powerpc-utils.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "powerpc-utils"

Changes:
--------
--- /work/SRC/openSUSE:Factory/powerpc-utils/powerpc-utils.changes      
2015-11-02 12:54:38.000000000 +0100
+++ /work/SRC/openSUSE:Factory/.powerpc-utils.new/powerpc-utils.changes 
2015-12-09 19:32:53.000000000 +0100
@@ -1,0 +2,8 @@
+Thu Dec  3 10:40:37 UTC 2015 - [email protected]
+
+- fix for adding Houston adapter (bsc#957448)
+
+- added patches:
+  * powerpc-utils.bug-957448-correct_node_add_buffer_overflow.patch
+
+-------------------------------------------------------------------

New:
----
  powerpc-utils.bug-957448-correct_node_add_buffer_overflow.patch

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

Other differences:
------------------
++++++ powerpc-utils.spec ++++++
--- /var/tmp/diff_new_pack.YG3zwS/_old  2015-12-09 19:32:55.000000000 +0100
+++ /var/tmp/diff_new_pack.YG3zwS/_new  2015-12-09 19:32:55.000000000 +0100
@@ -46,6 +46,7 @@
 Patch5:         
powerpc-utils.bug-945968_drmgr-Combine-the-init_node-and-examine_child-routin.patch
 Patch6:         
powerpc-utils.bug-948430-drmgr-Generate-error-message-when-PHB-is-not-found.patch
 Patch7:         
powerpc-utils.bug-952323_drmgr-free_slot_nodes_before_adding_slots.patch
+Patch8:         powerpc-utils.bug-957448-correct_node_add_buffer_overflow.patch
 ExclusiveArch:  ppc ppc64 ppc64le
 
 %description
@@ -61,6 +62,7 @@
 %patch5 -p1
 %patch6 -p1
 %patch7 -p1
+%patch8 -p1
 
 %build
 %configure 

++++++ powerpc-utils.bug-957448-correct_node_add_buffer_overflow.patch ++++++
Index: powerpc-utils-1.2.26/src/drmgr/common.c
===================================================================
--- powerpc-utils-1.2.26.orig/src/drmgr/common.c
+++ powerpc-utils-1.2.26/src/drmgr/common.c
@@ -369,7 +369,6 @@ add_node(char *path, struct of_node *new
 
        strcpy(buf, "add_node ");
        strcat(buf, add_path);
-       strcat(buf, " ");
        pos = buf + strlen(buf);
 
        /* this is less than optimal, iterating over the entire buffer
@@ -377,6 +376,7 @@ add_node(char *path, struct of_node *new
         */
        for (prop = new_nodes->properties; prop; prop = prop->next) {
                char tmp[16] = { '\0' }; /* for length */
+               *pos++ = ' ';
 
                memcpy(pos, prop->name, strlen(prop->name));
                pos += strlen(prop->name);
@@ -389,7 +389,6 @@ add_node(char *path, struct of_node *new
 
                memcpy(pos, prop->value, prop->length);
                pos += prop->length;
-               *pos++ = ' ';
        }
        *pos = '\0';
 

Reply via email to