4 ms·
checked array bounds is memory safety.
by throwawaymaths 1y ago
checked array bounds is memory safety.
- lyu07282 1y agoRuntime bounds checking, but only in Debug/ReleaseSafe builds, besides there are many other types of memory safety issues left unaddressed.
- throwawaymaths 1y ago> Runtime bounds checking Compile time slice bounds checking is generally not a thing, since the length is not known until runtime. Its still safe. > but only in Debug/ReleaseSafe builds So, the default build modes? Istg zig should just eliminate releasefast and releasesmall and force you to opt in on a function by function basis.