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
..
2001-03-23 18:59:31 +00:00
1999-09-05 17:43:31 +00:00
2001-03-27 21:27:33 +00:00
2001-03-19 12:50:13 +00:00
2000-02-08 07:43:26 +00:00
2000-10-09 12:34:51 +00:00
2000-02-08 07:43:26 +00:00
2001-01-24 13:01:47 +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-11-21 17:32:45 +00:00
2001-03-19 19:10:06 +00:00
2000-09-06 18:16:48 +00:00
1999-08-27 23:45:13 +00:00
2000-05-10 19:41:40 +00:00
2000-07-05 02:13:17 +00:00
1999-08-27 23:45:13 +00:00
2001-03-19 11:53:34 +00:00
2000-08-31 15:56:15 +00:00
1999-08-27 23:45:13 +00:00
2000-09-18 20:40:32 +00:00
1998-04-29 22:39:56 +00:00
2001-04-11 09:00:09 +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
2001-03-27 09:49:03 +00:00
1999-08-27 23:45:13 +00:00
1999-08-27 23:45:13 +00:00
2000-09-06 18:16:48 +00:00
1999-08-27 23:45:13 +00:00
2001-03-08 09:04:40 +00:00
2001-03-19 12:50:13 +00:00
2001-03-04 22:17:52 +00:00
1999-01-18 02:14:20 +00:00
1999-12-28 02:37:14 +00:00
2000-07-07 16:52:24 +00:00
1998-01-20 09:09:24 +00:00
1999-10-02 19:33:23 +00:00
2001-02-06 23:39:06 +00:00
2000-10-27 11:45:49 +00:00
2001-04-17 07:59:52 +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
2001-03-31 07:24:35 +00:00
1999-08-27 23:45:13 +00:00
1998-07-16 00:10:14 +00:00
2001-01-01 13:35:04 +00:00
1999-08-27 23:45:13 +00:00
2001-02-06 01:15:32 +00:00