Commit 65fd60c02ccb5530249affc0caefc75aa88d61fc

Paul Eggert 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.