summaryrefslogtreecommitdiffstats
path: root/lib/libc/gen/fmtcheck.c
Commit message (Collapse)AuthorAgeFilesLines
* Use const instead of __const, and merge the license change from NetBSD.delphij2009-06-231-9/+3
| | | | Obtained from: NetBSD
* Teach fmtcheck() about wint_t, intmax_t, char *, intmax_t *, anddas2008-08-021-34/+98
| | | | | | | | | wide string arguments. Also simplify the code that handles length modifiers and make it more conservative. For instance, be explicit about the modifiers allowed for %d, rather than assuming that anything other than L, q, t, or z implies an int argument.
* Teach fmtcheck() about the ' (thousands separator) flag.das2005-03-211-1/+1
|
* When *printf() and *scanf() are compiled without floating-pointdas2004-05-021-0/+4
| | | | | support, fmtcheck() should not accept format strings that contain floating-point formats.
* Teach fmtcheck(3) about the flags a, A, F, G, t, and z.das2003-06-291-8/+28
|
* Remove improper use of <namespace.h>.deischen2002-06-271-6/+2
| | | | Remove fmtcheck from application name space (fix the weak reference).
* Fix SCM ID's.obrien2002-02-011-6/+2
|
* Removed duplicate VCS ID tags, as per style(9).ru2001-08-131-1/+0
|
* Remove unnecessary #include <stdlib.h>kris2001-07-161-1/+0
| | | | | Obtained from: NetBSD MFC After: 1 week
* Add fmtcheck(), a function for checking consistency of format stringkris2001-04-171-0/+253
arguments where the format string is obtained from user data, or otherwise difficult to verify statically. Example usage: printf(fmtcheck(user_format, standard_format), arg1, arg2); checks the format string user_format for consistency (same number/order/ type of format operators) with standard_format. If they differ, standard_format is used instead to avoid potential crashes or security violations. Obtained from: NetBSD Reviewed by: -arch
OpenPOWER on IntegriCloud