Temporary crash patch.

This commit is contained in:
Gwyn Ciesla 2019-01-11 11:33:19 -06:00
parent a6870ac619
commit e777027871
2 changed files with 16 additions and 0 deletions

View File

@ -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;

View File

@ -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 <limburgher@gmail.com> - 0.92.3-9
- Patch for out of bounds.
* Tue Dec 04 2018 Gwyn Ciesla <limburgher@gmail.com> - 0.92.3-8
- Add bundled provides.