diff --git a/sgpio-1.2-buffer-overflow.patch b/sgpio-1.2-buffer-overflow.patch new file mode 100644 index 0000000..9a277d8 --- /dev/null +++ b/sgpio-1.2-buffer-overflow.patch @@ -0,0 +1,11 @@ +--- sgpio/sgpio.c ++++ sgpio/sgpio.c +@@ -126,7 +126,7 @@ + int id; + int host_port; + int init; +- char name[7]; ++ char name[5 /* prefix */ + 10 /* port number */ + 1 /* terminator */]; + }; + + /* structure for the disks associated with the led structure */ diff --git a/sgpio.spec b/sgpio.spec index c3300da..65ede7c 100644 --- a/sgpio.spec +++ b/sgpio.spec @@ -1,14 +1,15 @@ Summary: SGPIO captive backplane tool Name: sgpio Version: 1.2.0.10 -Release: 30%{?dist} -License: GPLv2+ -URL: http://sources.redhat.com/lvm2/wiki/DMRAID_Eventing +Release: 41%{?dist} +License: GPL-2.0-or-later +URL: https://sourceware.org/lvm2/wiki/DMRAID_Eventing Source: sgpio-1.2-0.10-src.tar.gz # there is no official download link for the latest package #Source: http://sources.redhat.com/lvm2/wiki/DMRAID_Eventing?action=AttachFile&do=get&target=sgpio-1.2.tgz Patch0: sgpio-1.2-makefile.patch Patch1: sgpio-1.2-coverity.patch +Patch2: sgpio-1.2-buffer-overflow.patch BuildRequires: make BuildRequires: gcc BuildRequires: dos2unix @@ -19,8 +20,9 @@ Intel SGPIO enclosure management utility %prep %setup -q -n sgpio dos2unix --keepdate Makefile README -%patch0 -p1 -b .makefile -%patch1 -p1 -b .coverity +%patch -P0 -p1 -b .makefile +%patch -P1 -p1 -b .coverity +%patch -P2 -p1 -b .buffer-overflow chmod a-x * %build @@ -37,6 +39,39 @@ make clean %{_mandir}/man1/sgpio.* %changelog +* Fri Jul 17 2026 Fedora Release Engineering - 1.2.0.10-41 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild + +* Sat Jan 17 2026 Fedora Release Engineering - 1.2.0.10-40 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild + +* Fri Jul 25 2025 Fedora Release Engineering - 1.2.0.10-39 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild + +* Sun Jan 19 2025 Fedora Release Engineering - 1.2.0.10-38 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild + +* Sat Jul 20 2024 Fedora Release Engineering - 1.2.0.10-37 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild + +* Sat Jan 27 2024 Fedora Release Engineering - 1.2.0.10-36 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Tue Oct 31 2023 Lukáš Zaoral - 1.2.0.10-35 +- fix buffer overflow with high port numbers + +* Sat Jul 22 2023 Fedora Release Engineering - 1.2.0.10-34 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + +* Wed Mar 01 2023 Gwyn Ciesla - 1.2.0.10-33 +- migrated to SPDX license + +* Sat Jan 21 2023 Fedora Release Engineering - 1.2.0.10-32 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Sat Jul 23 2022 Fedora Release Engineering - 1.2.0.10-31 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + * Sat Jan 22 2022 Fedora Release Engineering - 1.2.0.10-30 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild