fix endless loop with text fields in VSD6

This commit is contained in:
David Tardon 2012-07-24 10:10:32 +02:00
parent b3e10df4f7
commit 4f5e6c5456
2 changed files with 30 additions and 1 deletions

View File

@ -0,0 +1,24 @@
From c3784a67af37d19af916771afa49b9a83ae7ac32 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Fridrich=20=C5=A0trba?= <fridrich.strba@bluewin.ch>
Date: Tue, 24 Jul 2012 09:53:36 +0200
Subject: [PATCH 1/2] Fix endless loop with text fields in VSD6
---
src/lib/VSDXContentCollector.cpp | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/lib/VSDXContentCollector.cpp b/src/lib/VSDXContentCollector.cpp
index d1ae0b6..577afc3 100644
--- a/src/lib/VSDXContentCollector.cpp
+++ b/src/lib/VSDXContentCollector.cpp
@@ -2648,6 +2648,7 @@ void libvisio::VSDXContentCollector::appendCharacters(WPXString &text, const std
text.append(m_fields[m_fieldIndex++].cstr());
else
m_fieldIndex++;
+ ++iter;
}
else if (*iter < 0x20)
{
--
1.7.10.2

View File

@ -1,12 +1,13 @@
Name: libvisio
Version: 0.0.18
Release: 2%{?dist}
Release: 3%{?dist}
Summary: A library providing ability to interpret and import visio diagrams
Group: System Environment/Libraries
License: GPLv2+ or LGPLv2+ or MPLv1.1
URL: http://www.freedesktop.org/wiki/Software/libvisio
Source: http://dev-www.libreoffice.org/src/%{name}-%{version}.tar.xz
Patch0: 0001-Fix-endless-loop-with-text-fields-in-VSD6.patch
BuildRequires: boost-devel
BuildRequires: doxygen
@ -49,6 +50,7 @@ Currently supported: XHTML, raw.
%prep
%setup -q
%patch0 -p1
%build
@ -98,6 +100,9 @@ rm -f %{buildroot}/%{_libdir}/*.la
%changelog
* Tue Jul 24 2012 David Tardon <dtardon@redhat.com> - 0.0.18-3
- fix endless loop with text fields in VSD6
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.0.18-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild