Bug 133121 - array subscript out of range
Summary: array subscript out of range
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: sane-frontends
Version: 3
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Tim Waugh
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2004-09-21 19:25 UTC by David Binderman
Modified: 2007-11-30 22:10 UTC (History)
0 users

Fixed In Version: 1.0.12-4
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2004-09-27 16:44:58 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description David Binderman 2004-09-21 19:25:04 UTC
Description of problem:


I just tried to compile package sane-frontends-1.0.12-3 from
Redhat Fedora Core 3 Test 1.

The compiler said

xscanimage.c(1270): warning #175: subscript out of range

The source code is

      testfilename [sizeof (testfilename)] = 0;

Clearly broken code. Suggest

      testfilename [sizeof (testfilename) - 1] = 0;




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


How reproducible:


Steps to Reproduce:
1.
2.
3.
  
Actual results:


Expected results:


Additional info:


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