Bug 130314

Summary: array subscript out of range
Product: [openSUSE] SUSE LINUX 10.0 Reporter: David Binderman <dcb314>
Component: BasesystemAssignee: Thorsten Kukuk <kukuk>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Minor    
Priority: P5 - None    
Version: Final   
Target Milestone: ---   
Hardware: All   
OS: SuSE Linux 10.0   
Whiteboard:
Found By: Other Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

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.