[git] GnuPG - branch, master, updated. gnupg-2.1.20-19-gbf8b5e9

by Justus Winter cvs at cvs.gnupg.org
Fri Apr 7 13:05:56 CEST 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, master has been updated
       via  bf8b5e9042b3d86d419b2ac1987a9298c9d21500 (commit)
      from  9c9fde1495be4accf4526a2626110876fd9d788d (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 bf8b5e9042b3d86d419b2ac1987a9298c9d21500
Author: Justus Winter <justus at g10code.com>
Date:   Fri Apr 7 12:27:47 2017 +0200

    gpgscm: Fix compact vector encoding.
    
    * tests/gpgscm/scheme-private.h (struct cell): Use uintptr_t for
    '_flags'.  This way, '_flags' has the size of a machine word.
    --
    
    The compact vector representation introduced in 49e2ae65 requires that
    we can tell apart pointers and type flags.  This did not work on
    64-bit big-endian architectures.
    
    Fixes a crash on 64-bit big-endian architectures.
    
    Hat-tip-to: gniibe
    Fixes-commit: 49e2ae65e892f93be7f87cfaae3392b50a99e4b1
    Signed-off-by: Justus Winter <justus at g10code.com>

diff --git a/tests/gpgscm/scheme-private.h b/tests/gpgscm/scheme-private.h
index abd89e8..fe50135 100644
--- a/tests/gpgscm/scheme-private.h
+++ b/tests/gpgscm/scheme-private.h
@@ -3,6 +3,7 @@
 #ifndef _SCHEME_PRIVATE_H
 #define _SCHEME_PRIVATE_H
 
+#include <stdint.h>
 #include "scheme.h"
 /*------------------ Ugly internals -----------------------------------*/
 /*------------------ Of interest only to FFI users --------------------*/
@@ -42,7 +43,7 @@ typedef struct port {
 
 /* cell structure */
 struct cell {
-  unsigned int _flag;
+  uintptr_t _flag;
   union {
     struct {
       char   *_svalue;

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

Summary of changes:
 tests/gpgscm/scheme-private.h | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)


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




More information about the Gnupg-commits mailing list