zowe / zowe-common-c

C Libraries for various OS & Networking needs
Eclipse Public License 2.0
10 stars 30 forks source link

getUseridByExternalInfo can leak under LE 64-bit #467

Open ifakhrutdinov opened 4 months ago

ifakhrutdinov commented 4 months ago

Description

The getUseridByExternalInfo function in c/rsusermap.c will leak storage in case a bad function code is provided and the code is compiled for LE 64-bit. The function needs to use FREE_STRUCT31 for every exit point (which we should probably make fewer of).