Added ubsan

This commit is contained in:
Alex
2022-11-17 03:33:18 +02:00
parent 11641b1ff3
commit 2571c4f539
15 changed files with 410 additions and 26 deletions

View File

@ -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;
}