From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 0D2B1139083 for ; Wed, 6 Dec 2017 08:39:58 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 1F8F8E115E; Wed, 6 Dec 2017 08:39:57 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id F1551E115E for ; Wed, 6 Dec 2017 08:39:56 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 2AB9033BEBE for ; Wed, 6 Dec 2017 08:39:55 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id E2E7CAE66 for ; Wed, 6 Dec 2017 08:39:53 +0000 (UTC) From: "Michał Górny" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michał Górny" Message-ID: <1512549555.7cfa6daaac45e56fbbc8da9928c698adf1d52ec0.mgorny@gentoo> Subject: [gentoo-commits] proj/portage:master commit in: pym/portage/ X-VCS-Repository: proj/portage X-VCS-Files: pym/portage/checksum.py X-VCS-Directories: pym/portage/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: 7cfa6daaac45e56fbbc8da9928c698adf1d52ec0 X-VCS-Branch: master Date: Wed, 6 Dec 2017 08:39:53 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: e49f0ecd-c4cf-4289-83cd-12ae88001173 X-Archives-Hash: 4f992296dd020d1a80682afd732f0ac1 commit: 7cfa6daaac45e56fbbc8da9928c698adf1d52ec0 Author: Michał Górny gentoo org> AuthorDate: Tue Dec 5 19:58:47 2017 +0000 Commit: Michał Górny gentoo org> CommitDate: Wed Dec 6 08:39:15 2017 +0000 URL: https://gitweb.gentoo.org/proj/portage.git/commit/?id=7cfa6daa [checksum] Do not use secure memory for pygcrypt backend Disable using secure memory for pygcrypt backend since we are not processing secrets. This can avoid the libgcrypt memory error; however, it turned out to be a huge memory/resource leak which needs to be fixed independently. Reviewed-by: Zac Medico gentoo.org> pym/portage/checksum.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pym/portage/checksum.py b/pym/portage/checksum.py index 9e7bffea9..4174638e6 100644 --- a/pym/portage/checksum.py +++ b/pym/portage/checksum.py @@ -161,7 +161,8 @@ if False: class GCryptHashWrapper(object): def __init__(self, algo): - self._obj = pygcrypt.hashcontext.HashContext(algo=algo) + self._obj = pygcrypt.hashcontext.HashContext(algo=algo, + secure=False) def update(self, data): self._obj.write(data)