diff options
author | Justus Winter <[email protected]> | 2017-04-07 10:27:47 +0000 |
---|---|---|
committer | Justus Winter <[email protected]> | 2017-04-07 10:27:47 +0000 |
commit | bf8b5e9042b3d86d419b2ac1987a9298c9d21500 (patch) | |
tree | 120c9946a47bc17a3bad06c4a6f8a6a43d0cd5a8 /tests/gpgscm/scheme.c | |
parent | doc: Explain the '>' in a key listing. (diff) | |
download | gnupg-bf8b5e9042b3d86d419b2ac1987a9298c9d21500.tar.gz gnupg-bf8b5e9042b3d86d419b2ac1987a9298c9d21500.zip |
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 <[email protected]>
Diffstat (limited to 'tests/gpgscm/scheme.c')
0 files changed, 0 insertions, 0 deletions