Skip to content

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

Closed
jochembroekhoff wants to merge 1 commit into
curl:masterfrom
jochembroekhoff:patch-1
Closed

jochembroekhoff wants to merge 1 commit into
curl:masterfrom
jochembroekhoff:patch-1

Conversation

@jochembroekhoff

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

@bagder bagder left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Seems fair!

@bagder

bagder commented Apr 9, 2021

Copy link
Copy Markdown
Member

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