You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
error[E0793]: reference to packed field is unaligned
--> /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/ntapi-0.3.7/src/ntexapi.rs:2783:52
|
2783 | *tick_count.QuadPart_mut() = read_volatile(&(*USER_SHARED_DATA).u.TickCountQuad);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: fields of packed structs are not properly aligned, and creating a misaligned reference is undefined behavior (even if that reference is never dereferenced)
= help: copy the field contents to a local variable, or replace the reference with a raw pointer and use read_unaligned/write_unaligned (loads and stores via *p must be properly aligned even when using raw pointers)
error[E0793]: reference to packed field is unaligned
--> /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/ntapi-0.3.7/src/ntexapi.rs:2807:25
|
2807 | ((read_volatile(&(*USER_SHARED_DATA).u.TickCountQuad)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: fields of packed structs are not properly aligned, and creating a misaligned reference is undefined behavior (even if that reference is never dereferenced)
= help: copy the field contents to a local variable, or replace the reference with a raw pointer and use read_unaligned/write_unaligned (loads and stores via *p must be properly aligned even when using raw pointers)
For more information about this error, try rustc --explain E0793.
error: could not compile ntapi due to 2 previous errors
The text was updated successfully, but these errors were encountered:
This appears to be related to ntapi. I have recently updated the versions of dependencies on the main branch. If you're building from source, I would git pull and build again to see if there's any difference.
This appears to be related to ntapi. I have recently updated the versions of dependencies on the main branch. If you're building from source, I would git pull and build again to see if there's any difference.
error[E0793]: reference to packed field is unaligned
--> /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/ntapi-0.3.7/src/ntexapi.rs:2783:52
|
2783 | *tick_count.QuadPart_mut() = read_volatile(&(*USER_SHARED_DATA).u.TickCountQuad);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: fields of packed structs are not properly aligned, and creating a misaligned reference is undefined behavior (even if that reference is never dereferenced)
= help: copy the field contents to a local variable, or replace the reference with a raw pointer and use
read_unaligned
/write_unaligned
(loads and stores via*p
must be properly aligned even when using raw pointers)error[E0793]: reference to packed field is unaligned
--> /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/ntapi-0.3.7/src/ntexapi.rs:2807:25
|
2807 | ((read_volatile(&(*USER_SHARED_DATA).u.TickCountQuad)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: fields of packed structs are not properly aligned, and creating a misaligned reference is undefined behavior (even if that reference is never dereferenced)
= help: copy the field contents to a local variable, or replace the reference with a raw pointer and use
read_unaligned
/write_unaligned
(loads and stores via*p
must be properly aligned even when using raw pointers)For more information about this error, try
rustc --explain E0793
.error: could not compile
ntapi
due to 2 previous errorsThe text was updated successfully, but these errors were encountered: