From owner-cvs-all Wed Mar 7 17:20:48 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 240F137B718; Wed, 7 Mar 2001 17:20:44 -0800 (PST) (envelope-from tmm@FreeBSD.org) Received: (from tmm@localhost) by freefall.freebsd.org (8.11.1/8.11.1) id f281KiC87278; Wed, 7 Mar 2001 17:20:44 -0800 (PST) (envelope-from tmm) Message-Id: <200103080120.f281KiC87278@freefall.freebsd.org> From: Thomas Moestl Date: Wed, 7 Mar 2001 17:20:43 -0800 (PST) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/kern kern_sysctl.c X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG tmm 2001/03/07 17:20:43 PST Modified files: sys/kern kern_sysctl.c Log: Make the SYSCTL_OUT handlers sysctl_old_user() and sysctl_old_kernel() more robust. They would correctly return ENOMEM for the first time when the buffer was exhausted, but subsequent calls in this case could cause writes ouside of the buffer bounds. Approved by: rwatson Revision Changes Path 1.106 +11 -5 src/sys/kern/kern_sysctl.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message