Bug 145804 - openct-0.6.6-2:2 * array subscript out of range
Summary: openct-0.6.6-2:2 * 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 Other
: P5 - None : Minor
Target Milestone: ---
Assignee: Marian Jancar
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-01-26 12:13 UTC by David Binderman
Modified: 2006-02-06 20:23 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Binderman 2006-01-26 12:13:07 UTC
I just tried to compile package openct-0.6.6-2 with the Intel C compiler.

It said

1.

ifd-pertosmart1030.c(800): warning #175: subscript out of range

The source code is

    ct_debug("ps_receive_from_ifd: protocol_bytes[PS_RESPONSE_LENGTH2_IDX]: %i",
             protocol_bytes[PS_RESPONSE_LENGTH2_IDX]);

but

	  unsigned char           protocol_bytes[5];

and

#define PS_RESPONSE_LENGTH2_IDX 5

Suggest make local array one bigger.

2.

ifd-pertosmart1030.c(803): warning #175: subscript out of range

The source code is

    data_length |= protocol_bytes[PS_RESPONSE_LENGTH2_IDX];

Duplicate.
Comment 1 Marian Jancar 2006-02-06 19:36:46 UTC
fixed
Comment 2 Marian Jancar 2006-02-06 20:23:05 UTC
fixed