Mailinglist Archive: opensuse-bugs (8113 mails)

< Previous Next >
[Bug 244544] New: lha-1.14i-608 : array subscript is below array bounds
  • From: bugzilla_noreply@xxxxxxxxxx
  • Date: Mon, 12 Feb 2007 01:44:26 -0700 (MST)
  • Message-id: <bug-244544-21960@xxxxxxxxxxxxxxxxxxxxxxxxx/>

Summary: lha-1.14i-608 : array subscript is below array bounds
Product: openSUSE 10.3
Version: unspecified
Platform: All
OS/Version: SuSE Other
Status: NEW
Severity: Normal
Priority: P5 - None
Component: Other
AssignedTo: bnc-team-screening@xxxxxxxxxxxxxxxxxxxxxx
ReportedBy: dcb314@xxxxxxxxxxx
QAContact: qa@xxxxxxx

I just tried to compile package lha-1.14i-608
with the GNU C compiler version 4.3 snapshot 20070209.

The compiler said

huf.c:89: warning: array subscript is below array bounds

The source code is

if (i == i_special) {
while (i < 6 && pt_len[i] == 0)

so if i is the same value as parameter i_special, we index into array


write_pt_len(np, pbit, -1);

It seems that calling write_pt_len with a third parameter less than zero
is wrong. Suggest code rework.

Configure bugmail:
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.

< Previous Next >
Follow Ups