Create string.c

Off by one error resulted in memmem calling memcmp where h + needle_len is one past the end.
This commit is contained in:
b1gr3db
2021-02-03 15:32:06 -05:00
committed by GitHub
parent 58a5372bf0
commit d0ab2ded00

View File

@ -271,7 +271,7 @@ void *__libqasan_memmem(const void *haystack, size_t haystack_len,
}
} while (h++ <= end);
} while (++h <= end);
return 0;