Re:Str: Yet another string library for C language
by saagarjha on Thursday November 26, 2020 @12:24AM
(#25217129)
It’s getting memccpy, which is an extremely important function for the creation of a performant, safe string copying method.
[ Parent
| on HN ]
Re:Str: Yet another string library for C language
by pjmlp on Thursday November 26, 2020 @02:32AM
(#25217755)
It is impossible to be safe if size is a function argument that cannot be validated without hardware support.
Re:Str: Yet another string library for C language
by saagarjha on Thursday November 26, 2020 @02:35AM
(#25217783)
My definition of safety likely differs from yours.
Re:Str: Yet another string library for C language
by pjmlp on Thursday November 26, 2020 @04:47AM
(#25218457)
My definition of safety means having a size greater than the actual string doesn't turn an innocent looking call into a CVE database entry.
I bet the security industry agrees with my definition.