Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:15.5:Update
util-linux-systemd.15798
lscpu-avoid-segfault-on-PowerPC-systems-with-va...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File lscpu-avoid-segfault-on-PowerPC-systems-with-valid-h.patch of Package util-linux-systemd.15798
From cbe3304bc43b3fceb06fb6e5dd822bb59abf1b84 Mon Sep 17 00:00:00 2001 From: Thomas Abraham <tabraham@suse.com> Date: Thu, 24 Sep 2020 14:52:33 -0400 Subject: [PATCH] lscpu: avoid segfault on PowerPC systems with valid hardware configurations References: bsc#1175623 ntypes greater than 1 is valid in some hardware configurations, and an assert() on the value isn't necessary or very future proof --- sys-utils/lscpu.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/sys-utils/lscpu.c b/sys-utils/lscpu.c index ca085b665..90c475a1f 100644 --- a/sys-utils/lscpu.c +++ b/sys-utils/lscpu.c @@ -440,8 +440,6 @@ static void read_physical_info_powerpc(struct lscpu_desc *desc) return; ntypes = strbe16toh(buf, 2); - - assert(ntypes <= 1); if (!ntypes) return; -- 2.26.2
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor