GNOME Bugzilla – Bug 752990
pkcs11: Fix mismatches of length types
Last modified: 2015-07-31 13:50:53 UTC
When I run seahorse from the command line, I get: (seahorse:31446): Gcr-WARNING **: a derived class provided an invalid or unparseable X.509 DER certificate data. and sometimes it causes crash: ** ERROR:egg/egg-asn1x.c:829:atlv_parse_cls_tag_len: assertion failed: (end >= at) zsh: abort (core dumped) ./seahorse This doesn't happen with the versions prior to the Vala port of pkcs11 backend (3.10.2 or earlier). After digging it a bit, I found a signature mismatch of get_der_data vfunc between GcrCertificate and SeahorsePkcs11Certificate.
Created attachment 308351 [details] [review] pkcs11: Fix mismatches of length types The get_der_data vfunc of GcrCertificate reports the length of data in size_t, while the Vala generated code uses int and causes ASN.1 parsing error if sizeof(size_t) != sizeof(int).
Thanks! Merged into git master. Attachment 308351 [details] pushed as e9a8634 - pkcs11: Fix mismatches of length types