Bug 9329

Summary: pstopnm can bomb calculating resolutions
Product: [Retired] Red Hat Linux Reporter: Jonathan Kamens <jik>
Component: libgrAssignee: Nalin Dahyabhai <nalin>
Status: CLOSED RAWHIDE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 6.1   
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: 2000-02-14 16:13:56 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 Jonathan Kamens 2000-02-11 03:32:14 UTC
There's a line in pstopnm which reads as follows:

set xres = `(echo "scale=4";echo "if($xres>$yres)$yres";echo
"if($yres>$xres)$xres")|bc -l`

It will fail if $xres equals $yres.  It should read:

set xres = `(echo "scale=4";echo "if($xres>$yres)$yres";echo
"if($yres>$xres)$xres";echo "if($xres==$yres)$xres")|bc -l`

Comment 1 Nalin Dahyabhai 2000-02-14 16:13:59 UTC
Thanks for the heads-up.  This will be fixed in libgr-2.0.13-23 and later.