]> Savannah Git Hosting - gnulib.git/commitdiff
strnlen: document Android bug
authorPaul Eggert <eggert@cs.ucla.edu>
Wed, 26 Jun 2024 16:16:06 +0000 (17:16 +0100)
committerPaul Eggert <eggert@cs.ucla.edu>
Wed, 26 Jun 2024 16:16:54 +0000 (17:16 +0100)
* 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

ChangeLog
doc/posix-functions/strnlen.texi

index 05bec51810e71abc79baa206e93ff2c723a55856..c0526832f6d8eea649853448bf824f541edcc959 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2024-06-26  Paul Eggert  <eggert@cs.ucla.edu>
+
+       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  <collin.funk1@gmail.com>
 
        idpriv-droptemp: Handle large user and group ids.
index 26806fbb58975037960e32aaa29a73dce972e949..e305a41c8c22c64af06ad0c1a1f441d664d362b0 100644 (file)
@@ -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