• LaggyKar@programming.dev
    link
    fedilink
    arrow-up
    4
    ·
    2 hours ago

    RCE from integer overflow (not possible by default in Rust

    It is possible. Rust will check for overflow and panic in debug builds, but will silently wrap integers in release builds.

    • TheTechnician27@lemmy.world
      link
      fedilink
      English
      arrow-up
      1
      ·
      edit-2
      42 minutes ago

      Yeah, you’re right. I was thinking of a combination of Rust’s debug mode, the fact it won’t compile if it detects a static under/overflow, and Swift’s default producing a runtime error on integer under/overflow. Corrected; I apologize.