this post was submitted on 15 Nov 2026
47 points (100.0% liked)

Rust

8383 readers
8 users here now

Welcome to the Rust community! This is a place to discuss about the Rust programming language.

Wormhole

!performance@programming.dev

Credits

  • The icon is a modified version of the official rust logo (changing the colors to a gradient and black background)

founded 3 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] Kissaki@programming.dev 2 points 1 week ago (2 children)

Microsoft’s FORGE Lab found several memory safety issues in Rust’s standard library (std and core), including cases where code written entirely in safe Rust can trigger undefined behavior.

[–] onlinepersona@programming.dev 1 points 1 week ago

much of the standard library relies on unsafe code underneath its safe APIs

It wraps unsafe code (probably C), which is where the problems come from.

[–] ImgurRefugee114@reddthat.com 1 points 1 week ago* (last edited 1 week ago) (1 children)

Bit of a misnomer, since I don't think Rust actually has "defined behavior" in the technical sense...

or has it actually gotten a formal specification since I last looked?

[–] TehPers@beehaw.org 3 points 1 week ago (1 children)
[–] ImgurRefugee114@reddthat.com 2 points 1 week ago* (last edited 1 week ago) (1 children)

Not quite a standard, but fair enough for colloquial usage. A bit funny that they have to explicitly define undefined.

[–] TehPers@beehaw.org 6 points 1 week ago (2 children)

Yeah, they don't define what's "defined" behavior due to a lack of a formal standard, but there are some things they specifically want to defend against.

There does exist a formal standard (and certified toolchain), but it's not official as far as I'm aware.

[–] BB_C@programming.dev 4 points 1 week ago (1 children)
[–] TehPers@beehaw.org 2 points 1 week ago

Hey this is great news! I'm surprised I hadn't seen this before.

[–] ImgurRefugee114@reddthat.com 2 points 1 week ago

Oh, I hadn't heard of them before. Interesting. Thank you.