Hello community,

here is the log from the commit of package MyODBC-unixODBC for openSUSE:Factory 
checked in at 2015-02-27 11:10:22
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/MyODBC-unixODBC (Old)
 and      /work/SRC/openSUSE:Factory/.MyODBC-unixODBC.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "MyODBC-unixODBC"

Changes:
--------
--- /work/SRC/openSUSE:Factory/MyODBC-unixODBC/MyODBC-unixODBC.changes  
2014-03-04 13:56:14.000000000 +0100
+++ /work/SRC/openSUSE:Factory/.MyODBC-unixODBC.new/MyODBC-unixODBC.changes     
2015-02-27 11:10:23.000000000 +0100
@@ -1,0 +2,9 @@
+Fri Feb 20 21:32:37 UTC 2015 - km...@suse.com
+
+- Fix segfault in myodbc-install when freeing pointer (allocated with
+  basic malloc()) using x_free()/my_free(). my_free() accesses 8 bytes
+  before the pointer returned by malloc(), hence my_malloc() is needed.
+  (Bug#881624)
+  * added MyODBC-unixODBC-my_malloc_when_using_my_free.patch
+
+-------------------------------------------------------------------

New:
----
  MyODBC-unixODBC-my_malloc_when_using_my_free.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ MyODBC-unixODBC.spec ++++++
--- /var/tmp/diff_new_pack.N1SzKc/_old  2015-02-27 11:10:24.000000000 +0100
+++ /var/tmp/diff_new_pack.N1SzKc/_new  2015-02-27 11:10:24.000000000 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package MyODBC-unixODBC
 #
-# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -32,6 +32,7 @@
 Patch1:         MyODBC-unixODBC-my_free.patch
 Patch3:         MyODBC-unixODBC-64bit.patch
 Patch4:         MyODBC-unixODBC-my_init_dynamic_array_flags.patch
+Patch5:         MyODBC-unixODBC-my_malloc_when_using_my_free.patch
 BuildRequires:  libtool
 BuildRequires:  mysql-devel
 BuildRequires:  unixODBC-devel
@@ -52,6 +53,7 @@
 if grep -l 'my_init_dynamic_array(A,B,C,D,E)' /usr/include/mysql/my_sys.h; then
 %patch4
 fi
+%patch5 -p1
 
 %build
 # mysql 5.5.10 has stopped #define'ing THREAD in its exports, and has

++++++ MyODBC-unixODBC-my_malloc_when_using_my_free.patch ++++++
Index: mysql-connector-odbc-5.1.8/util/odbcinstw.c
===================================================================
--- mysql-connector-odbc-5.1.8.orig/util/odbcinstw.c
+++ mysql-connector-odbc-5.1.8/util/odbcinstw.c
@@ -68,7 +68,7 @@ MySQLGetPrivateProfileStringW(const LPWS
   filename= (char *)sqlwchar_as_utf8(lpszFilename, &len);
 
   if (lpszRetBuffer && cbRetBuffer)
-    ret= malloc(cbRetBuffer + 1);
+    ret= my_malloc(cbRetBuffer + 1, MYF(0));
   else
     ret= NULL;
 
-- 
To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org
For additional commands, e-mail: opensuse-commit+h...@opensuse.org

Reply via email to