Mailinglist Archive: opensuse-bugs (4173 mails)

< Previous Next >
[Bug 514370] New: kakasi-2.3.4-525.19: 2 * array subscript is above array bounds
  • From: bugzilla_noreply@xxxxxxxxxx
  • Date: Thu, 18 Jun 2009 07:24:32 -0600
  • Message-id: <bug-514370-21960@xxxxxxxxxxxxxxxxxxxxxxxx/>
http://bugzilla.novell.com/show_bug.cgi?id=514370


Summary: kakasi-2.3.4-525.19: 2 * array subscript is above
array bounds
Classification: openSUSE
Product: openSUSE 11.2
Version: Factory
Platform: All
OS/Version: openSUSE 11.1
Status: NEW
Severity: Normal
Priority: P5 - None
Component: Other
AssignedTo: bnc-team-screening@xxxxxxxxxxxxxxxxxxxxxx
ReportedBy: dcb314@xxxxxxxxxxx
QAContact: qa@xxxxxxx
Found By: ---


I just tried to build factory package kakasi-2.3.4-525.19
The build said

1.

g2.c:36:21: warning: array subscript is above array bounds

The source code is

static unsigned char g2a_table[0x1f] = {
'O','=','h','f','c','l','O','+','n','v','+','+','+','+','+','-',
'-','-','-','-','+','+','+','+','|','<','>','p','!','$','.'};

n[0].type = ASCII;
if ((c->c1 >= 0x60) && (c->c1 < 0x7f)) {
n[0].c1 = g2a_table[c->c1];

I agree with the compiler - an elementary programming error.
Perhaps the last line should be

n[ 0].c1 = g2a_table[ c->c1 - 0x60 ];

2.

g2.c:54:19: warning: array subscript is above array bounds

Duplicate.

--
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

< Previous Next >
This Thread
  • No further messages