GNOME Bugzilla – Bug 777314
BIO methods return 1 for success but they're checked against 0
Last modified: 2017-04-04 08:39:20 UTC
Created attachment 343537 [details] [review] Patch for the issue BIO_meth_* functions return 1 on success, however they're checked against 0, causing BIO_g_tls() to return NULL, which is unchecked by the caller, resulting in a null pointer access and, consequently, crash. The simple patch I've attached fixes this problem by simply inverting the condition. Tested on Linux only, but I don't see why it shouldn't work on other systems as well. Originally posted on GitHub: https://github.com/GNOME/glib-openssl/pull/2
Thanks. For now I was only testing on 1.0.2 so clearly I did not realized about this issue.