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

Daiki Ueno dueno at redhat.com
Mon Jul 3 13:44:49 UTC 2017


Hello,

Andreas Metzler <ametzler at bebt.de> writes:

> Hello,
>
> 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:

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.

Regards,
-- 
Daiki Ueno
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-test-Fix-failure-on-32-bit-big-endian-platform.patch
Type: text/x-patch
Size: 1006 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/p11-glue/attachments/20170703/041df02d/attachment.bin>


More information about the p11-glue mailing list