Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Step:15-SP2
slurm
U_27-Use-safe_xmalloc.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File U_27-Use-safe_xmalloc.patch of Package slurm
From: Tim Wickberg <tim@schedmd.com> Date: Wed Nov 29 15:54:54 2023 -0700 Subject: [PATCH 27/28]Use safe_xmalloc(). Patch-mainline: Upstream Git-repo: https://github.com/SchedMD/slurm Git-commit: 29475b346e7c49c72b618f19efd6b3027d494f42 References: bsc#1218046, bsc#1218050, bsc#1218051, bsc#1218053 Signed-off-by: Egbert Eich <eich@suse.de> --- src/common/pack.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/pack.c b/src/common/pack.c index 5debcb4775..101c504f17 100644 --- a/src/common/pack.c +++ b/src/common/pack.c @@ -1023,7 +1023,7 @@ int unpackstr_xmalloc_escaped(char **valp, uint32_t *size_valp, Buf buffer) return SLURM_ERROR; /* make a buffer 2 times the size just to be safe */ - *valp = xmalloc_nz((cnt * 2) + 1); + safe_xmalloc(*valp, (cnt * 2) + 1); copy = *valp; str = &buffer->head[buffer->processed];
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