Bug 1860

Summary: array subscript out of range
Product: xorg Reporter: dcb314
Component: App/xeditAssignee: Xorg Project Team <xorg-team>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: high CC: ajax
Version: 6.8.1   
Hardware: x86 (IA32)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:
Attachments:
Description Flags
xedit-array-size-fix-1.patch none

Description dcb314 2004-11-15 03:46:03 UTC
Hello there,

I just tried to compile X11R6.8.1 with the most excellent Intel C
8.1 compiler, on a Linux Fedora Core 3 box. The compiler said

xedit.c(270): warning #175: subscript out of range

The source code is in file

programs/xedit/lisp/xedit.c

The source code is

    scan_types[5]   = KEYWORD("ALPHA-NUMERIC");

but

tatic LispObj *scan_types[5];

so scan_types[5] doesn't exist.
Comment 1 Adam Jackson 2004-12-02 13:11:04 UTC
Created attachment 1444 [details] [review]
xedit-array-size-fix-1.patch

proposed fix.
Comment 2 Adam Jackson 2005-10-23 13:04:15 UTC
applied to head, closing.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.