Login
You're viewing the functional.cafe public feed.
  • Nov 16, 2026, 11:26 PM

    Out of the 81 vulnerabilities we have confirmed in #curl so far during 2026, 14 were the result of mistakes that most likely would have been avoided had we used a memory-safe language such as rust. That's 17.3%

    💬 7🔄 11⭐ 0

Replies

  • 💬 1🔄 0⭐ 0
  • 💬 1🔄 0⭐ 0
  • 💬 0🔄 0⭐ 0
  • Nov 16, 2026, 11:56 PM

    @bagder How many of the not directly memory related were caused by correct memory management in C making the code paths that complex that the actual, non memory related bug slipped in, simply because the person writing the code lost track? How many would have been avoided if curl would have opted for more expressive, error detailing function signatures that are convenient in other programming languages, but inconvenient in plain C?

    💬 1🔄 0⭐ 0
  • 💬 1🔄 0⭐ 0
  • Nov 17, 2026, 2:15 AM

    @bagder You didn't list the 14 vulnerabilities you consider C issues, so I have to guess. Also only 63 of the 81 vulnerabilities are published yet, AFAIK.

    I've found 3805, 8925, 9080, 10536, 18924, 80229, 92388, 92392 and 107928 to be classified as C errors already.

    Your judgement on 11586 not being C seems implausibel to me: In other languages you wouldn't manipulate private date of objects, and the manipulation API of a restricted high-level buffer would check boundaries.

    💬 0🔄 0⭐ 0
  • 💬 0🔄 0⭐ 0
  • Nov 17, 2026, 12:19 AM

    @bagder

    I've been writing software since 1980 or so and have seen lots of stuff come and go.

    I cannot help but wonder what new class of bug would be introduced by migrating to a different language?

    Right now, the community has lots of knowledge and experience with the current codebase, probably none more than you, what part of that will you lose during any rewrite and how many new bugs will be introduced?

    💬 0🔄 1⭐ 0
  • 💬 0🔄 0⭐ 0
  • Jack WinesnoIOBeforeBedtime@mastodon.online
    Nov 17, 2026, 5:19 AM

    @bagder I'm curious, do you know of anyone fuzzing (maybe the wrong term) curl built with Fil-C? In that case, you wouldn't have to look for different output, just for a crash.

    💬 0🔄 0⭐ 0
  • 💬 0🔄 0⭐ 0