Received: by mail.netbsd.org (Postfix, from userid 605) id D2E2884DA9; Mon, 7 Jun 2021 14:07:33 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id 13F0384D96 for ; Mon, 7 Jun 2021 14:07:33 +0000 (UTC) X-Virus-Scanned: amavisd-new at netbsd.org Received: from mail.netbsd.org ([127.0.0.1]) by localhost (mail.netbsd.org [127.0.0.1]) (amavisd-new, port 10025) with ESMTP id dYPydOyuRaIC for ; Mon, 7 Jun 2021 14:07:32 +0000 (UTC) Received: from cvs.NetBSD.org (ivanova.netbsd.org [199.233.217.197]) by mail.netbsd.org (Postfix) with ESMTP id AA54684CFD for ; Mon, 7 Jun 2021 14:07:32 +0000 (UTC) Received: by cvs.NetBSD.org (Postfix, from userid 500) id A3727FA95; Mon, 7 Jun 2021 14:07:32 +0000 (UTC) Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" MIME-Version: 1.0 Date: Mon, 7 Jun 2021 14:07:32 +0000 From: "Juergen Hannken-Illjes" Subject: CVS commit: src/sbin/dump To: source-changes@NetBSD.org X-Mailer: log_accum Message-Id: <20210607140732.A3727FA95@cvs.NetBSD.org> Sender: source-changes-owner@NetBSD.org List-Id: Precedence: bulk Reply-To: source-changes-d@NetBSD.org Mail-Reply-To: "Juergen Hannken-Illjes" Mail-Followup-To: source-changes-d@NetBSD.org List-Unsubscribe: Module Name: src Committed By: hannken Date: Mon Jun 7 14:07:32 UTC 2021 Modified Files: src/sbin/dump: tape.c Log Message: Bitmaps (TS_BITS and TS_CLRI) dont use the "c_addr" array as they cannot have holes. As bitmaps are written without TS_ADDR records "c_count" may be larger than the "c_addr" size resulting in a segmentation violation reading "c_addr" beyond its end. Compute "blks" for TS_INODE and TS_ADDR only -- its used for multi volume dumps and the bitmaps must both be on the first volume. To generate a diff of this commit: cvs rdiff -u -r1.55 -r1.56 src/sbin/dump/tape.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.