Bug 1860 - array subscript out of range
Summary: array subscript out of range
Status: RESOLVED FIXED
Alias: None
Product: xorg
Classification: Unclassified
Component: App/xedit (show other bugs)
Version: 6.8.1
Hardware: x86 (IA32) Linux (All)
: high normal
Assignee: Xorg Project Team
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-11-15 03:46 UTC by dcb314
Modified: 2005-10-22 20:04 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments
xedit-array-size-fix-1.patch (906 bytes, patch)
2004-12-02 13:11 UTC, Adam Jackson
no flags Details | Splinter Review

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.