From: Todd Date: Sat, 17 Jan 2015 15:51:44 +0000 (+1800) Subject: [PATCH v1 0/2] Fixes for issues discovered with -fsanitize=address X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=9abec621e1a43e036206d8f6e2e52b65ea0dd368;p=notmuch-archives.git [PATCH v1 0/2] Fixes for issues discovered with -fsanitize=address --- diff --git a/e5/d61c9c1620bc73a9d898e1386977241be2cb75 b/e5/d61c9c1620bc73a9d898e1386977241be2cb75 new file mode 100644 index 000000000..671189953 --- /dev/null +++ b/e5/d61c9c1620bc73a9d898e1386977241be2cb75 @@ -0,0 +1,70 @@ +Return-Path: +X-Original-To: notmuch@notmuchmail.org +Delivered-To: notmuch@notmuchmail.org +Received: from localhost (localhost [127.0.0.1]) + by olra.theworths.org (Postfix) with ESMTP id 63E07431FD9 + for ; Sat, 17 Jan 2015 07:52:29 -0800 (PST) +X-Virus-Scanned: Debian amavisd-new at olra.theworths.org +X-Spam-Flag: NO +X-Spam-Score: 2.438 +X-Spam-Level: ** +X-Spam-Status: No, score=2.438 tagged_above=-999 required=5 + tests=[DNS_FROM_AHBL_RHSBL=2.438] autolearn=disabled +Received: from olra.theworths.org ([127.0.0.1]) + by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) + with ESMTP id REsv23JAzrH4 for ; + Sat, 17 Jan 2015 07:52:26 -0800 (PST) +Received: from s75.web-hosting.com (s75.web-hosting.com [198.187.31.9]) + (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) + (No client certificate requested) + by olra.theworths.org (Postfix) with ESMTPS id 256BB431FAF + for ; Sat, 17 Jan 2015 07:52:26 -0800 (PST) +Received: from user-69-73-37-128.knology.net ([69.73.37.128]:46357 + helo=localhost.localdomain) + by server75.web-hosting.com with esmtpsa (UNKNOWN:AES128-SHA256:128) + (Exim 4.82) (envelope-from ) + id 1YCVfk-00164v-6k; Sat, 17 Jan 2015 10:52:24 -0500 +From: Todd +To: notmuch@notmuchmail.org +Subject: [PATCH v1 0/2] Fixes for issues discovered with -fsanitize=address +Date: Sat, 17 Jan 2015 09:51:44 -0600 +Message-Id: <1421509906-2153-1-git-send-email-todd@electricoding.com> +X-Mailer: git-send-email 1.9.1 +X-AntiAbuse: This header was added to track abuse, + please include it with any abuse report +X-AntiAbuse: Primary Hostname - server75.web-hosting.com +X-AntiAbuse: Original Domain - notmuchmail.org +X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] +X-AntiAbuse: Sender Address Domain - electricoding.com +X-Get-Message-Sender-Via: server75.web-hosting.com: authenticated_id: + todd@electricoding.com +X-Source: +X-Source-Args: +X-Source-Dir: +X-BeenThere: notmuch@notmuchmail.org +X-Mailman-Version: 2.1.13 +Precedence: list +List-Id: "Use and development of the notmuch mail system." + +List-Unsubscribe: , + +List-Archive: +List-Post: +List-Help: +List-Subscribe: , + +X-List-Received-Date: Sat, 17 Jan 2015 15:52:29 -0000 + +I built a copy of notmuch with gcc 4.8's new -fsanitize=address +feature and ran the test bench. It pointed out these two issues. + + +Todd (2): + lib: Fix potential invalid read past an empty string + lib: Fix use after free + + lib/thread.cc | 7 +++---- + 1 file changed, 3 insertions(+), 4 deletions(-) + +-- +1.9.1