Message ID | 3c79237085169b96cc56910b08263437cad09e4d.1646661615.git.anuj.mittal@intel.com |
---|---|
State | Accepted, archived |
Commit | 3c79237085169b96cc56910b08263437cad09e4d |
Headers | show |
Series | [honister,01/25] harfbuzz: upgrade 2.9.0 -> 2.9.1 | expand |
diff --git a/meta/classes/cve-check.bbclass b/meta/classes/cve-check.bbclass index 21d3da7974..646929d2ed 100644 --- a/meta/classes/cve-check.bbclass +++ b/meta/classes/cve-check.bbclass @@ -265,7 +265,8 @@ def get_cve_info(d, cves): import sqlite3 cve_data = {} - conn = sqlite3.connect(d.getVar("CVE_CHECK_DB_FILE")) + db_file = d.expand("file:${CVE_CHECK_DB_FILE}?mode=ro") + conn = sqlite3.connect(db_file, uri=True) for cve in cves: for row in conn.execute("SELECT * FROM NVD WHERE ID IS ?", (cve,)):