logoalt Hacker News

jongjong • today at 2:49 PM • 1 reply • view on HN

Damn. I've been saying that writing correct software is almost impossible.

I suspect it's a matter of time before all mainstream blockchain projects are cracked. Many of those projects are hundreds of thousands of lines of code. There's no way they don't have vulnerabilities given that AI is now uncovering so many vulnerabilities in such high exposure projects.

I was a code minimalist before, now I'm a radical minimalist. We need to get the lines of code down to the absolute minimum.

Attack surfaces need to be clearly defined, enumerable and testable under all possible conditions.


Replies

wat10000 • today at 2:55 PM

That's why so much emphasis is now placed on trying to make incorrect software either fail to build or fail at runtime in a way that doesn't let people take over the computer. C makes it extremely likely that a random correctness issue will be a security issue. Newer languages much less so. They're far from perfect but it's a lot better.

➕ show 1 reply