[git] GnuPG - branch, STABLE-BRANCH-2-2, updated. gnupg-2.2.4-2-g290348e

by Werner Koch cvs at cvs.gnupg.org
Wed Dec 20 16:03:12 CET 2017


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 GNU Privacy Guard".

The branch, STABLE-BRANCH-2-2 has been updated
       via  290348e349e8d56a856f187a08e913f2ed525b3c (commit)
      from  84555d53720cc9240535ed9b57f1efcc9927f6dc (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 290348e349e8d56a856f187a08e913f2ed525b3c
Author: Werner Koch <wk at gnupg.org>
Date:   Wed Dec 20 15:37:29 2017 +0100

    common: Use larger buffer for homedir in case of 64 bit UIDs.
    
    * common/homedir.c (_gnupg_socketdir_internal): Enlarge PREFIX by 6
    bytes for "/gnupg".
    --
    
    The temporary buffer was to short for the extra "/gnupg".  However the
    20 bytes for the UID is large enough for all 32 bit UIDs and would
    only fail (detected) if  a 64 bit UID is used.
    
    Fixes-commit: 17efcd2a2acdc3b7f00711272aa51e5be2476921
    Reported-by: Rainer Perske.
    Signed-off-by: Werner Koch <wk at gnupg.org>

diff --git a/common/homedir.c b/common/homedir.c
index a598900..65cf50f 100644
--- a/common/homedir.c
+++ b/common/homedir.c
@@ -554,7 +554,7 @@ _gnupg_socketdir_internal (int skip_checks, unsigned *r_info)
   };
   int i;
   struct stat sb;
-  char prefix[13 + 1 + 20 + 6 + 1];
+  char prefix[19 + 1 + 20 + 6 + 1];
   const char *s;
   char *name = NULL;
 

-----------------------------------------------------------------------

Summary of changes:
 common/homedir.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)


hooks/post-receive
-- 
The GNU Privacy Guard
http://git.gnupg.org




More information about the Gnupg-commits mailing list