rpms/hunspell/F-13 hunspell-1.2.9-stacksmash.patch, NONE, 1.1 hunspell.spec, 1.77, 1.78
Caolan McNamara
caolanm at fedoraproject.org
Thu Mar 4 10:34:24 UTC 2010
- Previous message: rpms/qbittorrent/F-12 .cvsignore, 1.29, 1.30 qbittorrent.spec, 1.64, 1.65 sources, 1.33, 1.34
- Next message: rpms/hunspell/devel hunspell-1.2.9-stacksmash.patch, NONE, 1.1 hunspell.spec, 1.79, 1.80
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Author: caolanm
Update of /cvs/pkgs/rpms/hunspell/F-13
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv15323/F-13
Modified Files:
hunspell.spec
Added Files:
hunspell-1.2.9-stacksmash.patch
Log Message:
Resolves: ooo#107768 hunspell-1.2.9-stacksmash.patch
hunspell-1.2.9-stacksmash.patch:
hunspell.cxx | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
--- NEW FILE hunspell-1.2.9-stacksmash.patch ---
--- hunspell-1.2.8/src/hunspell/hunspell.cxx 2010-03-04 10:25:06.000000000 +0000
+++ hunspell-1.2.8/src/hunspell/hunspell.cxx 2010-03-04 10:25:38.000000000 +0000
@@ -1658,7 +1658,7 @@
if (!q2) return 0; // bad XML input
if (check_xml_par(q, "type=", "analyze")) {
int n = 0, s = 0;
- if (get_xml_par(cw, strchr(q2, '>'), MAXWORDUTF8LEN)) n = analyze(slst, cw);
+ if (get_xml_par(cw, strchr(q2, '>'), MAXWORDUTF8LEN - 1)) n = analyze(slst, cw);
if (n == 0) return 0;
// convert the result to <code><a>ana1</a><a>ana2</a></code> format
for (int i = 0; i < n; i++) s+= strlen((*slst)[i]);
@@ -1679,13 +1679,13 @@
(*slst)[0] = r;
return 1;
} else if (check_xml_par(q, "type=", "stem")) {
- if (get_xml_par(cw, strchr(q2, '>'), MAXWORDUTF8LEN)) return stem(slst, cw);
+ if (get_xml_par(cw, strchr(q2, '>'), MAXWORDUTF8LEN - 1)) return stem(slst, cw);
} else if (check_xml_par(q, "type=", "generate")) {
- int n = get_xml_par(cw, strchr(q2, '>'), MAXWORDUTF8LEN);
+ int n = get_xml_par(cw, strchr(q2, '>'), MAXWORDUTF8LEN - 1);
if (n == 0) return 0;
char * q3 = strstr(q2 + 1, "<word");
if (q3) {
- if (get_xml_par(cw2, strchr(q3, '>'), MAXWORDUTF8LEN)) {
+ if (get_xml_par(cw2, strchr(q3, '>'), MAXWORDUTF8LEN - 1)) {
return generate(slst, cw, cw2);
}
} else {
Index: hunspell.spec
===================================================================
RCS file: /cvs/pkgs/rpms/hunspell/F-13/hunspell.spec,v
retrieving revision 1.77
retrieving revision 1.78
diff -u -p -r1.77 -r1.78
--- hunspell.spec 18 Jan 2010 09:43:10 -0000 1.77
+++ hunspell.spec 4 Mar 2010 10:34:24 -0000 1.78
@@ -1,7 +1,7 @@
Name: hunspell
Summary: A spell checker and morphological analyzer library
Version: 1.2.8
-Release: 16%{?dist}
+Release: 17%{?dist}
Source0: http://downloads.sourceforge.net/%{name}/hunspell-%{version}.tar.gz
Source1: http://people.debian.org/~agmartin/misc/ispellaff2myspell
Source2: http://people.redhat.com/caolanm/hunspell/wordlist2hunspell
@@ -16,6 +16,7 @@ Patch3: hunspell-1.2.8-2812045.warnin
Patch4: hunspell-1.2.8-2826164.fixtests.patch
Patch5: hunspell-1.2.8-2910695.nohome.patch
Patch6: hunspell-1.2.8-2934195.suggestmgr.patch
+Patch7: hunspell-1.2.9-stacksmash.patch
%description
Hunspell is a spell checker and morphological analyzer library and program
@@ -39,6 +40,7 @@ Includes and definitions for developing
%patch4 -p1 -b .fixtests.patch
%patch5 -p1 -b .nohome.patch
%patch6 -p1 -b .suggestmgr.patch
+%patch7 -p1 -b .stacksmash.patch
# Filter unwanted Requires for the "use explicitely" string in ispellaff2myspell
cat << \EOF > %{name}-req
#!/bin/sh
@@ -129,6 +131,9 @@ rm -rf $RPM_BUILD_ROOT
%{_mandir}/man3/hunspell.3.gz
%changelog
+* Thu Mar 04 2010 Caolan McNamara <caolanm at redhat.com> - 1.2.8-17
+- Resolves: ooo#107768 hunspell-1.2.9-stacksmash.patch
+
* Mon Jan 18 2010 Caolan McNamara <caolanm at redhat.com> - 1.2.8-16
- Resolves: rhbz#554876 fix suggestmgr crash
- Previous message: rpms/qbittorrent/F-12 .cvsignore, 1.29, 1.30 qbittorrent.spec, 1.64, 1.65 sources, 1.33, 1.34
- Next message: rpms/hunspell/devel hunspell-1.2.9-stacksmash.patch, NONE, 1.1 hunspell.spec, 1.79, 1.80
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the scm-commits
mailing list