Closed
Description
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