From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 4N5rDF3z2mERcwEAgWs5BA (envelope-from ) for ; Sun, 09 Jan 2022 15:38:21 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id AM/+BF3z2mFgvgAAG6o9tA (envelope-from ) for ; Sun, 09 Jan 2022 15:38:21 +0100 Received: from mail.notmuchmail.org (yantan.tethera.net [IPv6:2a01:4f9:c011:7a79::1]) (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 9568129A5E for ; Sun, 9 Jan 2022 15:38:20 +0100 (CET) Received: from yantan.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id 08C595F6CC; Sun, 9 Jan 2022 14:38:15 +0000 (UTC) Received: from fethera.tethera.net (fethera.tethera.net [IPv6:2607:5300:60:c5::1]) by mail.notmuchmail.org (Postfix) with ESMTP id 78B515F402 for ; Sun, 9 Jan 2022 14:38:12 +0000 (UTC) Received: by fethera.tethera.net (Postfix, from userid 1001) id 6B11F5FC42; Sun, 9 Jan 2022 09:38:11 -0500 (EST) Received: (nullmailer pid 3682803 invoked by uid 1000); Sun, 09 Jan 2022 14:38:10 -0000 From: David Bremner To: notmuch@notmuchmail.org Subject: v2 fix leaks in n_d_open_with_config Date: Sun, 9 Jan 2022 10:38:01 -0400 Message-Id: <20220109143805.3682660-1-david@tethera.net> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Message-ID-Hash: ZTL6EZWA2EPXHQDQQVKW7PNMWF5MSST4 X-Message-ID-Hash: ZTL6EZWA2EPXHQDQQVKW7PNMWF5MSST4 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-Country: DE ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1641739100; 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=u02tkFUDUr+g7R17JXSJEz4Fyjm2EGqyrhKUFpKrW8c=; b=ktz7So4Rd4GUAJJDK7UAbLW9ukP5rtmNjccRZ+E1bLNcKZuQenRQHkXOOxtjDkFeo+nA6h in9KFpflkpo3glOeNjOfp8DXxw1po+8RMTVce+b9fx7AnpbmR3dCXVKdFJQAb/tnp4SqqO FmZCtxPs/H4lcmKo2p50k+LtUCuPDAywwaROAXHOjWM5hH3eXpoUro+hxl6goQJixDukvb iNVq/ufYDcUPf5pgf8HHcNdAmeabit1YcrkXeEG6I/zthe82UCDqFDMoVNCNwn7WtekZEh jGF1emHIyf+nQj1ODZYBlBm/6DZb8a8hZHrsbn/TSE1355q4QxBNpKHyIItIQA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1641739100; a=rsa-sha256; cv=none; b=cBHfXKcCNnXRm6pCsKpj66mv2TV92EAsicswlQ9ScC9S1fObGqXHjIpHuhQ0DcKzUkILFd Gdzf0fnovP8fY0yYtchOVAxPH0/TuqcLJ83ayJfjqeD+PUj2eBKhyMLZqFRMis7unGI2KN 0QCE4OO0qdxiKY0xKnTt53NQfSMpuWV7fl4Fi2RHW26xYZwRmI2jNbK9ofvelbc4yR3U+m QYBEfhpGJJjtVcXhRuB7inZzvhb7KatpcIFdPSBiu+Hlr5PK8k4Wgbi5tdwLeYuHnjy3mF YLeKT3nlZssnDzFCEb5yFXWb+gm00WN/9Pd0hwmuByDhmW93mMU2JYnoPYQIng== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 2a01:4f9:c011:7a79::1 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Spam-Score: -2.29 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 2a01:4f9:c011:7a79::1 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Queue-Id: 9568129A5E X-Spam-Score: -2.29 X-Migadu-Scanner: scn0.migadu.com X-TUID: 7qfongvyJ04b I'm slightly worried that ASAN tests will prove to be flaky. If they are reliable enough, it could help catch future memory errors, which are much more dangerous than the small leak fixed here.