4 ms·
> I would have commited unspeakable acts just to have a compiler switch to enable bounds checking -fsanitize=bounds in GCC6 (probably recent Clang also). Runti
by PeCaN 10y ago
> I would have commited unspeakable acts just to have a compiler switch to enable bounds checking
-fsanitize=bounds in GCC6 (probably recent Clang also). Runtime overhead isn't even that high.
Lately I've been trying to use Ada for things I would use C for—it's quite a nice language that gives you all the power of C but safe by default (i.e. you generally have to try to shoot yourself in the foot). Also concurrency in Ada doesn't consist of “sacrifice kittens to Cthulhu and pray that it works”, which is a nice feature.
- ashitlerferad 10y agoI'm not sure about the bounds sanitiser, but the address sanitiser is not meant to be used as a hardening mechanism and allows trivial exploits: http://seclists.org/oss-sec/2016/q1/363 http://seclists.org/oss-sec/2016/q1/363