NetBSD Problem Report #36462

From  Sat Jun  9 09:49:45 2007
Return-Path: <>
Received: from ( [])
	by (Postfix) with ESMTP id A6F6663B946
	for <>; Sat,  9 Jun 2007 09:49:44 +0000 (UTC)
Message-Id: <>
Date: Sat,  9 Jun 2007 01:58:42 +0000 (UTC)
Subject: initial test for non-existence of pre-processor symbol MALLOC_EXTRA_SANITY
X-Send-Pr-Version: www-1.0

>Number:         36462
>Category:       lib
>Synopsis:       initial test for non-existence of pre-processor symbol MALLOC_EXTRA_SANITY
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    lib-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Jun 09 09:50:00 +0000 2007
>Originator:     Eric Gillespie
>Release:        3.0
In source code file src/lib/libc/stdlib/malloc.c:22-24, this test doesn't do anything.

If the symbol isn't defined, the preprocessor will attempt to undefine
it anyhow. If the symbol IS defined, these lines will be skipped. Hence
these lines don't do anything useful. These lines were removed in 2005 
from the original FreeBSD source from which this file was derived.
That's nine years after initial inclusion. phk ( had this
to say:
:They used to control some very paranoid consistency check code that
:was removed pretty early on, unfortunately, those three lines got 
:missed somehow.

list the source code to the above file.
Remove the three lines.

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD:,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.