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

examples/hiperfifo.c: check event_initialized before delete #6876

Closed
wants to merge 1 commit into from
Closed

examples/hiperfifo.c: check event_initialized before delete #6876

wants to merge 1 commit into from

Conversation

@jochembroekhoff
Copy link
Contributor

@jochembroekhoff jochembroekhoff commented Apr 9, 2021

If event_del is called with the event struct (still) zeroed out, a segmentation fault may occur.
event_initialized checks whether the event struct is nonzero.

If event_del is called with the event struct (still) zeroed out, a segmentation fault may occur.
event_initialized checks whether the event struct is nonzero.
@bagder
bagder approved these changes Apr 9, 2021
Copy link
Member

@bagder bagder left a comment

Seems fair!

@bagder
Copy link
Member

@bagder bagder commented Apr 9, 2021

Thanks!

@bagder bagder closed this in 255bdfe Apr 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

2 participants