From: Paul Eggert Date: Wed, 26 Jun 2024 16:16:06 +0000 (+0100) Subject: strnlen: document Android bug X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=a03728ed45b8fae66fb30aa808dde76e4d57d865;p=gnulib.git strnlen: document Android bug * doc/posix-functions/strnlen.texi (strnlen): Mention Android 5.0 bug reported by Po Lu in this thread: https://lists.gnu.org/r/bug-gnulib/2024-06/msg00271.html --- diff --git a/ChangeLog b/ChangeLog index 05bec51810..c0526832f6 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2024-06-26 Paul Eggert + + strnlen: document Android bug + * doc/posix-functions/strnlen.texi (strnlen): + Mention Android 5.0 bug reported by Po Lu in this thread: + https://lists.gnu.org/r/bug-gnulib/2024-06/msg00271.html + 2024-06-25 Collin Funk idpriv-droptemp: Handle large user and group ids. diff --git a/doc/posix-functions/strnlen.texi b/doc/posix-functions/strnlen.texi index 26806fbb58..e305a41c8c 100644 --- a/doc/posix-functions/strnlen.texi +++ b/doc/posix-functions/strnlen.texi @@ -15,4 +15,9 @@ Mac OS X 10.5, FreeBSD 6.0, NetBSD 5.0, OpenBSD 3.8, HP-UX 11, Solaris 10, mingw Portability problems not fixed by Gnulib: @itemize +@item +On some platforms, calls like @code{strnlen (s, maxlen)} can crash if +@var{s} is null-terminated but address arithmetic overflows +(i.e., @code{s + maxlen < s}): +Android 5.0. @end itemize