rhbz#1189303 - [abrt] midori: WebCore::SQLiteStatement::prepare(): midori killed by SIGSEGV

Initialize string in SQLiteStatement before using it
This commit is contained in:
Tomas Popela 2015-09-25 07:27:42 +02:00
parent aba6d91277
commit 194697af6a
2 changed files with 20 additions and 1 deletions

View File

@ -0,0 +1,12 @@
diff -up webkitgtk-2.4.9/Source/WebCore/platform/sql/SQLiteStatement.cpp.sql_initialize_string webkitgtk-2.4.9/Source/WebCore/platform/sql/SQLiteStatement.cpp
--- webkitgtk-2.4.9/Source/WebCore/platform/sql/SQLiteStatement.cpp.sql_initialize_string 2015-09-14 09:25:43.004200172 +0200
+++ webkitgtk-2.4.9/Source/WebCore/platform/sql/SQLiteStatement.cpp 2015-09-14 09:25:57.852082368 +0200
@@ -71,7 +71,7 @@ int SQLiteStatement::prepare()
// this lets SQLite avoid an extra string copy.
size_t lengthIncludingNullCharacter = query.length() + 1;
- const char* tail;
+ const char* tail = nullptr;
int error = sqlite3_prepare_v2(m_database.sqlite3Handle(), query.data(), lengthIncludingNullCharacter, &m_statement, &tail);
if (error != SQLITE_OK)

View File

@ -10,7 +10,7 @@
Name: webkitgtk
Version: 2.4.9
Release: 1%{?dist}
Release: 2%{?dist}
Summary: GTK+ Web content engine library
Group: Development/Libraries
@ -25,6 +25,8 @@ Patch1: webkitgtk-aarch64.patch
Patch2: webkitgtk-2.4.1-cloop_fix.patch
Patch3: webkitgtk-2.4.5-cloop_fix_32.patch
Patch4: webkitgtk-2.4.1-ppc64_align.patch
# http://trac.webkit.org/changeset/169665
Patch5: webkitgtk-2.4.9-sql_initialize_string.patch
BuildRequires: bison
BuildRequires: chrpath
@ -90,6 +92,7 @@ This package contains developer documentation for %{name}.
%patch0 -p1 -b .nspluginwrapper
%patch1 -p1 -b .aarch64
%patch2 -p1 -b .cloop_fix
%patch5 -p1 -b .sql_initialize_string
# required for 32-bit big-endians
%ifarch ppc s390
%patch3 -p1 -b .cloop_fix_32
@ -205,6 +208,10 @@ glib-compile-schemas %{_datadir}/glib-2.0/schemas &>/dev/null || :
%{_datadir}/gtk-doc/html/webkitgtk
%changelog
* Fri Sep 25 2015 Tomas Popela <tpopela@redhat.com> - 2.4.9-2
- rhbz#1189303 - [abrt] midori: WebCore::SQLiteStatement::prepare(): midori killed by SIGSEGV
Initialize string in SQLiteStatement before using it
* Thu May 21 2015 Tomas Popela <tpopela@redhat.com> - 2.4.9-1
- Update to 2.4.9