News for hackers. Stuff that matters.
Re:Strlcpy and strlcat added to glibc 2.38 by IshKebab on Tuesday July 18, 2023 @03:26AM (#36769034)
We can't entirely because of the C ABI but apart from that it's as simple as not using C which is not too difficult. C is not a popular language these days.
Re:Strlcpy and strlcat added to glibc 2.38 by masklinn on Tuesday July 18, 2023 @04:08AM (#36769309)
“Apart from that” does a lot of work here: FFI layers generally talk nul-terminated string unless otherwise specified, so do syscalls.
Re:Strlcpy and strlcat added to glibc 2.38 by IshKebab on Tuesday July 18, 2023 @12:55PM (#36775584)
Yes that's what I said. You can generally wrap those layers so you aren't actually manipulating null terminated strings; just converting to/from them which is not too bad.
Re:Strlcpy and strlcat added to glibc 2.38 by chasil on Tuesday July 18, 2023 @05:31AM (#36769863)
Well, you will need to give up SQLite if you really feel this way, and reimplement it in a safe language.

It will also be some time before Rust has substantial penetration into Linux; you might need to find a kernel that implements the POSIX interfaces safely.

These will not be easy problems to solve.

Re:Strlcpy and strlcat added to glibc 2.38 by saagarjha on Tuesday July 18, 2023 @05:48AM (#36769976)
Yeah, no…
Re:Strlcpy and strlcat added to glibc 2.38 by torstenvl on Tuesday July 18, 2023 @08:42AM (#36771275)
I don't know what you're relying on for the idea that C is not a popular language, but it is extremely popular.