Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 2 Nov 2001 03:32:28 -0800 (PST)
From:      Poul-Henning Kamp <phk@FreeBSD.org>
To:        cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/lib/libc/stdlib malloc.c
Message-ID:  <200111021132.fA2BWSs53697@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
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 <deraadt@cvs.openbsd.org>
  
  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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200111021132.fA2BWSs53697>