[git] Pinentry - branch, master, updated. pinentry-0.9.1-15-gaaec7c7
by Neal H. Walfield
cvs at cvs.gnupg.org
Thu May 7 11:32:08 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 aaec7c7c50adfb51510962a14c0fa2179a34a01e (commit)
from cbecc6d38a86f8fa7c052efab7649be07b5df334 (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 aaec7c7c50adfb51510962a14c0fa2179a34a01e
Author: Neal H. Walfield <neal at gnu.org>
Date: Thu May 7 11:31:01 2015 +0200
Align secmem_realloc behavior with realloc's.
* secmem/secmem.c (secmem_realloc): If passed a NULL pointer, then
call secmem_malloc instead of crashing.
diff --git a/secmem/secmem.c b/secmem/secmem.c
index fed7e97..c5da0b5 100644
--- a/secmem/secmem.c
+++ b/secmem/secmem.c
@@ -1,5 +1,6 @@
/* secmem.c - memory allocation from a secure heap
* Copyright (C) 1998, 1999, 2003 Free Software Foundation, Inc.
+ * Copyright (C) 2015 g10 Code GmbH
*
* This file is part of GnuPG.
*
@@ -373,6 +374,9 @@ secmem_realloc( void *p, size_t newsize )
size_t size;
void *a;
+ if (! p)
+ return secmem_malloc(newsize);
+
mb = (MEMBLOCK*)((char*)p - ((size_t) &((MEMBLOCK*)0)->u.aligned.c));
size = mb->size;
if( newsize < size )
-----------------------------------------------------------------------
Summary of changes:
secmem/secmem.c | 4 ++++
1 file changed, 4 insertions(+)
hooks/post-receive
--
The standard pinentry collection
http://git.gnupg.org
More information about the Gnupg-commits
mailing list