3 ms·
I don't think we do either of those errors. Obviously if the C caller does weird stuff, all bets are off, but we don't mutate through `&T`s or not initialize m
by kkysen 2y ago
I don't think we do either of those errors. Obviously if the C caller does weird stuff, all bets are off, but we don't mutate through `&T`s or not initialize memory. `MaybeUninit` is only used in a few isolated and carefully checked places. Most of the rest of the buffers are zero initialized, which is usually done for free by the kernel.
- Vecr 2y agoI'm thinking more about the differences between how C and Rust uses noalias, but I can't find an example of it going wrong in real translated code currently.