Bug 141942 - 2* array subscript out of range
Summary: 2* array subscript out of range
Alias: None
Product: Fedora
Classification: Fedora
Component: gnome-python2   
(Show other bugs)
Version: 3
Hardware: All
OS: Linux
Target Milestone: ---
Assignee: Matthew Barnes
QA Contact:
Depends On:
TreeView+ depends on / blocked
Reported: 2004-12-06 09:55 UTC by David Binderman
Modified: 2008-05-01 15:38 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2006-11-05 16:11:31 UTC
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

Description David Binderman 2004-12-06 09:55:48 UTC
Description of problem:

I just tried to compile package gnome-python2-2.6.0-3 from Redhat Fedora
Core 3.

The compiler said


gnome.override(375): warning #175: subscript out of range

The source code is



#define proparglist propargs[0], propargs[1], propargs[2], propargs[3], \
                    propargs[4], propargs[5], propargs[6], propargs[7], \
                    propargs[8], propargs[9], propargs[10],
propargs[11], \
                    propargs[12], propargs[13], propargs[14],
propargs[15], \
                    propargs[16], propargs[17], propargs[18],
propargs[19], \
                    propargs[20], propargs[21], propargs[22]


    char *propnames[] = { "human-readable-name", "gnome-path",
                          "gnome-libdir", "gnome-datadir",
                          "app-prefix", "app-libdir", "app-datadir",
                          "app-sysconfdir", "espeaker" };
    char *propargs[G_N_ELEMENTS(propnames)*2] = { NULL, };

I count 11 elements in propnames, which means propargs has 22 elements,
which means that propargs[22] doesn't exist.

Suggest code re-work to avoid accessing non-existing data.


gnome.override(381): warning #175: subscript out of range


Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
Actual results:

Expected results:

Additional info:

Comment 1 Matthew Miller 2006-07-10 23:41:56 UTC
Fedora Core 3 is now maintained by the Fedora Legacy project for security
updates only. If this problem is a security issue, please reopen and
reassign to the Fedora Legacy product. If it is not a security issue and
hasn't been resolved in the current FC5 updates or in the FC6 test
release, reopen and change the version to match.

Thank you!

Comment 2 John Thacker 2006-11-05 16:11:31 UTC
Closing per lack of response to previous request for information.
This bug was originally filed against a much earlier version of Fedora
Core, and significant changes have taken place since the last version
for which this bug is confirmed.

Note that FC3 and FC4 are supported by Fedora Legacy for security
fixes only.  Please install a still supported version and retest.  If
it still occurs on FC5 or FC6, please reopen and assign to the correct
version.  Otherwise, if this a security issue, please change the
product to Fedora Legacy.  Thanks, and we are sorry that we did not
get to this bug earlier.

Note You need to log in before you can comment on or make changes to this bug.