From: David Bremner Date: Sat, 3 Jan 2015 13:30:16 +0000 (+0100) Subject: Re: BUG: Using pointer that points to a destructed string's content X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=e60cc4a80bffda931b07ef9954a72c27a10ff55e;p=notmuch-archives.git Re: BUG: Using pointer that points to a destructed string's content --- diff --git a/3a/56518346a945a8b5aa69cc18aff2f2b53e1f0f b/3a/56518346a945a8b5aa69cc18aff2f2b53e1f0f new file mode 100644 index 000000000..c9e926943 --- /dev/null +++ b/3a/56518346a945a8b5aa69cc18aff2f2b53e1f0f @@ -0,0 +1,67 @@ +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 3C64E431FC0 + for ; Sat, 3 Jan 2015 05:30:24 -0800 (PST) +X-Virus-Scanned: Debian amavisd-new at olra.theworths.org +X-Spam-Flag: NO +X-Spam-Score: 0 +X-Spam-Level: +X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none] + 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 wELmJGcARV8T for ; + Sat, 3 Jan 2015 05:30:22 -0800 (PST) +Received: from yantan.tethera.net (yantan.tethera.net [199.188.72.155]) + (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) + (No client certificate requested) + by olra.theworths.org (Postfix) with ESMTPS id 2F9B3431FB6 + for ; Sat, 3 Jan 2015 05:30:22 -0800 (PST) +Received: from remotemail by yantan.tethera.net with local (Exim 4.80) + (envelope-from ) + id 1Y7Omb-0006Vs-Mf; Sat, 03 Jan 2015 09:30:21 -0400 +Received: (nullmailer pid 6256 invoked by uid 1000); Sat, 03 Jan 2015 + 13:30:16 -0000 +From: David Bremner +To: Tamas Szakaly , notmuch@notmuchmail.org +Subject: Re: BUG: Using pointer that points to a destructed string's content +In-Reply-To: <20141226113755.GA64154@pamparam> +References: <20141226113755.GA64154@pamparam> +User-Agent: Notmuch/0.19+10~g215de26 (http://notmuchmail.org) Emacs/24.4.1 + (x86_64-pc-linux-gnu) +Date: Sat, 03 Jan 2015 14:30:16 +0100 +Message-ID: <87zja0vvo7.fsf@maritornes.cs.unb.ca> +MIME-Version: 1.0 +Content-Type: text/plain +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, 03 Jan 2015 13:30:24 -0000 + +Tamas Szakaly writes: + +> -----BEGIN PGP SIGNED MESSAGE----- +> Hash: SHA1 +> +> Dear notmuch developers, +> +> The following line is from _notmuch_message_add_directory_terms in +> lib/message.cc (line 652 in HEAD): +> +> direntry = (*i).c_str (); +> + +This should be fixed in commit 3d978a0d + +d