r/rust • • 2d ago

🗞️ news Anthropic proves rust is NOT memory safe

https://www.anthropic.com/research/finding-logic-bugs
0 Upvotes

18 comments sorted by

70

u/Gold-Produce9591 2d ago

I think the point is that it is in theory memory safe, you just have to wait for bugs in the compiler to be fixed

57

u/Floppie7th 2d ago

Yeah, "unsoundness bugs exist" is not news. Finding and reporting new ones certainly is valuable, but it's not some big gotcha.

11

u/insanitybit2 2d ago

It has always been "in theory it's memory safe". Anywhere it is not memory safe is considered a bug and is tracked in the issue tracker.

1

u/toastyMallow18 2d ago

yeah theory's great until you're the one debugging the compiler itself lol

36

u/commenterzero 2d ago

That's not what this article says at all

18

u/commenterzero 2d ago

"We designed a set of techniques that use LLMs for logic bug discovery, and then tested their effectiveness on, first, a set of historical logic bugs, and second, on 0-day discovery. We constructed a benchmark of 21 logic bugs across SQLite (9), zstd (3), brotli (1), and image-png (8) disclosed between 2016 and 2026."

2

u/somatt 2d ago

Ctrl + F "Logic bugs in the Rust compiler"

-1

u/somatt 2d ago

Read further the zero day is rust

23

u/Oxytokin 2d ago

Posting an article you didn't read about things you don't understand is definitely a choice.

Computer hardware is inherently and unavoidably unsafe. The point of Rust is to abstract away that unsafety. Of course there will always be bugs that allow weird code you'd probably never actually write in real life to produce memory unsafety.

26

u/Yamcha2020 2d ago

This company just be saying stuff

-7

u/Droi 2d ago

Yea, stuff like proving the Riemann hypothesis..

26

u/static_lifetime 2d ago

clickbait. they just found some bugs in the compiler.

20

u/Trard 2d ago

There were many odd bugs with rust memory safety before antropic, not a big deal

9

u/da_supreme_patriarch 2d ago

Breaking: Anthropic proves that some farten sometimes poopen, but poopen do not farten

5

u/noonetoldmeismelled 2d ago

Anthropic blog posts suck

4

u/insanitybit2 2d ago

l-unsound has always been a thing. Cool that they found new cases but this is not news.

3

u/Red_BW 2d ago

Anthropic desperate to say anything to make the stock go up.

2

u/noop_noob 2d ago

I believe that this is the list of bugs anthropic found. https://github.com/rust-lang/rust/issues?q=is%3Aissue+involves%3Acarlini