News for hackers. Stuff that matters.
Re:Retrofitting spatial safety to lines of C++ by dataflow on Saturday November 16, 2024 @03:48AM (#42155332)
It's a great question (_LIBCPP_DEBUG was already a thing in libc++), and AFAIK the answer is supposedly "it used to be too costly to enable these in production with libc++, and it no longer is." I have no first-hand insight as to how accurate this perception is.
Re:Retrofitting spatial safety to lines of C++ by alpire on Saturday November 16, 2024 @11:58AM (#42157412)
That's exactly right. We've had extra hardening enabled in tests, and that does catch many issues. But tests can't exercise every potential out-of-bounds issue, which is why enabling it prod enabled us to find & fix additional issues.