p11-kit >= 0.23.6 assertion error on 32bit big endian
Daiki Ueno
dueno at redhat.com
Mon Jul 10 07:37:21 UTC 2017
Andreas Metzler <ametzler at bebt.de> writes:
> Still no luck. :-(
>
> ok 12 /rpc/byte-value
> not ok 13 /rpc/ulong-value
> # assertion failed (7 + 4 == buffer.len): (11 == 15)
> # in test_ulong_value() at test-rpc.c:429
I missed the fact that a ulong value is always stored as 64-bit integer
internally. The following change to the previous patch should fix the
issue:
- assert_num_eq (7 + SIZEOF_UNSIGNED_LONG, buffer.len);
+ assert_num_eq (7 + 8, buffer.len);
I have opened a PR with the new patch:
https://github.com/p11-glue/p11-kit/pull/86
Regards,
--
Daiki Ueno
More information about the p11-glue
mailing list