Skip Menu |

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

Report information
The Basics
Id: 88714
Status: resolved
Priority: 0/
Queue: Image-ValidJpeg

People
Owner: steve.sanbeg [...] gmail.com
Requestors: hulala [...] usa.com
Cc:
AdminCc:

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



Subject: Segmentation fault when in-memory file handle is used
Test Perl code: use LWP::UserAgent; use HTTP::Request; use HTTP::Response; use Image::ValidJpeg; my $url = 'http://...'; my $ua = LWP::UserAgent->new(agent => ''); my $request = HTTP::Request->new(GET => $url); my $response = $ua->request($request); if (($response->is_success) && ($response->code == 200) && ($response->header('Content-Type') eq 'image/jpeg')) { my $content = $response->decoded_content; open(my $img, '<', \$content); my $check = Image::ValidJpeg::check_all($img); print "$check\n"; }
Thanks for the report. I've migrated it all from stdio to PerlIO, so it should work with any type of file handle now.