Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package dmidecode for openSUSE:Factory 
checked in at 2021-01-26 14:44:22
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/dmidecode (Old)
 and      /work/SRC/openSUSE:Factory/.dmidecode.new.28504 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "dmidecode"

Tue Jan 26 14:44:22 2021 rev:41 rq:866086 version:3.3

Changes:
--------
--- /work/SRC/openSUSE:Factory/dmidecode/dmidecode.changes      2020-10-18 
16:28:02.404667578 +0200
+++ /work/SRC/openSUSE:Factory/.dmidecode.new.28504/dmidecode.changes   
2021-01-26 14:44:23.655222206 +0100
@@ -1,0 +2,9 @@
+Fri Jan 22 14:58:16 UTC 2021 - Jean Delvare <jdelv...@suse.de>
+
+2 recommended fixes from upstream:
+- dmidecode-fix-the-condition-error-in-ascii_filter.patch:
+  dmidecode: Fix the condition error in ascii_filter.
+- dmidecode-fix-crash-with-u-option.patch: dmidecode: Fix crash
+  with -u option.
+
+-------------------------------------------------------------------

New:
----
  dmidecode-fix-crash-with-u-option.patch
  dmidecode-fix-the-condition-error-in-ascii_filter.patch

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

Other differences:
------------------
++++++ dmidecode.spec ++++++
--- /var/tmp/diff_new_pack.19NUdm/_old  2021-01-26 14:44:24.431223407 +0100
+++ /var/tmp/diff_new_pack.19NUdm/_new  2021-01-26 14:44:24.431223407 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package dmidecode
 #
-# Copyright (c) 2020 SUSE LLC
+# Copyright (c) 2021 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -27,6 +27,8 @@
 Source1:        
http://download.savannah.gnu.org/releases/%{name}/%{name}-%{version}.tar.xz.sig
 # https://savannah.nongnu.org/project/memberlist-gpgkeys.php?group=dmidecode
 Source2:        %{name}.keyring
+Patch1:         dmidecode-fix-the-condition-error-in-ascii_filter.patch
+Patch2:         dmidecode-fix-crash-with-u-option.patch
 Provides:       pmtools:%{_sbindir}/dmidecode
 Obsoletes:      pmtools < 20071117
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
@@ -49,6 +51,8 @@
 
 %prep
 %setup -q
+%patch1 -p1
+%patch2 -p1
 
 %build
 CFLAGS="%{optflags}" make %{?_smp_mflags}


++++++ dmidecode-fix-crash-with-u-option.patch ++++++
From: Jean Delvare <jdelv...@suse.de>
Date: Tue, 19 Jan 2021 16:26:01 +0100
Subject: dmidecode: Fix crash with -u option
Git-commit: 11e134e54d15e67a64c39a623f492a28df922517
Patch-mainline: yes

A segmentation fault was reported with option -u. Turns out to be a
stupid thinko where the buffer offset was reset at the wrong loop
depth.

Reported-by: Jerry Hoemann <jerry.hoem...@hpe.com>
Fixes: da06888d08b9 ("dmidecode: Use the print helpers in dump mode too")
Signed-off-by: Jean Delvare <jdelv...@suse.de>
---
 dmidecode.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- dmidecode-3.3.orig/dmidecode.c      2021-01-22 15:51:26.330074180 +0100
+++ dmidecode-3.3/dmidecode.c   2021-01-22 15:51:29.445143171 +0100
@@ -248,9 +248,9 @@ static void dmi_dump(const struct dmi_he
                        {
                                int j, l = strlen(s) + 1;
 
-                               off = 0;
                                for (row = 0; row < ((l - 1) >> 4) + 1; row++)
                                {
+                                       off = 0;
                                        for (j = 0; j < 16 && j < l - (row << 
4); j++)
                                                off += sprintf(raw_data + off,
                                                       j ? " %02X" : "%02X",
++++++ dmidecode-fix-the-condition-error-in-ascii_filter.patch ++++++
From: Tianjia Zhang <tianjia.zh...@linux.alibaba.com>
Date: Tue, 5 Jan 2021 10:36:29 +0100
Subject: dmidecode: Fix the condition error in ascii_filter
Git-commit: 1117390ccd9cea139638db6f460bb6de70e28f94
Patch-mainline: yes

The normal printable ASCII range is 32 to 127 (not included),
so fix the error in this if condition.

Signed-off-by: Tianjia Zhang <tianjia.zh...@linux.alibaba.com>
Signed-off-by: Jean Delvare <jdelv...@suse.de>
---
 dmidecode.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- dmidecode-3.3.orig/dmidecode.c      2020-10-14 14:51:11.000000000 +0200
+++ dmidecode-3.3/dmidecode.c   2021-01-22 15:51:26.330074180 +0100
@@ -116,7 +116,7 @@ static void ascii_filter(char *bp, size_
        size_t i;
 
        for (i = 0; i < len; i++)
-               if (bp[i] < 32 || bp[i] == 127)
+               if (bp[i] < 32 || bp[i] >= 127)
                        bp[i] = '.';
 }
 

Reply via email to