https://bugzilla.novell.com/show_bug.cgi?id=239956 Summary: smartmontools-5.36.cvs20061025-11: array subscript is above 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@forge.provo.novell.com ReportedBy: dcb314@hotmail.com QAContact: qa@suse.de I just tried to compile package smartmontools-5.36.cvs20061025-11 with the new GNU compiler version 4.3 snapshot 20070126 The compiler said os_linux.cpp:724: warning: array subscript is above array bounds The source code is for (i=0; i<CISS_MAX_LUN+1; i++) { if (luns->LUN[i][6] == target) but typedef struct _ReportLUNdata_struct { BYTE LUNListLength[4]; DWORD reserved; BYTE LUN[CISS_MAX_LUN][8]; } ReportLunData_struct; So i has the value CISS_MAX_LUN on the final execution of the for loop, but this index value is not permitted. Suggest code rework. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.