History log of /freebsd-10.0-release/lib/libc/gen/fmtcheck.c
Revision Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
# 259065 07-Dec-2013 gjb

- Copy stable/10 (r259064) to releng/10.0 as part of the
10.0-RELEASE cycle.
- Update __FreeBSD_version [1]
- Set branch name to -RC1

[1] 10.0-CURRENT __FreeBSD_version value ended at '55', so
start releng/10.0 at '100' so the branch is started with
a value ending in zero.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation

# 256281 10-Oct-2013 gjb

Copy head (r256279) to stable/10 as part of the 10.0-RELEASE cycle.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation


# 194800 23-Jun-2009 delphij

Use const instead of __const, and merge the license change from NetBSD.

Obtained from: NetBSD


# 181154 02-Aug-2008 das

Teach fmtcheck() about wint_t, intmax_t, char *, intmax_t *, and
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.


# 143905 21-Mar-2005 das

Teach fmtcheck() about the ' (thousands separator) flag.


# 128818 02-May-2004 das

When *printf() and *scanf() are compiled without floating-point
support, fmtcheck() should not accept format strings that contain
floating-point formats.


# 117014 28-Jun-2003 das

Teach fmtcheck(3) about the flags a, A, F, G, t, and z.


# 98908 27-Jun-2002 deischen

Remove improper use of <namespace.h>.
Remove fmtcheck from application name space (fix the weak reference).


# 90039 31-Jan-2002 obrien

Fix SCM ID's.


# 81586 13-Aug-2001 ru

Removed duplicate VCS ID tags, as per style(9).


# 79779 16-Jul-2001 kris

Remove unnecessary #include <stdlib.h>

Obtained from: NetBSD
MFC After: 1 week


# 75578 17-Apr-2001 kris

Add fmtcheck(), a function for checking consistency of format string
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