#4 Update to 2.4.3
Closed 2 years ago by pbrobinson. Opened 3 years ago by javierm.
rpms/ javierm/libsmbios master  into  master

@@ -1,51 +0,0 @@ 

- From 22728f16eb611411258146045030292e1170bfef Mon Sep 17 00:00:00 2001

- From: Peter Jones <pjones@redhat.com>

- Date: Wed, 14 Feb 2018 16:15:28 -0500

- Subject: [PATCH] libsmbios: fix more places with loop iterators with bad types

- 

- In these cases we get:

- 

- ../src/libsmbios_c/smbios/smbios_obj.c: In function 'smbios_verify_smbios':

- ../src/libsmbios_c/smbios/smbios_obj.c:415:31: error: comparison of integer expressions of different signedness: 'unsigned int' and 'long int' [-Werror=sign-compare]

-      for(unsigned int i = 0; i < length ; ++i )

-                                ^

- ../src/libsmbios_c/smbios/smbios_obj.c: In function 'smbios_verify_smbios3':

- ../src/libsmbios_c/smbios/smbios_obj.c:436:31: error: comparison of integer expressions of different signedness: 'unsigned int' and 'long int' [-Werror=sign-compare]

-      for(unsigned int i = 0; i < length ; ++i )

-                                ^

- 

- I really don't understand why gcc will complain about it being signed vs

- unsigned, but not about the fact that the int can obviously overflow

- before the condition being checked against length, a larger type, is

- satisfied.

- 

- Signed-off-by: Peter Jones <pjones@redhat.com>

- ---

-  src/libsmbios_c/smbios/smbios_obj.c | 4 ++--

-  1 file changed, 2 insertions(+), 2 deletions(-)

- 

- diff --git a/src/libsmbios_c/smbios/smbios_obj.c b/src/libsmbios_c/smbios/smbios_obj.c

- index a6f2e1e3525..c932ba59535 100644

- --- a/src/libsmbios_c/smbios/smbios_obj.c

- +++ b/src/libsmbios_c/smbios/smbios_obj.c

- @@ -412,7 +412,7 @@ bool __hidden smbios_verify_smbios(const char *buf, long length, long *dmi_lengt

-      bool retval = true;

-  

-      u8 checksum = 0;

- -    for(unsigned int i = 0; i < length ; ++i )

- +    for(long i = 0; i < length ; ++i )

-          checksum = (checksum + buf[i]) & 0xFF;

-  

-      fnprintf("SMBIOS TEP csum %d.\n", (int)checksum);

- @@ -433,7 +433,7 @@ bool __hidden smbios_verify_smbios3(const char *buf, long length, long *dmi_leng

-  {

-      struct smbios_table_entry_point_64 *ep;

-      u8 checksum = 0;

- -    for(unsigned int i = 0; i < length ; ++i )

- +    for(long i = 0; i < length ; ++i )

-          checksum = (checksum + buf[i]) & 0xFF;

-  

-      fnprintf("SMBIOS TEP csum %d.\n", (int)checksum);

- -- 

- 2.14.3

- 

file modified
+6 -4
@@ -7,16 +7,14 @@ 

  %define lang_dom  libsmbios-2.4

  

  Name: libsmbios

- Version: 2.4.2

- Release: 8%{?dist}

+ Version: 2.4.3

+ Release: 1%{?dist}

  Summary: Libsmbios C/C++ shared libraries

  

  License: GPLv2+ or OSL 2.1

  URL: https://github.com/dell/libsmbios

  Source0: https://github.com/dell/libsmbios/archive/v%{version}/libsmbios-%{version}.tar.gz

  

- Patch0001: 0001-libsmbios-fix-more-places-with-loop-iterators-with-b.patch

- 

  BuildRequires: autoconf

  BuildRequires: automake

  BuildRequires: cppunit-devel
@@ -213,6 +211,10 @@ 

  %{_datadir}/smbios-utils

  

  %changelog

+ * Wed Jun 10 2020 Javier Martinez Canillas <javierm@redhat.com> - 2.4.3-1

+ - Update to 2.4.3

+   Resolves: rhbz#1588232

+ 

  * Tue May 26 2020 Miro HronĨok <mhroncok@redhat.com> - 2.4.2-8

  - Rebuilt for Python 3.9

  

file modified
+1 -1
@@ -1,1 +1,1 @@ 

- SHA512 (libsmbios-2.4.2.tar.gz) = 51d1b11447d50b768658473d01bcb6cc7f9dd5c96c26ec343f222115ffb5047ca1f035a0bfb67f94f53165eaea7a0d9b70cf01f03333a30885bbac153bf761bd

+ SHA512 (libsmbios-2.4.3.tar.gz) = 7f6fb36fa9653e123b416b275953fb5652025e76dac3b4ec5600168e193ea56f8ac3ea1a3b5db29d2770e73d88152d712a35bf77a9b3fc5596570fae885585ad

Resolves: rhbz#1588232

Thanks!

Can we back-port this to F32 as well? The upstream release happend before F32 was release: https://github.com/dell/libsmbios/releases/tag/v2.4.3

@awehrfritz I believe so, by looking at the release changelog is only bug fixes. So I think that should be safe to backport to F32.

Closing this as it wasn't mergable, but I've pushed 2.4.3

Pull-Request has been closed by pbrobinson

2 years ago