]> git.pld-linux.org Git - packages/3store.git/commitdiff
- fix format string errors auto/th/3store-2.2.22-11
authorJan Rękorajski <baggins@pld-linux.org>
Tue, 18 Oct 2016 17:04:06 +0000 (19:04 +0200)
committerJan Rękorajski <baggins@pld-linux.org>
Tue, 18 Oct 2016 17:04:06 +0000 (19:04 +0200)
- rel 11

3store.spec
format-security.patch [new file with mode: 0644]

index ed0e5f7f82c8c50e62bf9e15d2eebd4ab9bfd4de..942ece799a80f084dd9bdd1f75ed23f2977cfcaa 100644 (file)
@@ -6,13 +6,14 @@ Summary:      3store RDF engine
 Summary(pl.UTF-8):     Silnik RDF 3store
 Name:          3store
 Version:       2.2.22
-Release:       10
+Release:       11
 License:       GPL v2+
 Group:         Libraries
 Source0:       http://dl.sourceforge.net/threestore/%{name}-%{version}.tar.gz
 # Source0-md5: 6fa70d2830c82eb030d8888f4da0c86c
 Patch0:                %{name}-ac.patch
 Patch1:                glib2.patch
+Patch2:                format-security.patch
 URL:           http://threestore.sourceforge.net/
 BuildRequires: autoconf
 BuildRequires: automake
@@ -70,6 +71,7 @@ Statyczna biblioteka 3store.
 %setup -q
 %patch0 -p1
 %{?with_glib2:%patch1 -p1}
+%patch2 -p1
 
 %build
 %{__libtoolize}
diff --git a/format-security.patch b/format-security.patch
new file mode 100644 (file)
index 0000000..5fe2df1
--- /dev/null
@@ -0,0 +1,22 @@
+--- 3store-2.2.22/src/rdfsql/rdql.c~   2005-07-18 19:54:59.000000000 +0200
++++ 3store-2.2.22/src/rdfsql/rdql.c    2016-10-18 19:01:52.998317482 +0200
+@@ -535,7 +535,7 @@
+       res->error_str = g_strdup_printf("SQL error in '%s' %d: %s\n",
+                                        sql_query, mysql_errno(this->db),
+                                        mysql_error(this->db));
+-      fprintf(stderr, res->error_str);
++      fprintf(stderr, "%s", res->error_str);
+       fprintf(stderr, "Query: %s\n", sql_query);
+       return res;
+--- 3store-2.2.22/src/tools/tstore_setup.c~    2005-07-18 16:01:15.000000000 +0200
++++ 3store-2.2.22/src/tools/tstore_setup.c     2016-10-18 19:02:50.583911067 +0200
+@@ -254,7 +254,7 @@
+               }
+           }
+           LOG(1, "SQL: ");
+-          LOG(1, tmp);
++          LOG(1, "%s", tmp);
+           LOG(1, "\n");
+           if (mysql_query(mdb, tmp)) {
+               if (mysql_errno(mdb) == ER_TABLE_EXISTS_ERROR) {
This page took 0.080916 seconds and 4 git commands to generate.