zowe / zowe-common-c

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

Using a temporary buffer pointer to avoid pointer corruption. #437

Closed Gautham-coder closed 7 months ago

Gautham-coder commented 7 months ago

Proposed changes

The original pointer used for malloc() was getting corrupted while data write was happening, now we use a copy/temporary pointer. Thereby safeguarding the original pointer and avoiding the wrong free(), which was causing the abend.

This PR addresses Issue: https://github.com/zowe/zss/issues/693

Type of change

Please delete options that are not relevant.

PR Checklist

Please delete options that are not relevant.

Testing

You can create a script to upload chunks of data continuously using the PUT method.