News for hackers. Stuff that matters.
Re:Sudo Replacement by cmeacham98 on Friday January 20, 2023 @07:13PM (#34462161)
This has nothing to do with Unicode (assuming that by "Unicode" you mean "UTF-8"). The null byte has the exact same meaning in UTF-8 as ASCII: https://stackoverflow.com/questions/6907297/can-utf-8-contai...
Re:Sudo Replacement by aidenn0 on Friday January 20, 2023 @08:45PM (#34462902)
If by Unicode you mean UCS-2 or UTF-16 though it applies.
Re:Sudo Replacement by lelanthran on Saturday January 21, 2023 @03:50AM (#34464948)
> The null byte has the exact same meaning in UTF-8 as ASCII: https://stackoverflow.com/questions/6907297/can-utf-8-contai...

And what meaning is that? That link doesn't refer to an authority on the meaning of the nul byte.

Re:Sudo Replacement by bouke on Sunday January 22, 2023 @02:26PM (#34481320)
In C, strings are nul terminated. Thus when at some point your password is passed along a tool written in C (or any language with the same behaviour) it’ll be truncated at that position.