Home GnuPG

gpgscm: Fix compact vector encoding.

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

Provenance
justusAuthored on Apr 7 2017, 12:27 PM
Parents
rE00de0fd1cebd: gpgscm: Avoid mutating integer.
Branches
Unknown
Tags
Unknown