Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:15.4:ARM
qemu.20097
s390x-Fix-stringop-truncation-issue-repo.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File s390x-Fix-stringop-truncation-issue-repo.patch of Package qemu.20097
From: Bruce Rogers <brogers@suse.com> Date: Thu, 13 Aug 2020 14:03:29 -0600 Subject: s390x: Fix stringop-truncation issue reported by gcc 11 Signed-off-by: Bruce Rogers <brogers@suse.com> --- target/s390x/misc_helper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target/s390x/misc_helper.c b/target/s390x/misc_helper.c index 58dbc023eb5495ec5da0321651ad..d8e18c0d4617c333fcd4cc1c5c8c 100644 --- a/target/s390x/misc_helper.c +++ b/target/s390x/misc_helper.c @@ -370,7 +370,7 @@ uint32_t HELPER(stsi)(CPUS390XState *env, uint64_t a0, uint64_t r0, uint64_t r1) MIN(sizeof(sysib.sysib_322.vm[0].name), strlen(qemu_name))); strncpy((char *)sysib.sysib_322.ext_names[0], qemu_name, - sizeof(sysib.sysib_322.ext_names[0])); + sizeof(sysib.sysib_322.ext_names[0] - 1)); } else { ebcdic_put(sysib.sysib_322.vm[0].name, "TCGguest", 8); strcpy((char *)sysib.sysib_322.ext_names[0], "TCGguest");
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