]> granicus.if.org Git - mutt/commit
Add time_t conversion to fix gpgme segfault on OpenBSD.
authorKevin McCarthy <kevin@8t8.us>
Thu, 3 Sep 2015 01:11:28 +0000 (18:11 -0700)
committerKevin McCarthy <kevin@8t8.us>
Thu, 3 Sep 2015 01:11:28 +0000 (18:11 -0700)
commitff61595a0739f5d201a9722306df1d7f9838fc0e
tree9fdb6e5893547e789128ce587a2e0fad6b342ec7
parent4a0a7de035865acc5149f4494cea5ad66f105bb6
Add time_t conversion to fix gpgme segfault on OpenBSD.

time_t isn't the same size as gpgme_subkey_t->timestamp on OpenBSD.
Passing &subkey->timestamp to localtime was therefore passing an address
to the wrong size int and was causing a segfault.

Thanks to Hannes Wenzel for reporting the bug and providing a patch.
crypt-gpgme.c