Bug 141942

Summary: 2* array subscript out of range
Product: [Fedora] Fedora Reporter: David Binderman <dcb314>
Component: gnome-python2Assignee: Matthew Barnes <mbarnes>
Status: CLOSED CANTFIX QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 3CC: mattdm
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2006-11-05 16:11:31 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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

1.

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

The source code is

                                     proparglist,

but

#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]

and

    char *propnames[] = { "human-readable-name", "gnome-path",
"gnome-prefix",
                          "gnome-libdir", "gnome-datadir",
"gnome-sysconfdir",
                          "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.

2.

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

Duplicate.


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


How reproducible:


Steps to Reproduce:
1.
2.
3.
  
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.