[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Japanese speaker needed for bug #429174/mecab



Hi,

On Tue, 3 Jul 2007 00:12:09 +0200
Moritz Muehlenhoff <jmm@inutil.org> wrote:
> If someone is able to read Japanese, please look into Bug 429174
> for mecab and provide the necessary information what this issue
> is all about in the bug log.

 I've checked an upstream mailing list.
 
 It would be a patch for buffer overflow. 
 http://lists.sourceforge.jp/mailman/archives/mecab-users/2007-March/000257.html
 
@@ -235,6 +235,11 @@
     const char *begin3 = begin2 + mblen;
     const char *group_begin3 = 0;

+    if (begin3 > end) {
+      ADDUNKNWON;
+      return resultNode;
+    }
+
     if (cinfo.group) {
       const char *tmp = begin3;
       CharInfo fail;



Reply to: