36 pointsby xena4 hours ago6 comments
  • cesaref4 hours ago
    'the only language where 90% of the world's memory safety vulnerabilities have occurred in the last 50 years'

    Let's assume this is true, and ignoring the fact that it's not possible for more than 1 language to have >50% of the vulnerabilities, we are left pondering what proportion of the worlds software is written in C. If it's >90%, then C is safer than average :)

    • luc0x613 hours ago
      Assuming that C is the most successful language of its generation, among those letting purposely do anything with memory access, well, it's unfortunately possible to have it do anything. It's like saying with surprise that a harpoon gun may even kill people.

      Then successively implemented languages may have improved things (or they would have been useless efforts). When a single one of them will reach half the popularity of C (without running in any "unsafe" mode) it will be another great success.

      The original article was clearly just a polemical overkill by a maniac of another language. Or by a fisherman who kills fishes slapping them.

  • robmccoll4 hours ago
    • K0nserv4 hours ago
      With the exception of the C++ case, these all seem to result in DDOS which, while bad, are barely security issues. It speaks to the difference between C and these other languages (Go, Python, Rust).
    • hn92726819an hour ago
      A crash is always better than OOB memory reads. All of these are crashes except the C++ one. The rust one is from 3 years ago and listed twice.

      This article is about the frequency of these bugs, not their existence. C and C++ are the only languages where this happens regularly

  • inanutshellus4 hours ago
    OK how is this on the homepage? The title means nothing without clicking the link and... I generally refuse to click on clickbait just to see whether there's a hook in it.
    • dgacmu4 hours ago
      It's a pun on The Onion's repeating headline about gun deaths in the US ("only country where...") [1] . I thought it was pretty clear before I clicked it it was going to be talking about security vulnerabilities in C, but I live close to that world so I might be a biased audience.

      [1] https://en.wikipedia.org/wiki/%27No_Way_to_Prevent_This,%27_...

      • inanutshellus2 hours ago
        Wow, thanks! Somehow I've missed the 39 times the Onion has carried that headline. I guess I'm part of today's 10,000.
    • sheauwn4 hours ago
      My guess is its almost exclusively due to the reference its making to the similarly titled Onion article. The actual article linked is basically a cut and paste replacing gun violence with memory vulnerabilities.
    • freehorse4 hours ago
      Clicking on the link does not help either save the rightful first impression.
  • casper144 hours ago
    Just use JavaScript and you should be fine!
  • bewareofscams4 hours ago
    Why is it flagged?
    • freehorse3 hours ago
      Because it is shitposting maybe (that's why I flagged it). Shitposting (esp the lowest quality kind) does not seem to be leading to interesting discussions.
  • preommr4 hours ago
    wtf is this garbage?

    I don't think the average C dev isn't aware that the language has pitfalls, especially around memory management.

    Also a lot of these problems are because C is used everywhere and has been for so long. Not because people are blind to it's problems.

    • K0nserv3 hours ago
      The critique is more that the average, or at least loud, C programmer is resistant to fixing these problems (for example via Rust) and often arrogantly claim it's just a skill issue.