kris 0f958ee746 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
..
2001-03-27 17:27:19 +00:00
2001-03-27 17:27:19 +00:00
2001-03-27 17:27:19 +00:00
2001-03-27 17:27:19 +00:00
2001-03-27 17:27:19 +00:00
2001-03-27 17:27:19 +00:00
2001-03-27 17:27:19 +00:00
2001-04-16 15:06:19 +00:00
1999-08-28 00:22:10 +00:00
2001-03-27 17:27:19 +00:00
2001-03-27 17:27:19 +00:00
2001-03-27 17:27:19 +00:00
2001-03-27 17:27:19 +00:00
2001-04-16 15:06:57 +00:00