Bug 144799 - libgnomemm-2.12.1-3: array subscript out of range
Summary: libgnomemm-2.12.1-3: array subscript out of range
Status: RESOLVED FIXED
Alias: None
Product: SUSE LINUX 10.0
Classification: openSUSE
Component: GNOME (show other bugs)
Version: unspecified
Hardware: All SUSE Other
: P5 - None : Normal
Target Milestone: ---
Assignee: Gary Ekker
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-01-23 14:59 UTC by David Binderman
Modified: 2006-01-26 23:57 UTC (History)
0 users

See Also:
Found By: Other
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments
Patch to fix problem (1.20 KB, text/plain)
2006-01-23 16:01 UTC, JP Rosevear
Details

Note You need to log in before you can comment on or make changes to this bug.
Description David Binderman 2006-01-23 14:59:12 UTC
I just tried to compile package libgnomemm-2.12.1-3 with the Intel C compiler.

It said

init.cc(52): warning #175: subscript out of range
init.cc(53): warning #175: subscript out of range

The source code is

  static GnomeModuleRequirement req[2];

  /* ... */

  req[2].required_version = NULL;
  req[2].module_info = NULL;

I agree with the compiler.  Suggest increase size of array by one.
Comment 1 JP Rosevear 2006-01-23 15:54:27 UTC
Gary, please patch and send upstream.
Comment 2 JP Rosevear 2006-01-23 15:59:58 UTC
Actually I just did that.  Attaching patch for submission.
Comment 3 JP Rosevear 2006-01-23 16:01:22 UTC
Created attachment 64540 [details]
Patch to fix problem
Comment 4 Gary Ekker 2006-01-26 23:57:31 UTC
submitted for beta 3