this post was submitted on 17 Sep 2024
55 points (100.0% liked)

technology

23897 readers
197 users here now

On the road to fully automated luxury gay space communism.

Spreading Linux propaganda since 2020

Rules:

founded 5 years ago
MODERATORS
 

it's joever for Cniles (I am one of them 😔)

you are viewing a single comment's thread
view the rest of the comments
[–] bumpusoot@hexbear.net 5 points 10 months ago* (last edited 10 months ago) (1 children)

Instead of mass translating C code in some insane ready-to-ruin codebases project, why not just.. make a compiler that addresses the vulnerabilities?

[–] Speaker@hexbear.net 8 points 10 months ago (1 children)

They did, it's called rustc. A compliant C compiler cannot escape giving a programmer unfettered access to manipulate memory, so the problem is not in the compiler. There are safe subsets of C that don't exhibit these problems, but a compiler that only supports such a subset is no longer a C compiler.

[–] bumpusoot@hexbear.net 1 points 10 months ago

Thanks, guess that makes sense, kinda.