3 ms·
I once proposed to extend that to allow array size checking.[1] The trouble with C static array sizes is that the compiler doesn't do much of anything with the
by Animats 8y ago
I once proposed to extend that to allow array size checking.[1]
The trouble with C static array sizes is that the compiler doesn't do much of anything with the information.
[1] http://www.animats.com/papers/languages/safearraysforc43.pdf http://www.animats.com/papers/languages/safearraysforc43.pdf
- pjmlp 8y agoHardware solutions like Solaris with SPARC ADI are the only workable way, if ISO C is not willing to actually change the language. However the other CPU vendors and OS developers don't seem to be in a hurry to provide similar security support.
- caf 8y agoThere's also Intel MPX: https://intel-mpx.github.io/design/ https://intel-mpx.github.io/design/
- pjmlp 8y agoIntel has deprecated MPX and will remove it from newer CPU generations. Likewise GCC 9 will be dropping support. Only ARM and Google (via Android) are currently serious about such kind of feature support, but it will still take a couple of years until it gets widespread support.