Skip to content

Fix issues in Utils.c identified by the static code analyzer. #1345

@ibmkramamoo

Description

@ibmkramamoo

Use vsnprintf instead of vsprintf in lines 55, 73, 91

Possible memory leak:

memory leak: err = ICC_ERR_error_string(ctx, errCode, NULL);
gslogMessage("%s", err);
// Use user-provided buffer to avoid potential memory ownership issues
// This matches the pattern used in CCM.c
ICC_ERR_error_string(ctx, errCode, errBuffer);
gslogMessage("%s", errBuffer);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions