Kris Kennaway 3d09054934 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
2001-04-17 07:59:52 +00:00
..
1999-09-05 17:43:31 +00:00
2000-10-09 12:34:51 +00:00
2000-09-19 04:24:50 +00:00
1999-08-27 23:45:13 +00:00
1999-08-27 23:45:13 +00:00
1999-08-27 23:45:13 +00:00
1999-08-27 23:45:13 +00:00
1999-08-27 23:45:13 +00:00
1999-08-27 23:45:13 +00:00
1998-04-29 22:39:56 +00:00
2000-12-29 20:25:01 +00:00
1999-06-21 17:07:20 +00:00
2001-03-27 09:43:09 +00:00
1999-08-27 23:45:13 +00:00
1999-08-27 23:45:13 +00:00
1999-08-27 23:45:13 +00:00
2000-07-07 16:52:24 +00:00
1998-01-20 09:09:24 +00:00
2001-02-06 23:39:06 +00:00
2001-02-27 13:33:07 +00:00
1999-08-28 05:11:36 +00:00
1999-08-16 06:53:13 +00:00
1999-08-27 23:45:13 +00:00
1998-07-16 00:10:14 +00:00
1999-08-27 23:45:13 +00:00
2001-02-06 01:15:32 +00:00