]> git.imager.perl.org - imager.git/commit
- check that the result of fileno($fh) is defined rather than simply
authorTony Cook <tony@develop=help.com>
Fri, 18 Apr 2008 04:36:55 +0000 (04:36 +0000)
committerTony Cook <tony@develop=help.com>
Fri, 18 Apr 2008 04:36:55 +0000 (04:36 +0000)
commitde470892c30c8344255fcd210cdf917954e38778
tree579530d6c0e8fc57d52245e8f64bcccf7bbe0e91
parent1a33c3064cbe9709a0f80c0e680d1d522cc08ffa
 - check that the result of fileno($fh) is defined rather than simply
   true when read() or write() is supplied with an fh parameter.
   http://rt.cpan.org/Ticket/Display.html?id=35139

 - i_scale_axis() wasn't checking the result of i_img_new_ch()
   resulting in a SIGSEGV when attempting to scale an image to a size
   too large to fit in memory.  This is a NULL pointer access issue,
   not a buffer overflow.
   Added a check for the failure.
   scale_calculate() (and hence scale()) will now fail if any of the
   scale size parameters are a reference.
   http://rt.cpan.org/Ticket/Display.html?id=35172
Changes
Imager.pm
image.c
t/t40scale.t