Diffusion GnuPG bf8b5e9042b3

gpgscm: Fix compact vector encoding.

Authored by justus on Apr 7 2017, 12:27 PM.

Description

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.

Details

Committed
justusApr 7 2017, 12:27 PM
Differential Revision
D421: padding is needed for 64-bit big endian
Parents
rG9c9fde1495be: doc: Explain the '>' in a key listing.
Branches
Unknown
Tags
Unknown