Skip Menu |

This queue is for tickets about the Image-Info CPAN distribution.

Report information
The Basics
Id: 26127
Status: resolved
Worked: 20 min
Priority: 0/
Queue: Image-Info

People
Owner: TELS [...] cpan.org
Requestors: ask [...] develooper.com
Cc:
AdminCc:

Bug Information
Severity: Critical
Broken in:
  • 1.16
  • 1.17
  • 1.18
  • 1.19
  • 1.20
  • 1.21
  • 1.22
  • 1.23
  • 1.24
Fixed in: 1.25



Subject: 'x' outside of string in unpack at .../Image/TIFF.pm line 836.
Calling image_info on the attached file gives me this error: 'x' outside of string in unpack at /pkg/packages/perl-5.8.7/lib/site_perl/5.8.7/Image/TIFF.pm line 836. I tried with 1.16 and 1.23 as well.
Subject: arclight3.jpg
Download arclight3.jpg
image/jpeg 145.9k
arclight3.jpg
From: ask [...] develooper.com
Adding a bit of debug information shows that it's trying to call unpack with a template of "x1852796448". Uh oh, that's a lot of null bytes... I didn't read enough of the TIFF spec to figure out if this is correct, but it did make it work: +++ /pkg/packages/perl-5.8.7/lib/site_perl/5.8.7/Image/TIFF.pm 2007-04-06 02:21:50.000000000 -0700 @@ -819,6 +819,7 @@ push(@{$self->{ifd}}, $ifd); my($num_fields) = $self->unpack("x$ifd n", $_); $ifd = $self->unpack("N", substr($_, $ifd + 2 + $num_fields*12, 4)); + $ifd = 0 if $ifd > length($_); } }
On Fri Apr 06 05:24:00 2007, ask@develooper.com wrote: Show quoted text
> Adding a bit of debug information shows that it's trying to call > unpack with a template of > "x1852796448". Uh oh, that's a lot of null bytes... > > I didn't read enough of the TIFF spec to figure out if this is > correct, but it did make it work:
Thanx, I see what I can come up with for the next release. The code probably has dozend of these bugs left over,tho :( Tels
This bug should be resolved with v1.25. If there are any more problems, please do not hesitate to either re-open this bug, or open a new one. Thank you for your report! Tels