Bug 130314 - array subscript out of range
Summary: array subscript out of range
Status: RESOLVED FIXED
Alias: None
Product: SUSE LINUX 10.0
Classification: openSUSE
Component: Basesystem (show other bugs)
Version: Final
Hardware: All SuSE Linux 10.0
: P5 - None : Minor
Target Milestone: ---
Assignee: Thorsten Kukuk
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-10-24 17:06 UTC by David Binderman
Modified: 2005-10-28 12:57 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 2005-10-24 17:06:56 UTC
I just tried to compile package glibc-2.3.5-40 with a non standard
version of the GNU C compiler 

It said

nss_nis/nis-publickey.c:123: warning: array subscript out of range

The source code is

	buf[2 * (HEXKEYBYTES + 1)] = '\0';

but

	char buf[2 * (HEXKEYBYTES + 1)];

so buf[2 * (HEXKEYBYTES + 1)] does not exist. Suggest code rework.
Comment 1 Thorsten Kukuk 2005-10-28 12:57:51 UTC
submitted upstream.