Hello community,

here is the log from the commit of package sysbench for openSUSE:Factory 
checked in at 2016-09-30 15:35:12
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/sysbench (Old)
 and      /work/SRC/openSUSE:Factory/.sysbench.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "sysbench"

Changes:
--------
--- /work/SRC/openSUSE:Factory/sysbench/sysbench.changes        2016-08-28 
12:18:18.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.sysbench.new/sysbench.changes   2016-09-30 
15:35:27.000000000 +0200
@@ -1,0 +2,16 @@
+Thu Sep 29 08:33:22 UTC 2016 - mplus...@suse.com
+
+- Update to version 0.5.0+git.20160922:
+  * Adjust test_mutex.t to pass on slow machines.
+  * Fix LOCK TABLES statements for multi-table MySQL/MyISAM benchmarks.
+  * Basic tests for oltp.lua against MySQL and PostgreSQL.
+  * Prevent script_oltp_*.t failures on slower machines.
+  * {common,bulkinsert}.lua missing from Makefile
+  * Load script from pkgdatadir if not local
+  * Change lua scripts to 'require common' if a testdir wasn't passed
+  * add libaio-dev to travis
+  * Some typo fixes in the docs.
+- Add sysbench_buffer_overflow.patch
+- Enable internal testsuite
+
+-------------------------------------------------------------------

Old:
----
  sysbench-0.5.0+git.20160824.tar.xz

New:
----
  sysbench-0.5.0+git.20160922.tar.xz
  sysbench_buffer_overflow.patch

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

Other differences:
------------------
++++++ sysbench.spec ++++++
--- /var/tmp/diff_new_pack.WCZjfV/_old  2016-09-30 15:35:29.000000000 +0200
+++ /var/tmp/diff_new_pack.WCZjfV/_new  2016-09-30 15:35:29.000000000 +0200
@@ -16,9 +16,9 @@
 #
 
 
-%define version_unconverted 0.5.0+git.20160824
+%define version_unconverted 0.5.0+git.20160922
 Name:           sysbench
-Version:        0.5.0+git.20160824
+Version:        0.5.0+git.20160922
 Release:        0
 Summary:        A MySQL benchmarking tool
 License:        GPL-2.0
@@ -26,8 +26,12 @@
 Url:            https://github.com/akopytov/sysbench
 Source0:        %{name}-%{version}.tar.xz
 Source1:        %{name}-example-tests.tar.bz2
+Patch0:         sysbench_buffer_overflow.patch
 BuildRequires:  autoconf
 BuildRequires:  automake
+%if 0%{?is_opensuse}
+BuildRequires:  cram
+%endif
 BuildRequires:  docbook
 BuildRequires:  docbook-xsl-stylesheets
 BuildRequires:  help2man
@@ -48,6 +52,7 @@
 %prep
 %setup -q
 %setup -q -T -D -a 1
+%patch0 -p1
 
 %build
 autoreconf -fiv
@@ -66,6 +71,11 @@
   %{buildroot}%{_datadir}/sysbench/sysbench-example-all-tests
 rm -rf %{buildroot}%{_datadir}/doc/sysbench
 
+%if 0%{?is_opensuse}
+%check
+make check
+%endif
+
 %files
 %defattr(-,root,root)
 %doc COPYING ChangeLog README.md doc/manual.html

++++++ sysbench-0.5.0+git.20160824.tar.xz -> sysbench-0.5.0+git.20160922.tar.xz 
++++++
++++ 1780 lines of diff (skipped)

++++++ sysbench_buffer_overflow.patch ++++++
>From e6fab3260481d03301f135dbfde57fa5db000aaf Mon Sep 17 00:00:00 2001
From: Martin Pluskal <mar...@pluskal.org>
Date: Thu, 29 Sep 2016 10:39:47 +0200
Subject: [PATCH] Do not overflow buffer in strncat

---
 sysbench/scripting/script_lua.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/sysbench/scripting/script_lua.c b/sysbench/scripting/script_lua.c
index 42f5106..7b71064 100644
--- a/sysbench/scripting/script_lua.c
+++ b/sysbench/scripting/script_lua.c
@@ -498,11 +498,11 @@ lua_State *sb_lua_new_state(const char *scriptname, int 
thread_id)
     /* first location failed - look in DATA_PATH */
     char p[PATH_MAX + 1];
     strncpy(p, DATA_PATH LUA_DIRSEP, sizeof(p));
-    strncat(p, scriptname, sizeof(p));
+    strncat(p, scriptname, sizeof(p)-strlen(p)-1);
     if (!strrchr(scriptname, '.'))
     {
       /* add .lua extension if there isn't one */
-      strncat(p, ".lua", sizeof(p));
+      strncat(p, ".lua", sizeof(p)-strlen(p)-1);
     }
 
     if (luaL_loadfile(state, p))

Reply via email to