1 |
commit: 7cfa6daaac45e56fbbc8da9928c698adf1d52ec0 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Dec 5 19:58:47 2017 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Dec 6 08:39:15 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/portage.git/commit/?id=7cfa6daa |
7 |
|
8 |
[checksum] Do not use secure memory for pygcrypt backend |
9 |
|
10 |
Disable using secure memory for pygcrypt backend since we are not |
11 |
processing secrets. This can avoid the libgcrypt memory error; however, |
12 |
it turned out to be a huge memory/resource leak which needs to be fixed |
13 |
independently. |
14 |
|
15 |
Reviewed-by: Zac Medico <zmedico <AT> gentoo.org> |
16 |
|
17 |
pym/portage/checksum.py | 3 ++- |
18 |
1 file changed, 2 insertions(+), 1 deletion(-) |
19 |
|
20 |
diff --git a/pym/portage/checksum.py b/pym/portage/checksum.py |
21 |
index 9e7bffea9..4174638e6 100644 |
22 |
--- a/pym/portage/checksum.py |
23 |
+++ b/pym/portage/checksum.py |
24 |
@@ -161,7 +161,8 @@ if False: |
25 |
|
26 |
class GCryptHashWrapper(object): |
27 |
def __init__(self, algo): |
28 |
- self._obj = pygcrypt.hashcontext.HashContext(algo=algo) |
29 |
+ self._obj = pygcrypt.hashcontext.HashContext(algo=algo, |
30 |
+ secure=False) |
31 |
|
32 |
def update(self, data): |
33 |
self._obj.write(data) |