Bug 136758 - 2 * array subscript out of range
Summary: 2 * array subscript out of range
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: gimp-gap
Version: 3
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Nils Philippsen
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2004-10-22 08:06 UTC by David Binderman
Modified: 2007-11-30 22:10 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2004-10-22 09:34:15 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description David Binderman 2004-10-22 08:06:15 UTC
Description of problem:

I just tried to compile package gimp-gap-2.0.2-2 from package
Redhat Fedora Core 3 Test 3.

The compiler said

1.

gimplastvaldesc.c(475): warning #175: subscript out of range

The source code is

    token_tab[GIMP_LASTVAL_END].token              = GIMP_DDESC_END;

but

static GimpLastvalTokenTabType token_tab[GIMP_LASTVAL_END];

so token_tab[GIMP_LASTVAL_END] does not exist. Suggest code re-work.

2.

gimplastvaldesc.c(501): warning #175: subscript out of range

The source code is

    token_tab[GIMP_LASTVAL_END].lastval_type              = 0;

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 Nils Philippsen 2004-10-22 09:34:15 UTC
Fixed in gimp-gap-2.0.2-3.


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