Date: Tue, 17 Apr 2001 00:59:54 -0700 (PDT) From: Kris Kennaway <kris@FreeBSD.org> To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/lib/libc/gen fmtcheck.3 fmtcheck.c Makefile.inc src/include stdio.h Message-ID: <200104170759.f3H7xsm74801@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
kris 2001/04/17 00:59:54 PDT Modified files: lib/libc/gen Makefile.inc include stdio.h Added files: lib/libc/gen fmtcheck.3 fmtcheck.c Log: 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 Revision Changes Path 1.77 +3 -3 src/lib/libc/gen/Makefile.inc 1.32 +3 -1 src/include/stdio.h To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200104170759.f3H7xsm74801>