CBL-Mariner/SPECS/colord/CVE-2021-42523.patch

25 строки
901 B
Diff

diff -Naur a/src/cd-device-db.c b/src/cd-device-db.c
--- a/src/cd-device-db.c 2019-03-08 04:43:10.000000000 -0800
+++ b/src/cd-device-db.c 2022-09-01 17:19:29.006382333 -0700
@@ -91,7 +91,7 @@
/* check properties version 2 */
rc = sqlite3_exec (priv->db, "SELECT * FROM properties_v2 LIMIT 1",
- NULL, NULL, &error_msg);
+ NULL, NULL, NULL);
if (rc != SQLITE_OK) {
statement = "CREATE TABLE properties_v2 ("
"device_id TEXT,"
diff -Naur a/src/cd-profile-db.c b/src/cd-profile-db.c
--- a/src/cd-profile-db.c 2019-03-08 04:43:11.000000000 -0800
+++ b/src/cd-profile-db.c 2022-09-01 17:21:45.006213393 -0700
@@ -79,7 +79,7 @@
/* check schema */
rc = sqlite3_exec (priv->db, "SELECT * FROM properties_pu LIMIT 1",
- NULL, NULL, &error_msg);
+ NULL, NULL, NULL);
if (rc != SQLITE_OK) {
statement = "CREATE TABLE properties_pu ("
"profile_id TEXT,"