Bug 106313

Summary: xpdf bad source code
Product: [Retired] Red Hat Linux Reporter: d.binderman
Component: xpdfAssignee: Than Ngo <than>
Status: CLOSED RAWHIDE QA Contact: Mike McLean <mikem>
Severity: medium Docs Contact:
Priority: medium    
Version: 9   
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: 2003-10-13 10:14:48 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 d.binderman 2003-10-05 09:46:33 UTC
Description of problem:

Hello there,

I just tried to compile package xpdf-2.01-8, from Redhat 9.0,
with compiler flag -Wall.

The compiler said

t1env.c:812: warning: operation on `i' may be undefined
t1env.c:849: warning: operation on `i' may be undefined
t1env.c:886: warning: operation on `i' may be undefined
t1env.c:1014: warning: operation on `i' may be undefined

The source code is

        T1_PFAB_ptr[i+1]=T1_PFAB_ptr[i--];

Better source code is

        T1_PFAB_ptr[i+1]=T1_PFAB_ptr[i];
		--i;



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


How reproducible:


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


Expected results:


Additional info:

Comment 1 Than Ngo 2003-10-13 10:14:48 UTC
it's fixed in 2.03-1, which will be available in rawhide. Many thanks for your
report.