-
-
Notifications
You must be signed in to change notification settings - Fork 313
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
UB creating a reference with an under-aligned address #1009
Comments
It looks like there's more UB here, set_len is used before calling NtQuerySystemInformation or confirming the ntstatus value so can be pointing at uninitialized memory and the docs require "The elements at If ntstatus is an error value that isn't STATUS_INFO_LENGTH_MISMATCH the error is logged but ignored and then uninitialized memory is accessed. |
Thanks for reporting the bug and for the extra details! PRs are very welcome, otherwise I'll get to it in a few days. |
I released 0.29.5 with the fix from #1010. I'll close this issue for the time being but if the problem is still there, please re-open it. |
Describe the bug
x86_64-pc-windows-gnu
sysinfo-0.29.4
more details starting here:
retep998/winapi-rs#1043 (comment)
The text was updated successfully, but these errors were encountered: