]> granicus.if.org Git - neomutt/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)
commit4cc6c93717a03789194e08185a34bf30884a07e6
tree9fdb6e5893547e789128ce587a2e0fad6b342ec7
parent1191279a2a05c81a3b5d24d77a652ff3c2a9a933
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