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-21 08:49:02 +00:00
2001-01-04 10:37:25 +00:00
2001-03-27 17:27:19 +00:00
2000-01-14 07:57:47 +00:00
1999-11-30 04:40:54 +00:00
2001-04-17 07:59:52 +00:00
2001-04-10 04:25:49 +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-01 12:18:20 +00:00
2001-04-12 09:57:12 +00:00
2001-04-15 19:53:47 +00:00
2001-03-27 17:27:19 +00:00
2001-03-27 17:27:19 +00:00
2000-12-09 09:35:55 +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-10 04:25:49 +00:00
2001-03-27 17:27:19 +00:00
2001-03-27 17:27:19 +00:00
2001-04-04 10:23:27 +00:00
2001-03-27 17:27:19 +00:00
2000-05-26 02:09:24 +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-03 10:08:51 +00:00
2001-04-10 04:25:49 +00:00
2001-03-27 17:27:19 +00:00
2001-03-19 12:50:13 +00:00
2001-03-27 05:45:52 +00:00
2001-04-05 19:56:54 +00:00
2000-10-26 23:02:36 +00:00
2000-10-26 23:02:36 +00:00
2000-12-09 09:35:55 +00:00
2001-04-07 23:48:46 +00:00
2001-03-27 17:27:19 +00:00
2001-03-28 12:08:22 +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
2000-06-13 00:41:38 +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-04 18:17:28 +00:00