News for hackers. Stuff that matters.
Re:This shouldn't have happened: A vulnerability postmortem by pcwalton on Wednesday December 01, 2021 @09:31PM (#29411825)
Zig is, however, not memory safe, which outweighs all of those benefits in this context.
Re:This shouldn't have happened: A vulnerability postmortem by IggleSniggle on Thursday December 02, 2021 @02:31PM (#29421241)
It can be memory safe. It's up to you to choose memory safety or not. That's a piece of what I was getting at. Unless I misunderstand something. I've only dabbled with Zig.
Re:This shouldn't have happened: A vulnerability postmortem by pcwalton on Friday December 03, 2021 @03:29PM (#29434943)
I'm not aware of any memory safety that works in Zig, other than maybe Boehm GC. The GeneralPurposeAllocator quarantines memory forever, which is too wasteful to work in practice as one allocation is sufficient to keep an entire 4kB page alive.