[Pkg-gnupg-commit] [gnupg2] 123/292: gpgscm: Initialize nesting stack.

Daniel Kahn Gillmor dkg at fifthhorseman.net
Mon Nov 21 06:31:33 UTC 2016


This is an automated email from the git hooks/post-receive script.

dkg pushed a commit to branch master
in repository gnupg2.

commit c2e713d9e25ef8b61e8eeb3c01ee1e31cb70b794
Author: Justus Winter <justus at g10code.com>
Date:   Fri Oct 14 11:17:50 2016 +0200

    gpgscm: Initialize nesting stack.
    
    * tests/gpgscm/scheme.c (scheme_init_custom_alloc): Initialize nesting
    stack.
    
    Fixes-commit: f2249b737055f84842778285bbeff5e61fa55225
    Signed-off-by: Justus Winter <justus at g10code.com>
---
 tests/gpgscm/scheme.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tests/gpgscm/scheme.c b/tests/gpgscm/scheme.c
index 5a85063..0e31dc5 100644
--- a/tests/gpgscm/scheme.c
+++ b/tests/gpgscm/scheme.c
@@ -4765,6 +4765,7 @@ int scheme_init_custom_alloc(scheme *sc, func_alloc malloc, func_dealloc free) {
   sc->save_inport=sc->NIL;
   sc->loadport=sc->NIL;
   sc->nesting=0;
+  memset (sc->nesting_stack, 0, sizeof sc->nesting_stack);
   sc->interactive_repl=0;
   sc->strbuff = sc->malloc(STRBUFFSIZE);
   if (sc->strbuff == 0) {

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-gnupg/gnupg2.git



More information about the Pkg-gnupg-commit mailing list