3 ms·
Fil-C's understanding of memory safety is not "its own" idiosyncratic made up definition. Memory safety in the whole tradition that includes CHERI etc is define
by mbrock 2mo ago
Fil-C's understanding of memory safety is not "its own" idiosyncratic made up definition. Memory safety in the whole tradition that includes CHERI etc is defined in terms of objects and allocations. In C structs and arrays are not object boundaries. So CHERI will have the same semantics as Fil-C in your struct example, unless you enable a compatibility-breaking mode, which Fil-C could very plausibly acquire too, at the same cost of breaking semantic compatibility with the C/C++ semantics.
- steveklabnik 2mo agoC absolutely has struct, array, and subobject boundaries. The example is already undefined behavior in C.
- mbrock 2mo agoIn the ISO standard, yeah, but that's not how C actually works.