Bug 154848

Summary: kakasi-2.3.4-392: array subscript out of range
Product: [openSUSE] SUSE LINUX 10.0 Reporter: David Binderman <dcb314>
Component: BasesystemAssignee: Mike Fabian <mfabian>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None CC: coolo
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: SuSE Linux 10.1   
Whiteboard:
Found By: Other Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: bugzilla-154848-array-subscript-out-of-range.patch

Description David Binderman 2006-03-02 21:57:01 UTC
I just tried to compile package kakasi-2.3.4-392 with a non standard version 
of the GNU C compiler.

It said

1.

k2.c:157: warning: array subscript out of range

The source code is

	buffer[k2rom_buflen] = '\0'; clen = k2rom_buflen;

but

	char buffer[k2rom_buflen];

I agree with the compiler. Suggest code rework.

2.

libk2.c:157: warning: array subscript out of range

Duplicate.
Comment 1 Mike Fabian 2006-03-09 16:56:15 UTC
fixed package submitted to STABLE.
Comment 2 Mike Fabian 2006-03-09 16:57:13 UTC
Created attachment 72050 [details]
bugzilla-154848-array-subscript-out-of-range.patch

The patch I used.
Comment 3 Mike Fabian 2006-03-09 17:08:35 UTC
Reported upstream, see:

http://www.namazu.org/pipermail/kakasi-dev/2006-March/000039.html

Closing as FIXED.