Bug 106313 - xpdf bad source code
Summary: xpdf bad source code
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: xpdf
Version: 9
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Ngo Than
QA Contact: Mike McLean
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2003-10-05 09:46 UTC by d.binderman
Modified: 2007-04-18 16:58 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2003-10-13 10:14:48 UTC


Attachments (Terms of Use)

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 Ngo Than 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.


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