News for hackers. Stuff that matters.
Re:Cap'n'Proto remote vuln: pointer overflow check optimized... by nickpsecurity on Friday April 21, 2017 @11:23AM (#14166352)
It's more like SPARK Ada. It's a limited language designed for easy analysis by an automated prover. You can do preconditions, postconditions, and invariants in it. It was used in ExpressOS for mobile and I think IronClad Apps, too.
Re:Cap'n'Proto remote vuln: pointer overflow check optimized... by bluejekyll on Friday April 21, 2017 @11:27AM (#14166391)
Are those pre and post conditions always executed? Or are they optional assertions that can be enabled/disabled?
Re:Cap'n'Proto remote vuln: pointer overflow check optimized... by neilparikh on Friday April 21, 2017 @11:44AM (#14166555)
If I'm reading the description correctly, the pre and post conditions are analyzed statically during compiling, and not added to the output code. So it's a similar idea to type checking, where the program won't even compile until the versifier is sure your code meets the conditions.