rpms/paps/F-13 paps-fix-loop-in-split.patch, NONE, 1.1 paps.spec, 1.41, 1.42
Akira TAGOH
tagoh at fedoraproject.org
Tue Jul 27 03:47:58 UTC 2010
Author: tagoh
Update of /cvs/pkgs/rpms/paps/F-13
In directory cvs01.phx2.fedoraproject.org:/tmp/cvs-serv15708
Modified Files:
paps.spec
Added Files:
paps-fix-loop-in-split.patch
Log Message:
* Tue Jul 27 2010 Akira TAGOH <tagoh at redhat.com> - 0.6.8-14
- Fix the infinite loop in splitting paragraphs (#618483)
paps-fix-loop-in-split.patch:
paps.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
--- NEW FILE paps-fix-loop-in-split.patch ---
>From 6c3fa9959dd454938378ade2fec8e84cee7d6916 Mon Sep 17 00:00:00 2001
From: Akira TAGOH <tagoh at redhat.com>
Date: Tue, 27 Jul 2010 12:19:30 +0900
Subject: [PATCH 1/2] Fix rhbz#618483: texttopaps becoms runaway memory hog
* src/paps.c (split_text_into_paragraphs): fix a infinite loop
when non-printable characters are in the text.
---
src/paps.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
* paps.c: Erased --justify option since it is not implemented in
diff --git a/src/paps.c b/src/paps.c
index 72dbaad..dcef349 100644
--- a/src/paps.c
+++ b/src/paps.c
@@ -835,7 +835,10 @@ split_text_into_paragraphs (PangoContext *pango_context,
goto fail;
}
for (i = 0; i < len; i++) {
- wwidth += wcwidth(wtext[i]);
+ gssize w = wcwidth(wtext[i]);
+
+ if (w >= 0)
+ wwidth += w;
if (wwidth > col)
break;
wnewtext[i] = wtext[i];
--
1.7.1.1
Index: paps.spec
===================================================================
RCS file: /cvs/pkgs/rpms/paps/F-13/paps.spec,v
retrieving revision 1.41
retrieving revision 1.42
diff -u -p -r1.41 -r1.42
--- paps.spec 12 Mar 2010 05:44:46 -0000 1.41
+++ paps.spec 27 Jul 2010 03:47:58 -0000 1.42
@@ -1,46 +1,47 @@
-Name: paps
-Version: 0.6.8
-Release: 13%{?dist}
-
-License: LGPLv2+
-URL: http://paps.sourceforge.net/
-Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
-Source1: paps.convs
-BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
-BuildRequires: pango-devel automake autoconf libtool doxygen cups-devel
+Name: paps
+Version: 0.6.8
+Release: 14%{?dist}
+
+License: LGPLv2+
+URL: http://paps.sourceforge.net/
+Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
+Source1: paps.convs
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+BuildRequires: pango-devel automake autoconf libtool doxygen cups-devel
## https://sourceforge.net/tracker/index.php?func=detail&aid=1832897&group_id=153049&atid=786241
-Patch0: paps-0.6.8-shared.patch
+Patch0: paps-0.6.8-shared.patch
## https://sourceforge.net/tracker/index.php?func=detail&aid=1832924&group_id=153049&atid=786241
-Patch1: paps-0.6.8-wordwrap.patch
+Patch1: paps-0.6.8-wordwrap.patch
## https://sourceforge.net/tracker/index.php?func=detail&aid=1832926&group_id=153049&atid=786241
-Patch2: paps-langinfo.patch
+Patch2: paps-langinfo.patch
## https://sourceforge.net/tracker/index.php?func=detail&aid=1832929&group_id=153049&atid=786241
-Patch3: paps-0.6.6-lcnumeric.patch
+Patch3: paps-0.6.6-lcnumeric.patch
## https://sourceforge.net/tracker/index.php?func=detail&aid=1832935&group_id=153049&atid=786241
-Patch4: paps-exitcode.patch
-Patch50: paps-cups.patch
-Patch51: paps-cpilpi.patch
-Patch52: paps-dsc-compliant.patch
-Patch53: paps-autoconf262.patch
-Patch54: paps-fix-cpi.patch
+Patch4: paps-exitcode.patch
+Patch50: paps-cups.patch
+Patch51: paps-cpilpi.patch
+Patch52: paps-dsc-compliant.patch
+Patch53: paps-autoconf262.patch
+Patch54: paps-fix-cpi.patch
+Patch55: paps-fix-loop-in-split.patch
-Summary: Plain Text to PostScript converter
-Group: Applications/Publishing
+Summary: Plain Text to PostScript converter
+Group: Applications/Publishing
%description
paps is a PostScript converter from plain text file using Pango.
%package libs
-Summary: Libraries for paps
-Group: Development/Libraries
+Summary: Libraries for paps
+Group: Development/Libraries
%description libs
paps is a PostScript converter from plain text file using Pango.
This package contains the library for paps.
%package devel
-Summary: Development files for paps
-Group: Development/Libraries
-Requires: %{name}-libs = %{version}-%{release}
+Summary: Development files for paps
+Group: Development/Libraries
+Requires: %{name}-libs = %{version}-%{release}
%description devel
paps is a PostScript converter from plain text file using Pango.
@@ -59,6 +60,7 @@ applications using paps API.
%patch52 -p1 -b .dsc
%patch53 -p1 -b .autoconf262
%patch54 -p1 -b .fixcpi
+%patch55 -p1 -b .loop
libtoolize -f -c
autoreconf
@@ -106,6 +108,9 @@ rm -rf $RPM_BUILD_ROOT
%{_libdir}/libpaps.so
%changelog
+* Tue Jul 27 2010 Akira TAGOH <tagoh at redhat.com> - 0.6.8-14
+- Fix the infinite loop in splitting paragraphs (#618483)
+
* Fri Mar 12 2010 Akira TAGOH <tagoh at redhat.com> - 0.6.8-13
- Fix the directory's group ownership. (#572733)
More information about the scm-commits
mailing list