News for hackers. Stuff that matters.
Re:Chromium project finds that 70% of security defects are m... by saagarjha on Sunday May 24, 2020 @01:18AM (#23289321)
I have long imagined a much weaker form your desire: a C++ runtime that detects all undefined behavior in the code that executes. Note that it is nowhere near the goal we want, which is that the program has no memory safety issues at all. Even though there are many static and dynamic analysis tools that exist today, with runtime penalties ranging from almost zero to extremely high overhead, I have yet to see a system that can do this. So I would guess that no, this is not possible. There might be a magic set of idioms, but my guess is that finding that set is going to be so impractical that we will never do it, or someone is going to write a proof that that set is empty and we will just go on living our lives slightly more depressed at the state of computing.
Re:Chromium project finds that 70% of security defects are m... by pnako on Sunday May 24, 2020 @03:54AM (#23289935)
UBSan does some of what you are asking for.
Re:Chromium project finds that 70% of security defects are m... by saagarjha on Sunday May 24, 2020 @04:35AM (#23290114)
Yeah, there’s a couple of them, but none of them seem to catch everything :(