Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-15-SP2:Update
slurm
U_23-Use-safe_xmalloc.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File U_23-Use-safe_xmalloc.patch of Package slurm
From: Tim Wickberg <tim@schedmd.com> Date: Wed Nov 29 15:43:19 2023 -0700 Subject: [PATCH 23/28]Use safe_xmalloc(). Patch-mainline: Upstream Git-repo: https://github.com/SchedMD/slurm Git-commit: 34de030ec20b9150386a87eb062c858cf83476e4 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 9f8a82cf9e..b9b2988f5b 100644 --- a/src/common/pack.c +++ b/src/common/pack.c @@ -937,7 +937,7 @@ int unpackmem_xmalloc(char **valp, uint32_t * size_valp, Buf buffer) if (remaining_buf(buffer) < *size_valp) goto unpack_error; - *valp = xmalloc_nz(*size_valp); + safe_xmalloc(*valp, *size_valp); memcpy(*valp, &buffer->head[buffer->processed], *size_valp); buffer->processed += *size_valp;
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