From 795a2853c5577214528138ff379e59eceb99b0c8 Mon Sep 17 00:00:00 2001 From: wang--ge Date: Tue, 15 Jul 2025 15:35: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 726f5ec..5738e54 100644 --- a/procinfo.spec +++ b/procinfo.spec @@ -1,6 +1,6 @@ Name: procinfo Version: 18 -Release: 45 +Release: 46 Summary: A tool for displaying system information License: GPL+ Source: ftp://ftp.cistron.nl/pub/people/00-OLD/svm/procinfo-%{version}.tar.gz @@ -75,6 +75,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-46 +- Refix long string overflow + * Tue Jul 15 2025 Ge Wang - 18-45 - Fix long string overflow -- Gitee