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

[#496] admin.c: fix UAF in list_users() #497

Closed
wants to merge 1 commit into from

Conversation

decarv
Copy link
Contributor

@decarv decarv commented Jan 18, 2025

The fclose(users_file) in the error path can still be called after the first fclose(users_file).

Fix this by setting users_file to NULL.

This makes the build with type Release fail.

The fclose(users_file) in the error path can still be called
after the first fclose(users_file).

Fix this by setting users_file to NULL.

Signed-off-by: Henrique de Carvalho <[email protected]>
@jesperpedersen jesperpedersen self-requested a review January 18, 2025 05:51
@jesperpedersen jesperpedersen added the bug Something isn't working label Jan 18, 2025
@jesperpedersen
Copy link
Collaborator

Merged.

Thanks for your contribution !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants