From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id GILnN1kLjmKDOwAAbAwnHQ (envelope-from ) for ; Wed, 25 May 2022 12:56:25 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id EHjbN1kLjmLF0wAA9RJhRA (envelope-from ) for ; Wed, 25 May 2022 12:56:25 +0200 Received: from mail.notmuchmail.org (yantan.tethera.net [135.181.149.255]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 7C02CE0C9 for ; Wed, 25 May 2022 12:56:25 +0200 (CEST) Received: from yantan.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id 509AC5F724; Wed, 25 May 2022 10:56:23 +0000 (UTC) Received: from fethera.tethera.net (fethera.tethera.net [198.245.60.197]) by mail.notmuchmail.org (Postfix) with ESMTP id C9B6A5F71C for ; Wed, 25 May 2022 10:56:20 +0000 (UTC) Received: by fethera.tethera.net (Postfix, from userid 1001) id E992B5FBD7; Wed, 25 May 2022 06:56:19 -0400 (EDT) Received: (nullmailer pid 11227 invoked by uid 1000); Wed, 25 May 2022 10:56:18 -0000 From: David Bremner To: notmuch@notmuchmail.org Subject: [PATCH] lib: fix uninitialized field in message objects. Date: Wed, 25 May 2022 07:56:09 -0300 Message-Id: <20220525105609.11215-1-david@tethera.net> X-Mailer: git-send-email 2.35.2 MIME-Version: 1.0 Message-ID-Hash: 4DF2D4OB3CJHSPLNRZ5466NQONARYPPY X-Message-ID-Hash: 4DF2D4OB3CJHSPLNRZ5466NQONARYPPY X-MailFrom: bremner@tethera.net X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-notmuch.notmuchmail.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.3 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: DE ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1653476185; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding:list-id:list-help: list-owner:list-unsubscribe:list-subscribe:list-post; bh=q5vbsrt9mvsfFdj7eBocRZWyJnf6lQ0t2YiKG+YPbnA=; b=OoBtJqIWQjp17IZI+Fx8M5rs3EziboWSnF4XnlgnnXrUVSFIgt5tFiUT8RIgWxobqBgFD8 vX8Wr9nHtrE7j38srmB2e42RMiXobGYUvqvyPqQiMe7GgxTSn1LbGa8LhpjYOYJ88dpl/D L0G7SUMgJId6nuRTQOQuiJ1XBDZou5o040wmcS+08YOS4bwRJGCJOvWW/ycbJ6BUSXccxs iN0eiyTmNzg1GZrnQ3Ygq32ctE2g7hkUixSlhiTMNWGVwKsOcn3VtffDC5fsQuHDGKrxKN 4/F9F4MU3DpyyLHXe9d/q0NbYlPCzx2jYGNa6n+ElsUkBRmjPhQkml8ZzN6T+A== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1653476185; a=rsa-sha256; cv=none; b=VdM/cYQtEKqStNsZFkwEFuO76hM1d62Wt0Il5tDEBQ7MfWntmk8lnDPQ/J05MqNb76THgc 2qZQovuRt5skQ/smZ2grsK4nmsw1jyoK66D3bInfyINSYCsNEu1fMDh66FrdbBufo1cmzp f604z2JNlF4A5EWF7O4U1S5DNSbbypXTZPZI38bKpZhs6IK5ysf43GQ+rcyXpu83GiM3iY TiIEbBqeFw+dizYb2fYB0wl3qY5iO5lZffRReDMLmyoqPMl3U9OGpFkisJ4xxyohFdHg7X +K+U+LalvgP+44eEG5PmtcIFCO6oU/8jFoIRpBT0l6I69jjxZJ3jtwaIrPnpmA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 135.181.149.255 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Spam-Score: -1.00 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 135.181.149.255 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Queue-Id: 7C02CE0C9 X-Spam-Score: -1.00 X-Migadu-Scanner: scn0.migadu.com X-TUID: +quW+N6pLoZ7 Initially reported by Eliza Vasquez [1] (via valgrind). [1]: id:87o7zxj086.fsf@eliza. --- lib/message.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/message.cc b/lib/message.cc index 63b216b6..bd3cb5af 100644 --- a/lib/message.cc +++ b/lib/message.cc @@ -169,6 +169,7 @@ _notmuch_message_create_for_document (const void *talloc_owner, message->doc = doc; message->termpos = 0; + message->modified = FALSE; return message; } -- 2.35.2