Bug 169834

Summary: 2 * array subscript out of range
Product: [Fedora] Fedora Reporter: David Binderman <dcb314>
Component: libtiffAssignee: Matthias Clasen <mclasen>
Status: CLOSED UPSTREAM QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: rawhide   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2005-10-05 16:38:30 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description David Binderman 2005-10-04 09:46:20 UTC
Description of problem:
I just tried to compile Fedora development package
libtiff-3.7.4-1 with a non-standard GNU C compiler.

The compiler said

1.

tiffdump.c:152: warning: array subscript out of range

The source code is

	typemask[ord(TIFF_IFD)] = 0xffffffff;

but

long    typemask[13];           /* data type masks */

and

     TIFF_IFD        = 13    /* %32-bit unsigned integer (offset) */

so typemask[ 13] does not exist. Suggest code rework.

2.

tiffdump.c:160: warning: array subscript out of range

The source code is

	typeshift[ord(TIFF_IFD)] = 0;

and

int     typeshift[13];          /* data type shift counts */

so typeshift[ 13] doesn't exist.




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


How reproducible:


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


Expected results:


Additional info:

Comment 1 Matthias Clasen 2005-10-05 16:38:30 UTC
Filed upstream as http://bugzilla.remotesensing.org/show_bug.cgi?id=946