• TechNom (nobody)@programming.dev
    link
    fedilink
    English
    arrow-up
    0
    ·
    4 months ago

    So you can’t get a Rust program to segfault without trying really hard. I haven’t observed a single segfault in the normal Rust code I wrote in the past 8 years.

    • apt_install_coffee@lemmy.ml
      link
      fedilink
      arrow-up
      0
      ·
      4 months ago

      The code used in cve-rs is not that complicated, and it’s not out of the realm of possibility that somebody would use lifetimes like this if they had just enough knowledge to be dangerous.

      I’m as much a rust evangelist as the next guy, but part of having excellent guard rails is loudly pointing out subtle breakages that can cause hard to diagnose issues.