{"schema":"libjg2-1",
"vpath":"/git/",
"avatar":"/git/avatar/",
"alang":"",
"gen_ut":1754122920,
"reponame":"openssl",
"desc":"OpenSSL",
"owner": { "name": "Andy Green", "email": "andy@warmcat.com", "md5": "c50933ca2aa61e0fe2c43d46bb6b59cb" },"url":"https://warmcat.com/repo/openssl",
"f":3,
"items": [
{"schema":"libjg2-1",
"cid":"17060fb6fc2e8fb5226b9b1a1c1a4dd1",
"commit": {"type":"commit",
"time": 1563154793,
"time_ofs": 600,
"oid_tree": { "oid": "254d1084c4c8ef4c517a2104d8390393f987c5ce", "alias": []},
"oid":{ "oid": "b4f55c6f6c4d8d2a85ca697d92dfb682f3ebc987", "alias": []},
"msg": "Fix wrong lock claimed in x509 dir lookup.",
"sig_commit": { "git_time": { "time": 1563154793, "offset": 600 }, "name": "Shane Lontis", "email": "shane.lontis@oracle.com", "md5": "82a7909b8d7d6a3da8fe85cd6e096776" },
"sig_author": { "git_time": { "time": 1562618589, "offset": -420 }, "name": "Krists Krilovs", "email": "krists.krilovs@gmail.com", "md5": "0b5e3ea19020b2a0f280d6195d4313df" }},
"body": "Fix wrong lock claimed in x509 dir lookup.\n\nx509 store's objects cache can get corrupted when using dir lookup\nmethod in multithreaded application. Claim x509 store's lock when\naccessing objects cache.\n\nCLA: trivial\n\nReviewed-by: Richard Levitte \u003clevitte@openssl.org\u003e\nReviewed-by: Tomas Mraz \u003ctmraz@fedoraproject.org\u003e\nReviewed-by: Bernd Edlinger \u003cbernd.edlinger@hotmail.de\u003e\nReviewed-by: Paul Dale \u003cpaul.dale@oracle.com\u003e\nReviewed-by: Shane Lontis \u003cshane.lontis@oracle.com\u003e\n(Merged from https://github.com/openssl/openssl/pull/9326)\n\n(cherry picked from commit a161738a708b5e284a4714edc0c976606ea7cb26)\n"
,
"diff": "diff --git a/crypto/x509/by_dir.c b/crypto/x509/by_dir.c\nindex b3760db..a601433 100644\n--- a/crypto/x509/by_dir.c\n+++ b/crypto/x509/by_dir.c\n@@ -327,10 +327,10 @@ static int get_cert_by_subject(X509_LOOKUP *xl, X509_LOOKUP_TYPE type,\n /*\n * we have added it to the cache so now pull it out again\n */\n- CRYPTO_THREAD_write_lock(ctx-\u003elock);\n+ X509_STORE_lock(xl-\u003estore_ctx);\n j \u003d sk_X509_OBJECT_find(xl-\u003estore_ctx-\u003eobjs, \u0026stmp);\n tmp \u003d sk_X509_OBJECT_value(xl-\u003estore_ctx-\u003eobjs, j);\n- CRYPTO_THREAD_unlock(ctx-\u003elock);\n+ X509_STORE_unlock(xl-\u003estore_ctx);\n \n /* If a CRL, update the last file suffix added for this */\n \n","s":{"c":1754122920,"u": 39615}}
],"g": 40869,"chitpc": 0,"ehitpc": 0,"indexed":0
,
"ab": 0, "si": 0, "db":0, "di":0, "sat":0, "lfc": "0000"}