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

Rust

8383 readers
6 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
top 14 comments
sorted by: hot top controversial new old
[–] onlinepersona@programming.dev 29 points 1 week ago (1 children)

Unsurprisingly, the issues come from wrapped, unsafe code.

[–] Kissaki@programming.dev 13 points 1 week ago (1 children)

… in the stdlib, though, so safe code can trigger it.

[–] The_Decryptor@aussie.zone 2 points 1 week ago (1 children)

Doesn't matter where it comes from, if the unsafe code isn't right it'll cause issues no matter what calls it.

[–] Kissaki@programming.dev 0 points 1 week ago

Yes, that was my point, that is what I said.

[–] BB_C@programming.dev 9 points 1 week ago

M$ ad talk now comes with LLM word diarrhea. Great!

Nothing special is discovered or revealed here IMHO. The very first issue was independently found by security scans that don't come with a marketing budget. The ad itself admits other issues also have been independently reported by others.

The str/pattern stuff validates the position that unicode-validation at construction then keeping everything byte-based wasn't a good choice. Explicit byte-view and char-view APIs would have been better.

Otherwise, no harm from throwing free tokens at the rust compiler+std. They can still shove their now LLM-generated word diarrhea ad posts where they belong.

[–] 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.

[–] 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.

[–] 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.