Bugzilla – Bug 130314
array subscript out of range
Last modified: 2005-10-28 12:57:51 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.
submitted upstream.