]> Savannah Git Hosting - gnulib.git/commitdiff
Document Android, OpenBSD printf "%n" lack
authorPaul Eggert <eggert@cs.ucla.edu>
Sun, 6 Aug 2023 19:19:36 +0000 (12:19 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sun, 6 Aug 2023 19:22:39 +0000 (12:22 -0700)
In doc/posix/functions/*printf*.texi,
document that the POSIX-specified printf functions
do not support the %n format on Android and OpenBSD.
This lack of support is deliberate, as %n is
a common target of attacks on security.

doc/posix-functions/dprintf.texi
doc/posix-functions/fprintf.texi
doc/posix-functions/printf.texi
doc/posix-functions/snprintf.texi
doc/posix-functions/sprintf.texi
doc/posix-functions/swprintf.texi
doc/posix-functions/vdprintf.texi
doc/posix-functions/vfprintf.texi
doc/posix-functions/vprintf.texi
doc/posix-functions/vsnprintf.texi
doc/posix-functions/vsprintf.texi

index 2f903775909e4297465ad7c529b34d1c09f00764..92b73a97b59f54083fcf7def662d1baab04b721c 100644 (file)
@@ -37,7 +37,7 @@ AIX 7.2, Solaris 11.4, Cygwin 2.9.0.
 @item
 This function does not support the @samp{n} directive on some platforms:
 glibc when used with @code{_FORTIFY_SOURCE >= 2} (set by default on Ubuntu),
-macOS 11.1.
+Android, OpenBSD, macOS 11.1.
 @item
 This function does not support precisions in the @samp{ls} directive correctly
 on some platforms:
index 7e1d2254ca28151ed38f5ead687cef577710ca4e..be20b67079186b0e243450d67819a49f66b11cb3 100644 (file)
@@ -42,7 +42,7 @@ Cygwin 1.5.x, mingw, MSVC 14.
 @item
 This function does not support the @samp{n} directive on some platforms:
 glibc when used with @code{_FORTIFY_SOURCE >= 2} (set by default on Ubuntu),
-macOS 11.1, MSVC 14.
+Android, OpenBSD, macOS 11.1, MSVC 14.
 @item
 This function does not support the @samp{ls} directive on some platforms:
 OpenBSD 4.0, IRIX 6.5, Cygwin 1.5.x, Haiku.
index e8fafa4bdbe95520ede59967e9da03febf266ebf..38489e292a17d2773b0019741b1ff2bd67183490 100644 (file)
@@ -42,7 +42,7 @@ Cygwin 1.5.x, mingw, MSVC 14.
 @item
 This function does not support the @samp{n} directive on some platforms:
 glibc when used with @code{_FORTIFY_SOURCE >= 2} (set by default on Ubuntu),
-macOS 11.1, MSVC 14.
+Android, OpenBSD, macOS 11.1, MSVC 14.
 @item
 This function does not support the @samp{ls} directive on some platforms:
 OpenBSD 4.0, IRIX 6.5, Cygwin 1.5.x, Haiku.
index 032c6ff0233266fe6fe57b023390d24be1b39748..25e86e6feae1392ac351016d39de3985d8ff6fd5 100644 (file)
@@ -57,7 +57,7 @@ Cygwin 1.5.x, mingw, MSVC 14.
 @item
 This function does not support the @samp{n} directive on some platforms:
 glibc when used with @code{_FORTIFY_SOURCE >= 2} (set by default on Ubuntu),
-macOS 11.1, MSVC 14.
+Android, OpenBSD, macOS 11.1, MSVC 14.
 @item
 This function does not support the @samp{ls} directive on some platforms:
 OpenBSD 4.0, IRIX 6.5, Cygwin 1.5.x, Haiku.
@@ -97,7 +97,7 @@ This function does not truncate the result as specified in C99 on some platforms
 mingw, MSVC 14.
 @item
 This function does not fully support the @samp{n} directive on some platforms:
-HP-UX 11, mingw, MSVC 14.
+HP-UX 11, mingw.
 @end itemize
 
 Portability problems fixed by Gnulib module @code{snprintf-gnu}:
index 5d88d38c3fdaf021b313349b31d69b7de2353dd6..6aaf7b4b9393b0e33fe6e7513b1106ce9067205c 100644 (file)
@@ -42,7 +42,7 @@ Cygwin 1.5.x, mingw, MSVC 14.
 @item
 This function does not support the @samp{n} directive on some platforms:
 glibc when used with @code{_FORTIFY_SOURCE >= 2} (set by default on Ubuntu),
-macOS 11.1, MSVC 14.
+Android, OpenBSD, macOS 11.1, MSVC 14.
 @item
 This function does not support the @samp{ls} directive on some platforms:
 OpenBSD 4.0, IRIX 6.5, Cygwin 1.5.x, Haiku.
index 7883bfbe44fe32a40e2160f16cb0bd78f8904e48..6029adbb669e068d0e5a4d76790824decaf0a85d 100644 (file)
@@ -24,7 +24,7 @@ MSVC 14.
 @item
 This function does not support the @samp{n} directive on some platforms:
 glibc when used with @code{_FORTIFY_SOURCE >= 2} (set by default on Ubuntu),
-macOS 11.1, MSVC 14.
+Android, OpenBSD, macOS 11.1, MSVC 14.
 @item
 This function sometimes returns a wrong value through the @samp{n} directive
 on some platforms:
index f21172c441dbf9ad4c8128c002c1c16f1272e9e6..05f001d707013250240d8e7605b6c362bf8dd117 100644 (file)
@@ -37,7 +37,7 @@ AIX 7.2, Solaris 11.4, Cygwin 2.9.0.
 @item
 This function does not support the @samp{n} directive on some platforms:
 glibc when used with @code{_FORTIFY_SOURCE >= 2} (set by default on Ubuntu),
-macOS 11.1.
+Android, OpenBSD, macOS 11.1.
 @item
 This function does not support precisions in the @samp{ls} directive correctly
 on some platforms:
index b4ae2cc7339daa09de8a932ca7e25806b4e66e5f..6d1c1600fd98fe35b916ec1e05104e4f652e5fde 100644 (file)
@@ -42,7 +42,7 @@ Cygwin 1.5.x, mingw, MSVC 14.
 @item
 This function does not support the @samp{n} directive on some platforms:
 glibc when used with @code{_FORTIFY_SOURCE >= 2} (set by default on Ubuntu),
-macOS 11.1, MSVC 14.
+Android, OpenBSD, macOS 11.1, MSVC 14.
 @item
 This function does not support the @samp{ls} directive on some platforms:
 OpenBSD 4.0, IRIX 6.5, Cygwin 1.5.x, Haiku.
index a69eb467cdf6d3d79c1f0ba0a64ce368149f06e1..d277d3b1f83c71ba9e61186fd2568673d04bd3a0 100644 (file)
@@ -42,7 +42,7 @@ Cygwin 1.5.x, mingw, MSVC 14.
 @item
 This function does not support the @samp{n} directive on some platforms:
 glibc when used with @code{_FORTIFY_SOURCE >= 2} (set by default on Ubuntu),
-macOS 11.1, MSVC 14.
+Android, OpenBSD, macOS 11.1, MSVC 14.
 @item
 This function does not support the @samp{ls} directive on some platforms:
 OpenBSD 4.0, IRIX 6.5, Cygwin 1.5.x, Haiku.
index 90613a95efe161de26fd5f70926ea1731f876fa4..24b39bffb5d2cf80f2178c95ae6c00ffaaf32e8b 100644 (file)
@@ -91,7 +91,7 @@ mingw, MSVC 14.
 @item
 This function does not fully support the @samp{n} directive on some platforms:
 glibc when used with @code{_FORTIFY_SOURCE >= 2} (set by default on Ubuntu),
-macOS 11.1, HP-UX 11, mingw, MSVC 14.
+Android, OpenBSD, macOS 11.1, HP-UX 11, mingw, MSVC 14.
 @item
 This function overwrites memory even when a zero size argument is passed on some
 platforms:
index e75af4fb3b740d9f5897a3a5ce101524f6c3ae2d..0b8079df23f6becd40c1f3a8a73550e74f9b5937 100644 (file)
@@ -42,7 +42,7 @@ Cygwin 1.5.x, mingw, MSVC 14.
 @item
 This function does not support the @samp{n} directive on some platforms:
 glibc when used with @code{_FORTIFY_SOURCE >= 2} (set by default on Ubuntu),
-macOS 11.1, MSVC 14.
+Android, OpenBSD, macOS 11.1, MSVC 14.
 @item
 This function does not support the @samp{ls} directive on some platforms:
 OpenBSD 4.0, IRIX 6.5, Cygwin 1.5.x, Haiku.