Skip Menu |
 

This queue is for tickets about the Imager CPAN distribution.

Report information
The Basics
Id: 29936
Status: resolved
Priority: 10/
Queue: Imager

People
Owner: TONYC [...] cpan.org
Requestors: TONYC [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.60
Fixed in: (no value)



Subject: matrix_transform() should use fabs() instead of abs() range checking sz
Date: Fri, 12 Oct 2007 12:01:20 +1000
To: bug-Imager [...] rt.cpan.org
From: Tony Cook <tony [...] develop-help.com>
Download (untitled) / with headers
text/plain 549b
The following in rotate.c (twice) should use fabs() instead of abs(). if (abs(sz) > 0.0000001) { sx = (x * matrix[0] + y * matrix[1] + matrix[2]) / sz; sy = (x * matrix[3] + y * matrix[4] + matrix[5]) / sz; } else { sx = sy = 0; } /* anything outside these ranges is either a broken co-ordinate or outside the source */ if (abs(sz) > 0.0000001 && sx >= -1 && sx < src->xsize && sy >= -1 && sy < src->ysize) {
From: TONYC [...] cpan.org
fixed in svn r1308
Fixed in Imager 0.61.


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.