From owner-cvs-all Sun Jul 7 18:25:57 2002 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 3868537B400; Sun, 7 Jul 2002 18:25:55 -0700 (PDT) Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id C1B5043E4A; Sun, 7 Jul 2002 18:25:54 -0700 (PDT) (envelope-from iedowse@FreeBSD.org) Received: from freefall.freebsd.org (iedowse@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.4/8.12.4) with ESMTP id g681PsJU078888; Sun, 7 Jul 2002 18:25:54 -0700 (PDT) (envelope-from iedowse@freefall.freebsd.org) Received: (from iedowse@localhost) by freefall.freebsd.org (8.12.4/8.12.4/Submit) id g681PsfI078887; Sun, 7 Jul 2002 18:25:54 -0700 (PDT) Message-Id: <200207080125.g681PsfI078887@freefall.freebsd.org> From: Ian Dowse Date: Sun, 7 Jul 2002 18:25:54 -0700 (PDT) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sbin/dump traverse.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 iedowse 2002/07/07 18:25:54 PDT Modified files: sbin/dump traverse.c Log: Use a fixed MAXBSIZE-size auto array instead of a static pointer to a malloc'd buffer in dmpindir() and dirindir(). These functions recursively call themselves to handle deeper levels of indirect blocks, so a single static buffer was not suitable. Bug tracked down by: Don Lewis Approach suggested by: bde Revision Changes Path 1.22 +2 -6 src/sbin/dump/traverse.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message