onlinepersona@programming.dev to Programmer Humor@programming.devEnglish · 3 months ago"No way to prevent this" say users of only language where this regularly happens - 07/01/2024xeiaso.netexternal-linkmessage-square10fedilinkarrow-up11arrow-down10file-text
arrow-up11arrow-down1external-link"No way to prevent this" say users of only language where this regularly happens - 07/01/2024xeiaso.netonlinepersona@programming.dev to Programmer Humor@programming.devEnglish · 3 months agomessage-square10fedilinkfile-text
minus-square0x0@programming.devlinkfedilinkarrow-up0·3 months agoThe “C is bad trope” is getting way too old. I’m surprised the author didn’t plug Rust. the only programming language in the world where these vulnerabilities regularly happen Maybe because it’s one of the most widely used languages in the world…
minus-squareBatmanAoD@programming.devlinkfedilinkarrow-up0·3 months agoThe trope will be “old” once the mainstream view is no longer that C-style memory management is “good enough”. That said, this particular vulnerability was primarily due to how signals work, which I understand to be kind of unavoidably terrible in any language.
minus-square5C5C5C@programming.devlinkfedilinkarrow-up0·3 months agoA better language wouldn’t have any need to use POSIX signals in this way.
minus-squareBatmanAoD@programming.devlinkfedilinkarrow-up0·3 months agoI’m not totally clear on why signals are used here in the first place. Arguably most C code doesn’t “need” to use signals in complex ways, either.
The “C is bad trope” is getting way too old. I’m surprised the author didn’t plug Rust.
Maybe because it’s one of the most widely used languages in the world…
The trope will be “old” once the mainstream view is no longer that C-style memory management is “good enough”.
That said, this particular vulnerability was primarily due to how signals work, which I understand to be kind of unavoidably terrible in any language.
A better language wouldn’t have any need to use POSIX signals in this way.
I’m not totally clear on why signals are used here in the first place. Arguably most C code doesn’t “need” to use signals in complex ways, either.