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

Fix read return value check in buffer_release_thread #160

Merged
merged 1 commit into from
Jan 14, 2025

Conversation

al42and
Copy link
Contributor

@al42and al42and commented Jan 11, 2025

Previously, we were reading 0 bytes and were passing uninitialized value to switch. Likely, not much changed in practice (all codepaths were just terminating the thread, regardless of the success of the read), but now we don't trigger undefined behavior.

Previously, we were reading 0 bytes and were passing uninitiaized value
to `switch`. Likely, not much changed in practice (all codepaths
were just terminating the thread, regardless of the success of the
`read`), but now we don't trigger undefined behavior.
Copy link
Collaborator

@amshafer amshafer left a comment

Choose a reason for hiding this comment

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

Thanks for finding this, looks good to me.

@kbrenneman kbrenneman merged commit 26ba0e3 into NVIDIA:master Jan 14, 2025
4 checks passed
@al42and al42and deleted the fix-buffer_release_thread-read branch January 14, 2025 22:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants