Closed
Description
openedon May 15, 2024
Description
In the test_size_demi_sgarray_t()
unit test function, we are relying on the compiler to compute the size of SockAddr
.
This is against the idea of this test: ensuring that the structure matches a size that we want. This property is important to avoid UB when crossing language boundaries.
Code Snippets
demikernel/src/rust/runtime/types/memory.rs
Lines 71 to 85 in ffaf885
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment