From owner-cvs-all Fri Nov 2 3:32:33 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 9784937B403; Fri, 2 Nov 2001 03:32:28 -0800 (PST) Received: (from phk@localhost) by freefall.freebsd.org (8.11.4/8.11.4) id fA2BWSs53697; Fri, 2 Nov 2001 03:32:28 -0800 (PST) (envelope-from phk) Message-Id: <200111021132.fA2BWSs53697@freefall.freebsd.org> From: Poul-Henning Kamp Date: Fri, 2 Nov 2001 03:32:28 -0800 (PST) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/lib/libc/stdlib malloc.c X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG phk 2001/11/02 03:32:28 PST Modified files: lib/libc/stdlib malloc.c Log: phkmalloc->evilchecks++; If zero bytes are allocated, return pointer to the middle of page-zero (which is protected) so that the program will crash if it dereferences this illgotten pointer. Inspired & Urged by: Theo de Raadt Revision Changes Path 1.60 +14 -4 src/lib/libc/stdlib/malloc.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message