Bug 239174 - pcsc-lite-1.3.2-24: array subscript is above array bounds
Summary: pcsc-lite-1.3.2-24: array subscript is above array bounds
Status: RESOLVED DUPLICATE of bug 240922
Alias: None
Product: openSUSE 10.3
Classification: openSUSE
Component: Other (show other bugs)
Version: unspecified
Hardware: All SUSE Other
: P5 - None : Normal (vote)
Target Milestone: ---
Assignee: Stanislav Brabec
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-01-26 09:28 UTC by David Binderman
Modified: 2007-03-07 09:50 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 2007-01-26 09:28:44 UTC
I just tried to compile package pcsc-lite-1.3.2-24
with the new GNU compiler version 4.3 snapshot 20070119

The compiler said

winscard_svc.c:92: warning: array subscript is above array bounds

The source code is

        if (i == PCSCLITE_MAX_APPLICATIONS_CONTEXTS)
        {
                SYS_CloseFile(psContext[i].dwClientID);

but

} psContext[PCSCLITE_MAX_APPLICATIONS_CONTEXTS];

I agree with the compiler. Suggest code rework.
Comment 1 Stefan Dirsch 2007-01-31 22:40:48 UTC
Feel free to close as duplicate of Bug #240922.
Comment 2 Petr Gajdos 2007-03-07 09:50:25 UTC

*** This bug has been marked as a duplicate of bug 240922 ***