Hello community,

here is the log from the commit of package chasen for openSUSE:Factory checked 
in at 2012-06-05 15:29:40
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/chasen (Old)
 and      /work/SRC/openSUSE:Factory/.chasen.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "chasen", Maintainer is "[email protected]"

Changes:
--------
--- /work/SRC/openSUSE:Factory/chasen/chasen.changes    2011-10-03 
09:14:23.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.chasen.new/chasen.changes       2012-06-05 
15:29:53.000000000 +0200
@@ -1,0 +2,10 @@
+Sat Jun  2 14:10:12 UTC 2012 - [email protected]
+
+- fix sles builds.
+- update version 2.4.4 with security patch.
+  * perl module is updated.
+  * Changed to BSD License
+  * chmod +x tests/*.sh
+- fix rpmlint warnings.
+
+-------------------------------------------------------------------

Old:
----
  chasen-2.4.2.tar.bz2

New:
----
  chasen-2.4.4.tar.gz
  chasen244-secfix.diff

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ chasen.spec ++++++
--- /var/tmp/diff_new_pack.1DVy0h/_old  2012-06-05 15:29:54.000000000 +0200
+++ /var/tmp/diff_new_pack.1DVy0h/_new  2012-06-05 15:29:54.000000000 +0200
@@ -23,12 +23,13 @@
 License:        BSD-3-Clause
 Group:          System/I18n/Japanese
 Requires:       ipadic
-Version:        2.4.2
-Release:        62
+Version:        2.4.4
+Release:        0
 Url:            http://chasen.aist-nara.ac.jp/
-# original source 
http://chasen.aist-nara.ac.jp/stable/chasen/chasen-2.3.3.tar.gz
-Source0:        
http://chasen.aist-nara.ac.jp/stable/chasen/%{name}-%{version}.tar.bz2
+# original source 
http://chasen.aist-nara.ac.jp/stable/chasen/chasen-2.4.4.tar.gz
+Source0:        %{name}-%{version}.tar.gz
 Patch1:         chasen-decls.diff
+Patch2:         chasen244-secfix.diff
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 Summary:        Japanese Morphological Analysis System
 # Summary(ja): 形態素解析システム 茶筌
@@ -145,10 +146,13 @@
 %prep
 %setup -q
 %patch1
+%patch2 -p1
 
 %build
 autoreconf --force --install
 export CFLAGS="$RPM_OPT_FLAGS"
+# fix build
+export CXXFLAGS="-fpermissive"
 %configure --disable-static --with-pic --with-darts=/usr/include
 make %{?_smp_mflags}
 pushd perl
@@ -170,11 +174,14 @@
 
 %files 
 %defattr(-,root,root)
-%doc AUTHORS COPYING ChangeLog INSTALL* NEWS README*
+%doc AUTHORS COPYING ChangeLog NEWS README*
 %doc doc/*.tex doc/*.pdf
 %{_bindir}/*
 %{_libdir}/*.so.*
 %{_libexecdir}/chasen
+%if 0%{?suse_version} < 1140
+%ghost /var/adm/perl-modules/chasen
+%endif
 
 %files devel
 %defattr(-,root,root)

++++++ chasen244-secfix.diff ++++++
diff --git a/lib/chalib.c b/lib/chalib.c
index 5d79e13..cddf51b 100644
--- a/lib/chalib.c
+++ b/lib/chalib.c
@@ -306,9 +306,14 @@ chasen_sparse_main(char *input, FILE *output)
      */
     while (*input) {
        int c = 0, len, cursor;
-       if ((crlf = strpbrk(input, "\r\n")) == NULL)
+       if ((crlf = strpbrk(input, "\r\n")) == NULL) {
            len = strlen(input);
-       else {
+           if (len >= CHA_INPUT_SIZE) {
+               len = CHA_INPUT_SIZE - 1;
+               crlf = input + CHA_INPUT_SIZE - 2;
+               c = 0;
+           }
+       } else {
            len = crlf - input;
            c = *crlf;
            *crlf = '\0';
-- 
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to