logoalt Hacker News

raverbashingtoday at 9:07 AM1 replyview on HN

Yeah the C committee is wrong here


Replies

ueckertoday at 9:38 AM

I don't see why?

The C committee gave you memset_explicit. But note that there is still no guarantee that information can not leak. This is generally a very hard problem as information can leak in many different ways as it may have been copied by the compiler. Fully memory safe languages (so "Safe Rust" but not necessarily real-word Rust) would offer a bit more protection by default, but then there are still side-channel issues.

show 1 reply