[git] Pinentry - branch, master, updated. pinentry-0.9.3-6-g554250b
by Neal H. Walfield
cvs at cvs.gnupg.org
Fri Jun 5 16:44:34 CEST 2015
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "The standard pinentry collection".
The branch, master has been updated
via 554250b56ae00d590d05b1c5af7892314f0e72d8 (commit)
from c29c5657fd77e212799715c23806a0cb6e1cfd47 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 554250b56ae00d590d05b1c5af7892314f0e72d8
Author: Neal H. Walfield <neal at gnu.org>
Date: Fri Jun 5 05:29:03 2015 +0200
secmem: When clearing memory, don't clear beyond the end of the buffer.
* secmem/secmem.c (secmem_malloc): Only clear the user memory; don't
clear beyond the end of the buffer.
diff --git a/secmem/secmem.c b/secmem/secmem.c
index 9a478cf..7a3bd4b 100644
--- a/secmem/secmem.c
+++ b/secmem/secmem.c
@@ -363,7 +363,8 @@ secmem_malloc( size_t size )
if( cur_blocks > max_blocks )
max_blocks = cur_blocks;
- memset (&mb->u.aligned.c, 0, size);
+ memset (&mb->u.aligned.c, 0,
+ size - (size_t) &((struct memblock_struct *) 0)->u.aligned.c);
return &mb->u.aligned.c;
}
-----------------------------------------------------------------------
Summary of changes:
secmem/secmem.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
hooks/post-receive
--
The standard pinentry collection
http://git.gnupg.org
More information about the Gnupg-commits
mailing list