From 40897a24f1c93a4dbfc2cafcc314d53e4105f7eb Mon Sep 17 00:00:00 2001 From: wang--ge Date: Tue, 15 Jul 2025 15:37:53 +0800 Subject: [PATCH] Refix long string overflow --- procinfo-18-long-line-adapt.patch | 2 +- procinfo.spec | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/procinfo-18-long-line-adapt.patch b/procinfo-18-long-line-adapt.patch index 96c1ead..2b73264 100644 --- a/procinfo-18-long-line-adapt.patch +++ b/procinfo-18-long-line-adapt.patch @@ -16,7 +16,7 @@ index 287026f..b04bd47 100644 *versionfp, *cpuinfofp; -char line[1024], cmdline[1024], booted[40], *version = NULL, *message = NULL; -+char line[2048], cmdline[1024], booted[40], *version = NULL, *message = NULL; ++char line[10240], cmdline[1024], booted[40], *version = NULL, *message = NULL; float rate = 1.0; /* per interval or per sec */ diff --git a/procinfo.spec b/procinfo.spec index b26b231..aa878e7 100644 --- a/procinfo.spec +++ b/procinfo.spec @@ -1,6 +1,6 @@ Name: procinfo Version: 18 -Release: 43 +Release: 44 Summary: A tool for displaying system information License: GPL+ Source: ftp://ftp.cistron.nl/pub/people/00-OLD/svm/procinfo-%{version}.tar.gz @@ -73,6 +73,9 @@ make install prefix=$RPM_BUILD_ROOT/usr mandir=$RPM_BUILD_ROOT/%{_mandir} %{_mandir}/man8/socklist.8* %changelog +* Tue Jul 15 2025 Ge Wang - 18-44 +- Refix long string overflow + * Tue Jul 15 2025 Ge Wang - 18-43 - Fix long string overflow -- Gitee