logoalt Hacker News

cxrtoday at 4:00 AM2 repliesview on HN

Aside from memory safety, which is solved by using a compiler that just doesn't allow unsafe memory operations (so not GCC or Clang upstream), which CVEs specifically would have been ameliorated by a parser written in Rust instead of C?


Replies

evikstoday at 5:29 AM

Aside from the fact that it's not solved by using an alternative compiler, why would you put the core advantage aside?

show 1 reply
duskwufftoday at 5:06 AM

> Aside from memory safety, which is solved by using a compiler that just doesn't allow unsafe memory operations

I don't see how that's possible without turning the language into something that isn't C, either by adding significant new functionality (e.g. fat pointers) or subtracting enough functionality that it's a much less capable language (e.g. disallowing dynamic memory allocation).

show 1 reply