Skip to content

Add protection to GenericStack to avoid writing to unallocated stacks #4

@HeCoding180

Description

@HeCoding180

Add protection to GenericStack to avoid writing to unallocated stacks:

  • Add GS_StackNotAllocated_Error to cJSON_GenericStack_Result_t.
  • Allways check if length is greater than 0 before committing any action.
  • Return GS_StackNotAllocated_Error if stack is not allocated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions