From e777027871a83eea3e635c170fee541548a51eef Mon Sep 17 00:00:00 2001 From: Gwyn Ciesla Date: Jan 11 2019 17:33:19 +0000 Subject: Temporary crash patch. --- diff --git a/inkscape-0.92.3-out-of-bounds.patch b/inkscape-0.92.3-out-of-bounds.patch new file mode 100644 index 0000000..5e9378e --- /dev/null +++ b/inkscape-0.92.3-out-of-bounds.patch @@ -0,0 +1,11 @@ +--- src/libnrtype/Layout-TNG-OutIter.cpp~ 2018-12-04 08:57:55.000000000 -0600 ++++ src/libnrtype/Layout-TNG-OutIter.cpp 2019-01-11 08:22:33.026490234 -0600 +@@ -26,7 +26,7 @@ + double best_x_difference = DBL_MAX; + + if (char_index == _characters.size()) return end(); +- for ( ; char_index < _characters.size() ; char_index++) { ++ for ( ; char_index + 1 < _characters.size() ; char_index++) { + if (_characters[char_index].chunk(this).in_line != line_index) break; + if (_characters[char_index].char_attributes.is_mandatory_break) break; + if (!_characters[char_index].char_attributes.is_cursor_position) continue; diff --git a/inkscape.spec b/inkscape.spec index 9a423da..9aa199b 100644 --- a/inkscape.spec +++ b/inkscape.spec @@ -21,6 +21,7 @@ Patch1: inkscape-python2.patch Patch2: inkscape-0.92.3-poppler-0.64.patch Patch3: inkscape-0.92.3-poppler-0.65.patch +Patch4: inkscape-0.92.3-out-of-bounds.patch Provides: bundled(libcroco) Provides: bundled(libgdl) @@ -118,6 +119,7 @@ graphics in W3C standard Scalable Vector Graphics (SVG) file format. %patch1 -p1 %patch2 -p1 %patch3 -p1 +%patch4 -p0 pathfix.py -pni "%{__python2} %{py2_shbang_opts}" . # https://bugs.launchpad.net/inkscape/+bug/314381 @@ -227,6 +229,9 @@ pathfix.py -pni "%{__python2} %{py2_shbang_opts}" $RPM_BUILD_ROOT%{_datadir}/ink %changelog +* Fri Jan 11 2019 Gwyn Ciesla - 0.92.3-9 +- Patch for out of bounds. + * Tue Dec 04 2018 Gwyn Ciesla - 0.92.3-8 - Add bundled provides.