From owner-cvs-src@FreeBSD.ORG Thu Mar 29 21:07:19 2007 Return-Path: X-Original-To: cvs-src@FreeBSD.org Delivered-To: cvs-src@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id BF5E116A403; Thu, 29 Mar 2007 21:07:19 +0000 (UTC) (envelope-from jasone@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [69.147.83.41]) by mx1.freebsd.org (Postfix) with ESMTP id 97FE713C43E; Thu, 29 Mar 2007 21:07:19 +0000 (UTC) (envelope-from jasone@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.8/8.13.8) with ESMTP id l2TL7JKT039875; Thu, 29 Mar 2007 21:07:19 GMT (envelope-from jasone@repoman.freebsd.org) Received: (from jasone@localhost) by repoman.freebsd.org (8.13.8/8.13.8/Submit) id l2TL7IQG039874; Thu, 29 Mar 2007 21:07:18 GMT (envelope-from jasone) Message-Id: <200703292107.l2TL7IQG039874@repoman.freebsd.org> From: Jason Evans Date: Thu, 29 Mar 2007 21:07:17 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: src/lib/libc/stdlib malloc.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Mar 2007 21:07:19 -0000 jasone 2007-03-29 21:07:17 UTC FreeBSD src repository Modified files: lib/libc/stdlib malloc.c Log: Use size_t instead of unsigned for pagesize-related values, in order to avoid downcasting issues. In particular, this change fixes posix_memalign(3) for alignments greater than 2^31 on LP64 systems. Make sure that NDEBUG is always set to be compatible with MALLOC_DEBUG. [1] Reported by: [1] Lee Hyo geol Revision Changes Path 1.146 +8 -4 src/lib/libc/stdlib/malloc.c