From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-Status: No, score=-4.0 required=3.0 tests=AWL,BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_PASS, SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by dcvr.yhbt.net (Postfix) with ESMTP id 514281F5AE for ; Tue, 4 Aug 2020 07:41:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729846AbgHDHlr (ORCPT ); Tue, 4 Aug 2020 03:41:47 -0400 Received: from cloud.peff.net ([104.130.231.41]:47358 "EHLO cloud.peff.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726808AbgHDHlr (ORCPT ); Tue, 4 Aug 2020 03:41:47 -0400 Received: (qmail 561 invoked by uid 109); 4 Aug 2020 07:41:47 -0000 Received: from Unknown (HELO peff.net) (10.0.1.2) by cloud.peff.net (qpsmtpd/0.94) with ESMTP; Tue, 04 Aug 2020 07:41:47 +0000 Authentication-Results: cloud.peff.net; auth=none Received: (qmail 9620 invoked by uid 111); 4 Aug 2020 07:41:46 -0000 Received: from coredump.intra.peff.net (HELO sigill.intra.peff.net) (10.0.0.2) by peff.net (qpsmtpd/0.94) with (TLS_AES_256_GCM_SHA384 encrypted) ESMTPS; Tue, 04 Aug 2020 03:41:46 -0400 Authentication-Results: peff.net; auth=none Date: Tue, 4 Aug 2020 03:41:46 -0400 From: Jeff King To: git@vger.kernel.org Cc: Taylor Blau Subject: [PATCH 0/3] some compiler/asan/ubsan fixes Message-ID: <20200804074146.GA190027@coredump.intra.peff.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org Here are fixes for a few problems I came across today while running "make SANITIZE=address,undefined test" on the tip of master. [1/3]: config: work around gcc-10 -Wstringop-overflow warning [2/3]: revision: avoid out-of-bounds read/write on empty pathspec [3/3]: revision: avoid leak when preparing bloom filter for "/" config.c | 2 +- revision.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) -Peff