mirror of
https://github.com/Fennix-Project/Kernel.git
synced 2025-07-11 15:29:18 +00:00
Added ubsan
This commit is contained in:
@ -356,8 +356,9 @@ int strncmp(const char *s1, const char *s2, size_t n)
|
||||
long unsigned strlen(const char s[])
|
||||
{
|
||||
long unsigned i = 0;
|
||||
while (s[i] != '\0')
|
||||
++i;
|
||||
if (s)
|
||||
while (s[i] != '\0')
|
||||
++i;
|
||||
return i;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user