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

Andreas Metzler ametzler at bebt.de
Mon Jul 3 17:09:29 UTC 2017


On 2017-07-03 Daiki Ueno <dueno at redhat.com> wrote:
> Andreas Metzler <ametzler at bebt.de> writes:

>> 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
[...]

> Thank you for the report and the analysis.  Although I don't have access
> to such systems, I believe the attached patch should fix the problem.

Thanks, it still fails with a slightly different error:

not ok 13 /rpc/ulong-value
# assertion failed ((CK_ULONG)0x0123456708ABCDEF == *(CK_ULONG *)&val64): (145477103 == 19088743)
# in test_ulong_value() at test-rpc.c:436

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