Alien Top
  • Communities
  • Create Post
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
onlinepersona@programming.dev to Rust@programming.devEnglish · 11 小时前

Memory Safety Bugs in Rust Standard Library

forge-blog.github.io

external-link
message-square
12
link
fedilink
38
external-link

Memory Safety Bugs in Rust Standard Library

forge-blog.github.io

onlinepersona@programming.dev to Rust@programming.devEnglish · 11 小时前
message-square
12
link
fedilink
Knowing What You Trust: Three patterns behind memory safety bugs we found in Rust's standard library, and why Rust's safety model still matters even though it isn't perfect.

cross-posted from: https://lemmy.bestiver.se/post/1442424

Comments

  • Kissaki@programming.dev
    link
    fedilink
    English
    arrow-up
    2
    ·
    6 小时前

    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
      link
      fedilink
      arrow-up
      1
      ·
      5 小时前

      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
        link
        fedilink
        English
        arrow-up
        1
        ·
        5 小时前

        From The Rust Reference

        • ImgurRefugee114@reddthat.com
          link
          fedilink
          arrow-up
          1
          ·
          5 小时前

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

          • TehPers@beehaw.org
            link
            fedilink
            English
            arrow-up
            4
            ·
            4 小时前

            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
              link
              fedilink
              arrow-up
              3
              arrow-down
              1
              ·
              4 小时前

              but it’s not official as far as I’m aware.

              https://blog.rust-lang.org/2025/03/26/adopting-the-fls/

              https://rust-lang.github.io/fls/

              • TehPers@beehaw.org
                link
                fedilink
                English
                arrow-up
                2
                ·
                4 小时前

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

            • ImgurRefugee114@reddthat.com
              link
              fedilink
              arrow-up
              2
              ·
              4 小时前

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

Rust@programming.dev

rust@programming.dev

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !rust@programming.dev

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)
Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 83 users / day
  • 137 users / week
  • 239 users / month
  • 1.17K users / 6 months
  • 22 local subscribers
  • 8.37K subscribers
  • 1.11K Posts
  • 4.13K Comments
  • Modlog
  • mods:
  • snowe@programming.dev
  • Ategon@programming.dev
  • EdTheLegendary@programming.dev
  • torcherist@programming.dev
  • BE: 0.19.17
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org