Bug 240197

Summary: ufraw-0.9.120061023-33: array subscript is above array bounds
Product: [openSUSE] openSUSE 10.3 Reporter: David Binderman <dcb314>
Component: OtherAssignee: Petr Ostadal <postadal>
Status: RESOLVED DUPLICATE 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: ---

Description David Binderman 2007-01-30 11:14:39 UTC
I just tried to compile package ufraw-0.9.120061023-33
with the new GNU compiler version 4.3 snapshot 20070126

The compiler said

dcraw.cc:4856: warning: array subscript is above array bounds

The source code is

        for (i=0; i < 9; i++)
          romm_cam[0][i] = getreal(11);

but

  float romm_cam[3][3];

Suggest rewrite single for loop as double nested for loop.
Comment 1 Stefan Dirsch 2007-01-31 22:40:49 UTC
Feel free to close as duplicate of Bug #240922.
Comment 2 Petr Ostadal 2007-02-08 13:02:13 UTC
fixed

*** This bug has been marked as a duplicate of bug 240922 ***