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.
[ Parent
| on HN ]
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.
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.