[Bug 238660] New: opensc-0.11.1-29: array subscript is above array bounds
https://bugzilla.novell.com/show_bug.cgi?id=238660 Summary: opensc-0.11.1-29: 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 opensc-0.11.1-29 with the new GNU compiler version 4.3 snapshot 20070119 The compiler said cryptoflex-tool.c:505: warning: array subscript is above array bounds The source code is for (i = 0; i < sizeof(sizes)/sizeof(int); i++) if (sizes[i] == keysize) mod_len = mod_lens[i]; but size_t sizes[] = { 167, 247, 327, 647 }; I agree with the compiler. Suggest new code for (i = 0; i < sizeof(sizes)/sizeof(sizes[ 0]); i++) if (sizes[i] == keysize) mod_len = mod_lens[i]; -- 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.
https://bugzilla.novell.com/show_bug.cgi?id=238660 chrubis@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|bnc-team- |sbrabec@novell.com |screening@forge.provo.novell| |.com | -- 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.
https://bugzilla.novell.com/show_bug.cgi?id=238660 ------- Comment #1 from sndirsch@novell.com 2007-01-31 15:40 MST ------- Feel free to close as duplicate of Bug #240922. -- 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.
https://bugzilla.novell.com/show_bug.cgi?id=238660 mvaner@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|sbrabec@novell.com |mvaner@novell.com Status|NEW |ASSIGNED -- 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.
https://bugzilla.novell.com/show_bug.cgi?id=238660 ------- Comment #2 from mvaner@novell.com 2007-02-27 04:16 MST ------- Fixed -- 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.
https://bugzilla.novell.com/show_bug.cgi?id=238660 mvaner@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED ------- Comment #3 from mvaner@novell.com 2007-02-27 04:34 MST ------- (Forgot to check the resolve button last time...) -- 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.
participants (1)
-
bugzilla_noreply@novell.com