Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add error check if json_dumps calls return NULL #450

Open
tpatki opened this issue Jul 12, 2023 · 0 comments
Open

Add error check if json_dumps calls return NULL #450

tpatki opened this issue Jul 12, 2023 · 0 comments

Comments

@tpatki
Copy link
Member

tpatki commented Jul 12, 2023

In all our JSON implementations, we use json_dumps to return a string. We need to check in Variorum if this string is NULL and return an error, as it is on the user to free this string and can cause a set fault. We can add this as an extra check in variorum.c or in individual architectures (remains to be tested if the first fix will work).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant