[git] GPG-ERROR - branch, master, updated. libgpg-error-1.31-6-gfe2f8fc
    by Andre Heinecke 
    cvs at cvs.gnupg.org
       
    Thu Jul  5 08:51:51 CEST 2018
    
    
  
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 "Error codes used by GnuPG et al.".
The branch, master has been updated
       via  fe2f8fca3114e3a5727fdbbc5e7ebc4e442d0401 (commit)
      from  043a91b8cd4bb71cb96086b51d6bc1b1a1821a41 (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 fe2f8fca3114e3a5727fdbbc5e7ebc4e442d0401
Author: Andre Heinecke <aheinecke at intevation.de>
Date:   Wed Jul 4 18:19:42 2018 +0200
    core: Initialize values in estream_format
    
    * src/estream-printf.c (_gpgrt_estream_format): Make sure
    valuetable.value is inialized even on stack.
    
    --
    This makes the behavior more consistent with the calloc'ed
    codepath for more then 8 variables.
    
    It also fixes a potential crash if there were unmatched
    format args provided.
    
    GnuPG-Bug-Id: T4054
diff --git a/src/estream-printf.c b/src/estream-printf.c
index f1cbcde..eb6fa3a 100644
--- a/src/estream-printf.c
+++ b/src/estream-printf.c
@@ -1565,7 +1565,11 @@ _gpgrt_estream_format (estream_printf_out_t outfnc,
   else
     {
       for (validx=0; validx < DIM(valuetable_buffer); validx++)
-        valuetable[validx].vt = VALTYPE_UNSUPPORTED;
+        {
+          valuetable[validx].vt = VALTYPE_UNSUPPORTED;
+          memset (&valuetable[validx].value, 0,
+                  sizeof valuetable[validx].value);
+        }
     }
   for (argidx=0; argidx < argspecs_len; argidx++)
     {
-----------------------------------------------------------------------
Summary of changes:
 src/estream-printf.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
hooks/post-receive
-- 
Error codes used by GnuPG et al.
http://git.gnupg.org
    
    
More information about the Gnupg-commits
mailing list