Bugzilla – Bug 240893
xorg-x11-doc-7.2-14: array subscript is above array bounds
Last modified: 2007-01-31 22:13:41 UTC
I just tried to compile package xorg-x11-doc-7.2-14 with the new GNU compiler version 4.3 snapshot 20070126 The compiler said imLcPrs.c:600: warning: array subscript is above array bounds The source code is if (l == LOCAL_UTF8_BUFSIZE - 1) { local_wc_buf[l] = '\0'; but wchar_t local_wc_buf[LOCAL_WC_BUFSIZE] #define LOCAL_WC_BUFSIZE 128 #define LOCAL_UTF8_BUFSIZE 256 so the program is trying to index 255 into an array of size 128. Suggest code rework.
*** This bug has been marked as a duplicate of bug 240922 ***