[fontforge] Add patch for charview crash. Fixes bug #660376

Paul Flo Williams frixxon at fedoraproject.org
Thu Mar 31 14:54:07 UTC 2011


commit 963e5f15f26cd30989f6a1fc29c1de1df4bcd645
Author: Paul Flo Williams <paul at frixxon.co.uk>
Date:   Thu Mar 31 15:41:29 2011 +0100

    Add patch for charview crash. Fixes bug #660376

 fontforge-20100501-select-points-crash.patch |   11 +++++++++++
 fontforge.spec                               |    7 ++++++-
 2 files changed, 17 insertions(+), 1 deletions(-)
---
diff --git a/fontforge-20100501-select-points-crash.patch b/fontforge-20100501-select-points-crash.patch
new file mode 100644
index 0000000..90c9bde
--- /dev/null
+++ b/fontforge-20100501-select-points-crash.patch
@@ -0,0 +1,11 @@
+--- fontforge-20100501.orig/fontforge/charview.c	2010-04-15 03:26:28.000000000 +0100
++++ fontforge-20100501/fontforge/charview.c	2011-03-01 15:09:22.821753002 +0000
+@@ -8597,7 +8597,7 @@
+ static int CVNumForePointsSelected(CharView *cv, BasePoint **bp) {
+     SplineSet *spl;
+     SplinePoint *test, *first;
+-    BasePoint *bps[4];
++    BasePoint *bps[5];
+     int i, cnt;
+ 
+     if ( cv->b.drawmode!=dm_fore )
diff --git a/fontforge.spec b/fontforge.spec
index b4f9d11..435eba1 100644
--- a/fontforge.spec
+++ b/fontforge.spec
@@ -5,7 +5,7 @@
 
 Name:           fontforge
 Version:        20110222
-Release:        2%{?dist}
+Release:        3%{?dist}
 Summary:        Outline and bitmap font editor
 
 Group:          Applications/Publishing
@@ -14,6 +14,7 @@ URL:            http://fontforge.sourceforge.net/
 Source0:        http://downloads.sourceforge.net/fontforge/fontforge_full-%{version}.tar.bz2
 Source2:        http://downloads.sourceforge.net/fontforge/fontforge_htdocs-%{docs_version}.tar.bz2
 Patch1:         fontforge-20090224-pythondl.patch
+Patch2:         fontforge-20100501-select-points-crash.patch
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
 Requires:       xdg-utils
@@ -55,6 +56,7 @@ to compile applications against fontforge.
 %setup -q -n %{name}-%{version}
 
 %patch1 -p1
+%patch2 -p1
 
 mkdir htdocs
 tar xjf %{SOURCE2} -C htdocs
@@ -145,6 +147,9 @@ update-mime-database %{_datadir}/mime &> /dev/null || :
 %{_libdir}/pkgconfig/*.pc
 
 %changelog
+* Thu Mar 31 2011 Paul Flo Williams <paul at frixxon.co.uk> - 20110222-3
+- Add patch for charview crash. Fixes bug #660376
+
 * Thu Mar 17 2011 Kevin Fenzi <kevin at tummy.com> - 20110222-2
 - Drop sources that are now upstream. Fixes bug #688470
 


More information about the fonts-bugs mailing list