News for hackers. Stuff that matters.
Re:Strlcpy and strlcat added to glibc 2.38 by wyldfire on Tuesday July 18, 2023 @01:19AM (#36768115)
So was Drepper wrong? Did he just get worn down? Or did it not involve him at all?
Re:Strlcpy and strlcat added to glibc 2.38 by sanxiyn on Tuesday July 18, 2023 @01:35AM (#36768239)
I think the fact that it will be added to POSIX was decisive.
Re:Strlcpy and strlcat added to glibc 2.38 by masklinn on Tuesday July 18, 2023 @02:38AM (#36768691)
I understand Drepper pretty much considers string.h a lost cause, and I can’t fault him for that.

It’s rather that POSIX decided to add the strl functions, so adding them (and verifying their semantics) is a necessity.

Re:Strlcpy and strlcat added to glibc 2.38 by silon42 on Tuesday July 18, 2023 @03:39AM (#36769109)
A purist would support removing strcpy, etc... but that wouldn't go well, so adding an improvement is acceptable.
Re:Strlcpy and strlcat added to glibc 2.38 by masklinn on Tuesday July 18, 2023 @04:06AM (#36769302)
> A purist would support removing strcpy, etc...

That is very much Drepper’s position:

> Correct string handling means that you always know how long your strings are and therefore you can you memcpy (instead of strcpy).

> Beside, those who are using strcat or variants deserved to be punished.

Re:Strlcpy and strlcat added to glibc 2.38 by Gibbon1 on Tuesday July 18, 2023 @04:59AM (#36769665)
They should have added a warning for strcpy 20 years ago and shipped the compiler with it default enabled.
Re:Strlcpy and strlcat added to glibc 2.38 by kzrdude on Tuesday July 18, 2023 @04:04AM (#36769290)
He isn't involved anymore, is he?
Re:Strlcpy and strlcat added to glibc 2.38 by fs111 on Tuesday July 18, 2023 @04:38AM (#36769534)
I think he is doing other things these days https://research.redhat.com/blog/project_member/ulrich-drepp...