Script 'mail_helper' called by obssrc
Hello community,

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

Package is "fwts"

Mon Jan 18 15:22:05 2021 rev:54 rq:864074 version:20.12.00

Changes:
--------
--- /work/SRC/openSUSE:Factory/fwts/fwts.changes        2020-12-21 
10:23:32.423988304 +0100
+++ /work/SRC/openSUSE:Factory/.fwts.new.28504/fwts.changes     2021-01-18 
15:22:09.890381430 +0100
@@ -1,0 +2,6 @@
+Mon Jan 18 08:25:34 UTC 2021 - Martin Pluskal <mplus...@suse.com>
+
+- Add patch fixing bsc#1178442 bsc#1177992
+  * acpi-pmtt-fix-infinite-loops-when-length-is-incorrectly-zero.diff
+
+-------------------------------------------------------------------

New:
----
  acpi-pmtt-fix-infinite-loops-when-length-is-incorrectly-zero.diff

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

Other differences:
------------------
++++++ fwts.spec ++++++
--- /var/tmp/diff_new_pack.ZM7DOy/_old  2021-01-18 15:22:10.698387892 +0100
+++ /var/tmp/diff_new_pack.ZM7DOy/_new  2021-01-18 15:22:10.702387924 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package fwts
 #
-# 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
@@ -28,6 +28,8 @@
 Patch1:         fwts-no-compiletime.patch
 # PATCH-FIX-OPENSUSE fwts-fix-non-acpi.patch
 Patch2:         fwts-fix-non-acpi.patch
+# PATCH-FIX-UPSTREAM 
acpi-pmtt-fix-infinite-loops-when-length-is-incorrectly-zero.diff
+Patch3:         
acpi-pmtt-fix-infinite-loops-when-length-is-incorrectly-zero.diff
 BuildRequires:  autoconf
 BuildRequires:  automake
 BuildRequires:  bison

++++++ acpi-pmtt-fix-infinite-loops-when-length-is-incorrectly-zero.diff ++++++
Index: fwts-20.12.00/src/acpi/pmtt/pmtt.c
===================================================================
--- fwts-20.12.00.orig/src/acpi/pmtt/pmtt.c
+++ fwts-20.12.00/src/acpi/pmtt/pmtt.c
@@ -117,6 +117,14 @@ static void pmtt_controller_test(fwts_fr
        offset += sizeof(fwts_acpi_table_pmtt_domain) * entry->domain_count;
        header = (fwts_acpi_table_pmtt_header *) (((char *) entry) + offset);
        while (offset < entry->header.length) {
+
+               if (header->length == 0) {
+                       fwts_failed(fw, LOG_LEVEL_CRITICAL,
+                               "PMTTBadSubtableLength",
+                               "PMTT Controller has a subtable with zero 
length");
+                       break;
+               }
+
                if (header->type == FWTS_ACPI_PMTT_TYPE_DIMM) {
                        pmtt_physical_component_test(fw, 
(fwts_acpi_table_pmtt_physical_component *) header, passed);
                } else {
@@ -145,7 +153,16 @@ static void pmtt_socket_test(fwts_framew
 
        offset = sizeof(fwts_acpi_table_pmtt_socket);
        header = (fwts_acpi_table_pmtt_header *) (((char *) entry) + offset);
+
        while (offset < entry->header.length) {
+
+               if (header->length == 0) {
+                       fwts_failed(fw, LOG_LEVEL_CRITICAL,
+                               "PMTTBadSubtableLength",
+                               "PMTT Socket has a subtable with zero length");
+                       break;
+               }
+
                if (header->type == FWTS_ACPI_PMTT_TYPE_CONTROLLER) {
                        pmtt_controller_test(fw, 
(fwts_acpi_table_pmtt_controller *) header, passed);
                } else {

Reply via email to