From owner-cvs-all@FreeBSD.ORG Sun Aug 13 21:54:47 2006 Return-Path: X-Original-To: cvs-all@FreeBSD.org Delivered-To: cvs-all@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E708316A4DA; Sun, 13 Aug 2006 21:54:47 +0000 (UTC) (envelope-from cperciva@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id A6E7243D45; Sun, 13 Aug 2006 21:54:47 +0000 (GMT) (envelope-from cperciva@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.6/8.13.6) with ESMTP id k7DLslCo080954; Sun, 13 Aug 2006 21:54:47 GMT (envelope-from cperciva@repoman.freebsd.org) Received: (from cperciva@localhost) by repoman.freebsd.org (8.13.6/8.13.4/Submit) id k7DLsl2d080953; Sun, 13 Aug 2006 21:54:47 GMT (envelope-from cperciva) Message-Id: <200608132154.k7DLsl2d080953@repoman.freebsd.org> From: Colin Percival Date: Sun, 13 Aug 2006 21:54:47 +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-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 13 Aug 2006 21:54:48 -0000 cperciva 2006-08-13 21:54:47 UTC FreeBSD src repository Modified files: lib/libc/stdlib malloc.c Log: Correctly handle the case in calloc(num, size) where (size_t)(num * size) == 0 but both num and size are nonzero. Reported by: Ilja van Sprundel Approved by: jasone Security: Integer overflow; calloc was allocating 1 byte in response to a request for a multiple of 2^32 (or 2^64) bytes instead of returning NULL. Revision Changes Path 1.134 +1 -1 src/lib/libc/stdlib/malloc.c