Remix.run Logo
▲ kvuj 4 hours ago

Perhaps I'm just used to having programmed in C# professionally for a little bit, but these sorts of APIs where you have to do a calculation to determine the destination buffer size make me feel like a caveman. A minuscule typo and you get a CVE like this.

I know, I know, C is low level and high performance, but surely in the year of our lord 2026, we could have come out with something simpler.

Horrendous is a strong word, you're right.

▲pjmlp 18 minutes ago | parent | next [-]

Not even that is usable as excuse, only those that never tried out the systems programming languages that either predated C, or where equally developed during the 1970's outside Bell Labs and UNIX ecosystem.

You could have come with something simpler in PL/I.

▲uecker 2 hours ago | parent | prev | next [-]

One can abstract buffer handling away in C just fine, eliminating all those problems. I don't know why programmers insist on open-coding low-level buffer management.

▲eptcyka an hour ago | parent [-]

Yes, of course, this isn’t C, this is just another case of people writing C wrong.

▲JSR_FDED 2 hours ago | parent | prev [-]

You should be comparing with assembly language, not C#.