Bug 154848 - kakasi-2.3.4-392: array subscript out of range
Summary: kakasi-2.3.4-392: array subscript out of range
Status: RESOLVED FIXED
Alias: None
Product: SUSE LINUX 10.0
Classification: openSUSE
Component: Basesystem (show other bugs)
Version: unspecified
Hardware: All SuSE Linux 10.1
: P5 - None : Normal
Target Milestone: ---
Assignee: Mike Fabian
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-03-02 21:57 UTC by David Binderman
Modified: 2006-03-09 17:08 UTC (History)
1 user (show)

See Also:
Found By: Other
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments
bugzilla-154848-array-subscript-out-of-range.patch (1.15 KB, patch)
2006-03-09 16:57 UTC, Mike Fabian
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.