From patchwork Mon Oct 8 21:56:48 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "brian m. carlson" X-Patchwork-Id: 10631525 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 183FB1867 for ; Mon, 8 Oct 2018 21:57:18 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0AF7829B4F for ; Mon, 8 Oct 2018 21:57:18 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id F347D29B5F; Mon, 8 Oct 2018 21:57:17 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A556629B49 for ; Mon, 8 Oct 2018 21:57:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725898AbeJIFK7 (ORCPT ); Tue, 9 Oct 2018 01:10:59 -0400 Received: from injection.crustytoothpaste.net ([192.241.140.119]:49276 "EHLO injection.crustytoothpaste.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725782AbeJIFK6 (ORCPT ); Tue, 9 Oct 2018 01:10:58 -0400 Received: from genre.crustytoothpaste.net (unknown [IPv6:2001:470:b978:101:e17d:6d35:bfb8:6a25]) (using TLSv1.2 with cipher ECDHE-RSA-CHACHA20-POLY1305 (256/256 bits)) (No client certificate requested) by injection.crustytoothpaste.net (Postfix) with ESMTPSA id C1D5260780; Mon, 8 Oct 2018 21:57:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=crustytoothpaste.net; s=default; t=1539035829; bh=itxboVv5aGhsNiCg8QBzLprry8raGu4avShLEnv3Dgs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From:Reply-To: Subject:Date:To:CC:Resent-Date:Resent-From:Resent-To:Resent-Cc: In-Reply-To:References:Content-Type:Content-Disposition; b=el35rmKtG24BxbZj3rR8iqretUfLq2UTdbMZpMgyb95NPOhgv5rcMDfzP+qsBIK24 TPG3CnviSHKUXzJa5ovqpNPeE40bY3Tr+UcoGNJdHeUWDxtAw9ePeK+ACWfR/g523t HWCQYPOS+KLqx+Y5t2q1V22P7RzxELuRNJFP1f/JZFCC9UV4m/DQAPBDc2JVIzEP6B tnay2z43B+TAK6u//0okupy9/pCiQkCqiggtC0OjfNthROl4KQzHac0i/hBRWMfYdi 0iXDgPNE7+t7zLwZvxKU3MNi2l6qWu9nX+FOyIIktdA2iMucaBhoZVrHBWXYk9E90c MohoG+yLNpMOFgDO/eKpy/3Vzbh3aMXIRfAFLCHEjGkobNY/TFpL/TzCU0hYFYBkPk ZRm8qxXF7b7aCqCSCAMSm/YvAI6+4gxLKW4KU+qKs4H2v32rxB9CTjt8pySttBKwCb lhpNKpdo3ydAcEde1jiYY9OZMVOwwhsLAnGw92jZ+5z5MqQveob From: "brian m. carlson" To: git@vger.kernel.org Cc: Jeff King , Eric Sunshine , =?utf-8?b?Tmd1eeG7hW4gVGjDoWkgTmfhu41jIER1eQ==?= Subject: [PATCH 01/14] pack-bitmap-write: use GIT_MAX_RAWSZ for allocation Date: Mon, 8 Oct 2018 21:56:48 +0000 Message-Id: <20181008215701.779099-2-sandals@crustytoothpaste.net> X-Mailer: git-send-email 2.19.1.331.ge82ca0e54c In-Reply-To: <20181008215701.779099-1-sandals@crustytoothpaste.net> References: <20181008215701.779099-1-sandals@crustytoothpaste.net> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 127.0.1.1 Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Signed-off-by: brian m. carlson --- pack-bitmap-write.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pack-bitmap-write.c b/pack-bitmap-write.c index fc82f37a02..6f0c78d6aa 100644 --- a/pack-bitmap-write.c +++ b/pack-bitmap-write.c @@ -37,7 +37,7 @@ struct bitmap_writer { struct progress *progress; int show_progress; - unsigned char pack_checksum[20]; + unsigned char pack_checksum[GIT_MAX_RAWSZ]; }; static struct bitmap_writer writer;