c8db92b7b7
The current implementations do not count the length of empty strings correctly. The following buffer content "\0foo\0" is considered a string with length 4, because the iteration pointer is incremented before it is dereferenced to check for a null char. Replace the broken strlen functions with the implementation of musl libc.