aboutsummaryrefslogtreecommitdiffstats
path: root/include/limits.h
diff options
context:
space:
mode:
authorRuslan Bukin <br@FreeBSD.org>2016-10-31 18:38:58 +0000
committerRuslan Bukin <br@FreeBSD.org>2016-10-31 18:38:58 +0000
commit130a08a362287342b83f8a78914db38a325145a3 (patch)
treef4f2862fb6ad4a3036c7b08e1b4d5e01fa7d9809 /include/limits.h
parente2efc9becbf29d9f4a4102d080a4ab2b18f36a34 (diff)
downloadsrc-130a08a362287342b83f8a78914db38a325145a3.tar.gz
src-130a08a362287342b83f8a78914db38a325145a3.zip
Detect integer overflow and limit the number of positional
arguments in the string format. Sponsored by: DARPA, AFRL Sponsored by: HEIF5 Differential Revision: https://reviews.freebsd.org/D8286
Notes
Notes: svn path=/head/; revision=308145
Diffstat (limited to 'include/limits.h')
-rw-r--r--include/limits.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/limits.h b/include/limits.h
index a1e1b9820821..0d37af4014cc 100644
--- a/include/limits.h
+++ b/include/limits.h
@@ -120,7 +120,7 @@
#endif
#if __XSI_VISIBLE || __POSIX_VISIBLE >= 200809
-#define NL_ARGMAX 99 /* max # of position args for printf */
+#define NL_ARGMAX 65536 /* max # of position args for printf */
#define NL_MSGMAX 32767
#define NL_SETMAX 255
#define NL_TEXTMAX 2048