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

nvapi-gpu: Validate version before accessing struct fields #153

Merged
merged 1 commit into from
Jan 20, 2024

Conversation

ishitatsuyuki
Copy link
Contributor

The version needs to be checked before accessing any fields from the struct.

The tests for incompatible struct versions left the pOSAdapterId uninitialized, which caused flakes on MSVC. This fixes it.

The version needs to be checked before accessing any fields from the
struct.

The tests for incompatible struct versions left the pOSAdapterId
uninitialized, which caused flakes on MSVC. This fixes it.
@jp7677 jp7677 merged commit cf00615 into jp7677:master Jan 20, 2024
2 checks passed
@jp7677
Copy link
Owner

jp7677 commented Jan 20, 2024

Cool, thanks a lot!

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.

2 participants