p11-kit >= 0.23.6 assertion error on 32bit big endian

Andreas Metzler ametzler at bebt.de
Sat Jul 1 16:43:14 UTC 2017


p11-kit >= 0.23.6 has a testsuite error on 32bit big endian (e.g.
mips, PowerPC or hppa):
ok 12 /rpc/byte-value
not ok 13 /rpc/ulong-value
# assertion failed ((CK_ULONG)0x0123456708ABCDEF == val64): (145477103 == 4294967295)
# in test_ulong_value() at test-rpc.c:436
ok 14 /rpc/attribute-array-value

I have bisected the issue:
ba49b85ecf280e7fb6eec96c3ef33c50122e75a6 is the first bad commit
commit ba49b85ecf280e7fb6eec96c3ef33c50122e75a6
Author: Daiki Ueno <dueno at redhat.com>
Date:   Thu May 11 15:26:36 2017 +0200

    rpc: Convert attribute value for portability

    When using the RPC across multiple architectures, where data models
    are different, say LP64 vs ILP32, there can be unwanted truncation of
    attribute values.

    This patch converts the values into portable format for the known

    Co-authored-by: Nikos Mavrogiannopoulos <nmav at redhat.com>

:040000 040000 334fb40cb271303aa6740cb4763bdb8868942bae 68bd4e3a4d0b754d63227ed2411c975704cd1007 M      p11-kit

cu Andreas
`What a good friend you are to him, Dr. Maturin. His other friends are
so grateful to you.'
`I sew his ears on from time to time, sure'

More information about the p11-glue mailing list