Skip to content

Conversation

@MicroMilo
Copy link

@MicroMilo MicroMilo commented Sep 18, 2025

All the bugs detected can be checked easily.

first commit

this commit fixes the file descriptor leak.

There exists a potential file descriptor leak in fuzz_main.c, which fopen a file but forget to fclose it.

second commit

this commit fixes the null pointer dereference and memory leak.

In the function cJSON_Print, NULL value may be returned, we need to take care of this case.
What's more, before exit the program, we should free the resource as more as we can.

third commit

this commit fixes the potential memory leak

4th commit

this commit fixes the potential Null Pointer Dereference

@MicroMilo MicroMilo changed the title Fix file descriptor leak Fix potential bug in test file Sep 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant