NetBSD Problem Report #43586

From soda@NetBSD.org  Fri Jul  9 01:36:42 2010
Return-Path: <soda@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by www.NetBSD.org (Postfix) with ESMTP id 5F04C63BAB2
	for <gnats-bugs@gnats.NetBSD.org>; Fri,  9 Jul 2010 01:36:42 +0000 (UTC)
Message-Id: <20100709013639.812781CEBE07@mail.yuruyuru.net>
Date: Fri,  9 Jul 2010 10:36:39 +0900 (JST)
From: soda@NetBSD.org
Reply-To: soda@NetBSD.org
To: gnats-bugs@gnats.NetBSD.org
Subject: memory corruption caused by inputmethod/ja-freewnn-lib
X-Send-Pr-Version: 3.95

>Number:         43586
>Category:       pkg
>Synopsis:       memory corruption caused by inputmethod/ja-freewnn-lib
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    obache
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Jul 09 01:40:00 +0000 2010
>Closed-Date:    Mon Jul 12 12:45:00 +0000 2010
>Last-Modified:  Mon Jul 12 12:45:00 +0000 2010
>Originator:     SODA Noriyuki
>Release:        NetBSD 4.0_STABLE
>Organization:
>Environment:
System: NetBSD boggy-ben 4.0_STABLE NetBSD 4.0_STABLE (GENERIC_LAPTOP) #0: Thu Sep 25 05:35:51 PDT 2008 builds@wb32:/home/builds/ab/netbsd-4/i386/200809240002Z-obj/home/builds/ab/netbsd-4/src/sys/arch/i386/compile/GENERIC_LAPTOP i386
Architecture: i386
Machine: i386
>Description:
strange memory corruption is observed in an executable linked with libwnn.a.
>How-To-Repeat:
not sure.
>Fix:
This problem is caused by the following declaration at line 2554
of Xsi/Wnn/jlib/js.c:
    static char s[6][EXPAND_PATH_LENGTH];

Since this array is used as follows at few lines later:
        num = sscanf(data, "%s %s %s %s %s %s %s",
                     s[0],s[1],s[2],s[3],s[4],s[5],s[6]);
this array has to be declared as:
    static char s[7][EXPAND_PATH_LENGTH];
                 ~~~
Note: both the problem and the fix were found by Akira Kato @ Wide project.
-- 
soda

>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: pkg-manager->obache
Responsible-Changed-By: obache@NetBSD.org
Responsible-Changed-When: Sun, 11 Jul 2010 02:54:51 +0000
Responsible-Changed-Why:
I'm working on.


From: OBATA Akio <obache@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/43586 CVS commit: pkgsrc/inputmethod/ja-freewnn-lib
Date: Sun, 11 Jul 2010 02:53:25 +0000

 Module Name:	pkgsrc
 Committed By:	obache
 Date:		Sun Jul 11 02:53:25 UTC 2010

 Modified Files:
 	pkgsrc/inputmethod/ja-freewnn-lib: Makefile buildlink3.mk distinfo
 	pkgsrc/inputmethod/ja-freewnn-lib/patches: patch-ag

 Log Message:
 Fixes memory corruption, PR#43586.

 Bump PKGREVISION.


 To generate a diff of this commit:
 cvs rdiff -u -r1.9 -r1.10 pkgsrc/inputmethod/ja-freewnn-lib/Makefile \
     pkgsrc/inputmethod/ja-freewnn-lib/distinfo
 cvs rdiff -u -r1.7 -r1.8 pkgsrc/inputmethod/ja-freewnn-lib/buildlink3.mk
 cvs rdiff -u -r1.5 -r1.6 pkgsrc/inputmethod/ja-freewnn-lib/patches/patch-ag

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

State-Changed-From-To: open->pending-pullups
State-Changed-By: obache@NetBSD.org
State-Changed-When: Sun, 11 Jul 2010 03:14:42 +0000
State-Changed-Why:
Fixed in HEAD. pullup request #3162.


From: Matthias Scheler <tron@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/43586 CVS commit: [pkgsrc-2010Q2] pkgsrc
Date: Mon, 12 Jul 2010 12:39:51 +0000

 Module Name:	pkgsrc
 Committed By:	tron
 Date:		Mon Jul 12 12:39:51 UTC 2010

 Modified Files:
 	pkgsrc/editors/mule [pkgsrc-2010Q2]: Makefile distinfo
 	pkgsrc/inputmethod/ja-freewnn-lib [pkgsrc-2010Q2]: Makefile
 	    buildlink3.mk distinfo
 	pkgsrc/inputmethod/ja-freewnn-lib/patches [pkgsrc-2010Q2]: patch-ag
 	pkgsrc/inputmethod/ja-freewnn-server-bin [pkgsrc-2010Q2]: Makefile
 	pkgsrc/inputmethod/kinput2 [pkgsrc-2010Q2]: Makefile
 Added Files:
 	pkgsrc/editors/mule/patches [pkgsrc-2010Q2]: patch-cj

 Log Message:
 Pullup ticket #3162 - requested by obache
 editors/mule: bug fix patch
 inputmethod/ja-freewnn-lib: bug fix patch
 inputmethod/kinput2: bug fix patch

 Revisions pulled up:
 - editors/mule/Makefile				1.44
 - editors/mule/distinfo				1.8
 - editors/mule/patches/patch-cj			1.1
 - inputmethod/ja-freewnn-lib/Makefile		1.10
 - inputmethod/ja-freewnn-lib/buildlink3.mk	1.8
 - inputmethod/ja-freewnn-lib/distinfo		1.10
 - inputmethod/ja-freewnn-lib/patches/patch-ag	1.6
 - inputmethod/ja-freewnn-server-bin/Makefile	1.17
 - inputmethod/kinput2/Makefile			1.20
 ---
 Module Name:	pkgsrc
 Committed By:	obache
 Date:		Sun Jul 11 02:53:25 UTC 2010

 Modified Files:
 	pkgsrc/inputmethod/ja-freewnn-lib: Makefile buildlink3.mk distinfo
 	pkgsrc/inputmethod/ja-freewnn-lib/patches: patch-ag

 Log Message:
 Fixes memory corruption, PR#43586.

 Bump PKGREVISION.
 ---
 Module Name:	pkgsrc
 Committed By:	obache
 Date:		Sun Jul 11 02:56:35 UTC 2010

 Modified Files:
 	pkgsrc/inputmethod/ja-freewnn-server-bin: Makefile

 Log Message:
 Bump PKGREVISION to force rebuild with fixed ja-FreeWnn-lib,
 or wnnkill dumped core.
 ---
 Module Name:	pkgsrc
 Committed By:	obache
 Date:		Sun Jul 11 02:58:16 UTC 2010

 Modified Files:
 	pkgsrc/inputmethod/kinput2: Makefile

 Log Message:
 Bump PKGREVISION to force rebuild with fixed ja-FreeWnn-lib, or dumped core.
 ---
 odule Name:	pkgsrc
 Committed By:	obache
 Date:		Sun Jul 11 03:00:33 UTC 2010

 Modified Files:
 	pkgsrc/editors/mule: Makefile distinfo
 Added Files:
 	pkgsrc/editors/mule/patches: patch-cj

 Log Message:
 * add patch-cj to fix build failure
 * add user-destdir installation support.
 * Bump PKGREVISION to force rebuild with fixed ja-FreeWnn-lib.


 To generate a diff of this commit:
 cvs rdiff -u -r1.43 -r1.43.8.1 pkgsrc/editors/mule/Makefile
 cvs rdiff -u -r1.7 -r1.7.40.1 pkgsrc/editors/mule/distinfo
 cvs rdiff -u -r0 -r1.1.2.2 pkgsrc/editors/mule/patches/patch-cj
 cvs rdiff -u -r1.9 -r1.9.18.1 pkgsrc/inputmethod/ja-freewnn-lib/Makefile
 cvs rdiff -u -r1.7 -r1.7.12.1 pkgsrc/inputmethod/ja-freewnn-lib/buildlink3.mk
 cvs rdiff -u -r1.9 -r1.9.38.1 pkgsrc/inputmethod/ja-freewnn-lib/distinfo
 cvs rdiff -u -r1.5 -r1.5.38.1 \
     pkgsrc/inputmethod/ja-freewnn-lib/patches/patch-ag
 cvs rdiff -u -r1.16 -r1.16.28.1 \
     pkgsrc/inputmethod/ja-freewnn-server-bin/Makefile
 cvs rdiff -u -r1.19 -r1.19.4.1 pkgsrc/inputmethod/kinput2/Makefile

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

State-Changed-From-To: pending-pullups->closed
State-Changed-By: obache@NetBSD.org
State-Changed-When: Mon, 12 Jul 2010 12:45:00 +0000
State-Changed-Why:
pulled up to 2010Q2.


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.