Bug 144799

Summary: libgnomemm-2.12.1-3: array subscript out of range
Product: [openSUSE] SUSE LINUX 10.0 Reporter: David Binderman <dcb314>
Component: GNOMEAssignee: Gary Ekker <gekker>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None    
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: SUSE Other   
Whiteboard:
Found By: Other Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: Patch to fix problem

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