Bug 146503

Summary: pcsc-towitoko-2.0.7-2: array subscript out of range
Product: [openSUSE] SUSE LINUX 10.0 Reporter: David Binderman <dcb314>
Component: BasesystemAssignee: Marian Jancar <mjancar>
Status: RESOLVED INVALID QA Contact: E-mail List <qa-bugs>
Severity: Minor    
Priority: P5 - None    
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: SUSE Other   
Whiteboard:
Found By: Other Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description David Binderman 2006-01-29 09:28:04 UTC
I just tried to compile package pcsc-towitoko-2.0.7-2 with the Intel C compiler.

It said

tester.c(1078): warning #175: subscript out of range

The source code is

        read_binary[6] = (unsigned char) (size & 0x00FF);

but

  unsigned char read_binary[6] = { 0x00, 0xB0, 0x00, 0x00, 0x00, 0x00 };

I agree with the compiler.  Suggest make local array one bigger.

BTW, I tried emailing the maintainer this bug report, but he says
he no longer maintains it.
Comment 1 Marian Jancar 2006-02-06 19:01:50 UTC
The tester is not included in the binary package.