diff --git a/dist b/dist new file mode 100644 index 0000000000000000000000000000000000000000..9c0e36ec42a2d9bfefacb21ac6354c9ddd910533 --- /dev/null +++ b/dist @@ -0,0 +1 @@ +an8 diff --git a/download b/download new file mode 100644 index 0000000000000000000000000000000000000000..5659e69b040a285ef3a00a2593bd15461811910a --- /dev/null +++ b/download @@ -0,0 +1 @@ +a417bf68da4e9bd79a4664c11d7debd1 sgpio-1.2-0.10-src.tar.gz diff --git a/sgpio-1.2-0.10-src.tar.gz b/sgpio-1.2-0.10-src.tar.gz deleted file mode 100644 index 8cd64a86c9464d494d78a9634fb282751a0cf778..0000000000000000000000000000000000000000 Binary files a/sgpio-1.2-0.10-src.tar.gz and /dev/null differ diff --git a/sgpio-1.2-buffer-overflow.patch b/sgpio-1.2-buffer-overflow.patch new file mode 100644 index 0000000000000000000000000000000000000000..9a277d818cecbadee5049b895dfcfe95fb26a17f --- /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 c5961a60c8622f32e41d14c51e2751f62113581e..f7e0ea87ec43b90cb02d0b8f4e43cd39751c92a6 100644 --- a/sgpio.spec +++ b/sgpio.spec @@ -3,7 +3,7 @@ Summary: SGPIO captive backplane tool Name: sgpio Version: 1.2.0.10 -Release: 21%{anolis_release}%{?dist} +Release: 23%{anolis_release}%{?dist} License: GPLv2+ Group: System Environment/Base URL: http://sources.redhat.com/lvm2/wiki/DMRAID_Eventing @@ -12,6 +12,7 @@ Source: sgpio-1.2-0.10-src.tar.gz #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: dos2unix Requires: glibc @@ -33,6 +34,7 @@ Doc pages for %{name}. dos2unix --keepdate Makefile README %patch0 -p1 -b .makefile %patch1 -p1 -b .coverity +%patch2 -p1 -b .buffer-overflow chmod a-x * %build @@ -51,9 +53,15 @@ make install INSTALL="%{__install} -p" DESTDIR=$RPM_BUILD_ROOT SBIN_DIR=$RPM_BUI %doc README %changelog -* Sun Jul 17 2022 Xiaoping Liu - 1.2.0.10-21.0.1 +* Mon Jul 08 2024 Xiaoping Liu - 1.2.0.10-23.0.1 - Add doc sub package +* Fri Oct 27 2023 Lukáš Zaoral - 1.2.0.10-23 +- rebuild for updated gating.yaml + +* Mon Oct 09 2023 Lukáš Zaoral - 1.2.0.10-22 +- fix buffer overflow with high port numbers (RHEL-11034) + * Mon Feb 26 2018 Jan Synáček - 1.2.0.10-21 - use distribution LDFLAGS during build (#1548559)