Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:15.5:Update
slurm.32296
U_22-Set-size_valp-to-0-on-error-paths-for-cons...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File U_22-Set-size_valp-to-0-on-error-paths-for-consistency.patch of Package slurm.32296
From: Tim Wickberg <tim@schedmd.com> Date: Wed Nov 29 15:42:07 2023 -0700 Subject: [PATCH 22/28]Set *size_valp to 0 on error paths for consistency. Patch-mainline: Upstream Git-repo: https://github.com/SchedMD/slurm Git-commit: 231f96a9ccd48823dfcada9162e3884f155375b4 References: bsc#1218046, bsc#1218050, bsc#1218051, bsc#1218053 Signed-off-by: Egbert Eich <eich@suse.de> --- src/common/pack.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/common/pack.c b/src/common/pack.c index 2099778fab..dcfa809a41 100644 --- a/src/common/pack.c +++ b/src/common/pack.c @@ -882,6 +882,7 @@ int unpackmem_ptr(char **valp, uint32_t * size_valp, Buf buffer) return SLURM_SUCCESS; unpack_error: + *size_valp = 0; return SLURM_ERROR; } @@ -918,6 +919,7 @@ int unpackmem_xmalloc(char **valp, uint32_t * size_valp, Buf buffer) return SLURM_SUCCESS; unpack_error: + *size_valp = 0; return SLURM_ERROR; } @@ -958,6 +960,7 @@ int unpackmem_malloc(char **valp, uint32_t * size_valp, Buf buffer) return SLURM_SUCCESS; unpack_error: + *size_valp = 0; return SLURM_ERROR; } @@ -1021,6 +1024,7 @@ int unpackstr_xmalloc_escaped(char **valp, uint32_t *size_valp, Buf buffer) return SLURM_SUCCESS; unpack_error: + *size_valp = 0; return SLURM_ERROR; }
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