2 ms·
Why does it need to be done as an extension? Can't you use fat pointers and crash the program if the bounds check fails? Since it's undefined behavior, this sho
by ummonk 4y ago
Why does it need to be done as an extension? Can't you use fat pointers and crash the program if the bounds check fails? Since it's undefined behavior, this should be compatible with the C specification.
- rwmj 4y agoI'm a bit confused by what you're proposing, but I will say that the problem with fat pointers is they are incompatible with existing compiled libraries, meaning you usually need to recompile absolutely everything (including libc). There are only limited circumstances where this is acceptable (or possible).