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

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.
Copy link
Member

@bagder bagder left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems fair!

@bagder
Copy link
Member

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
Development

Successfully merging this pull request may close these issues.

2 participants