Skip to content

Conversation

@sairohan0
Copy link

  • in the original master code, after dealloc(item) in cJSON_Delete, item is not assigned to NULL, which makes item as a dangling pointer and if the item is used, it causes a seg fault.
  • assigned item to NULL
  • similarly done in other places.
…angling pointer if not done; similarly done in other places after dealloc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant