Skip Menu |

This queue is for tickets about the GD-Thumbnail CPAN distribution.

Report information
The Basics
Id: 73412
Status: rejected
Priority: 0/
Queue: GD-Thumbnail

People
Owner: Nobody in particular
Requestors: infos [...] ba-cst.com
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 1.35
Fixed in: (no value)



Subject: Some JPEGs magic numbers not recognized ?
Date: Wed, 21 Dec 2011 17:10:29 +0100
To: bug-Image-GD-Thumbnail [...] rt.cpan.org
From: B&A Consultants <infos [...] ba-cst.com>
Hello, I just love GD::Thumbnail, but today it almost made some troubles. Some of the JPEGs we were handling have magic number FF D8 FF DB, and the image_type function (line 146 and followind) do not take this magic number into account. So the function returns 'undef', and some stuff above just aborts. An added line return 'Jpeg' if $magic eq "\377\330\377\333"; sovled the problem. Sincerely, -- B&A Consultants - Sécurité informatique - Conseils et audits Tél : (0) 563.277.241 - Fax : (0) 567.737.829
Subject: Re: [rt.cpan.org #73412] Some JPEGs magic numbers not recognized ?
Date: Wed, 21 Dec 2011 16:21:40 +0000
To: bug-Image-GD-Thumbnail [...] rt.cpan.org
From: Lee Goddard <lee [...] leegoddard.net>
Thank you very much indeed! If I don't get to patch it tomorrow (I fly away half-way through the day), I will certainly do so in early January. Cheers! Lee
Hi, I'm not sure if this ended up in here by mistake since there is no "$magic" variable or header check in the code. Feel free to re-open with more details if this is not the case. -Burak