From owner-cvs-all Tue Apr 17 0:59:59 2001 Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 56AB937B43E; Tue, 17 Apr 2001 00:59:54 -0700 (PDT) (envelope-from kris@FreeBSD.org) Received: (from kris@localhost) by freefall.freebsd.org (8.11.1/8.11.1) id f3H7xsm74801; Tue, 17 Apr 2001 00:59:54 -0700 (PDT) (envelope-from kris) Message-Id: <200104170759.f3H7xsm74801@freefall.freebsd.org> From: Kris Kennaway Date: Tue, 17 Apr 2001 00:59:54 -0700 (PDT) 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 X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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