Hash :
65fd60c0
Author :
Date :
2024-06-30T11:27:48
strnlen: avoid undefined memcmp behavior Problem reported by Po Lu in: https://lists.gnu.org/r/bug-gnulib/2024-06/msg00288.html * config/srclist.txt: Don’t mention strnlen.c even in a comment, as the Gnulib and glibc implementations have diverged for portability reasons, and they’re never likely to merge. * lib/strnlen.c (strnlen): Avoid undefined behavior if the array S points to has fewer than MAXLEN bytes.