Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 572755 Details for
Bug 806373
IO::Uncompress::Unzip->nextStream() does not return 0 at last ZIP stream
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
Reproducer
unzip_nextstream (text/plain), 812 bytes, created by
Petr Pisar
on 2012-03-26 13:45:35 UTC
(
hide
)
Description:
Reproducer
Filename:
MIME Type:
Creator:
Petr Pisar
Created:
2012-03-26 13:45:35 UTC
Size:
812 bytes
patch
obsolete
>#!/usr/bin/perl >use strict; >use warnings; > >use IO::Compress::Zip; >use IO::Uncompress::Unzip; > >my $zipped; >IO::Compress::Zip::zip '/etc/passwd' => \$zipped or > die "Created ZIP archive failed: $IO::Compress::Zip::ZipError\n"; > >my $unzipper = IO::Uncompress::Unzip->new(\$zipped) or > die "Creating ZIP decoder failed: $IO::Uncompress::Unzip::UnzipError\n"; > >my $timeout = 5; >$SIG{ALRM} = sub { > die "IO::Uncompress::Unzip->nextStream() did not return false in " . > "$timeout seconds.\n"; >}; >alarm($timeout); >print "Waiting $timeout seconds for finishing decoder...\n"; > >while(my $status = $unzipper->nextStream()) { > if ($status == -1) { > die "Changing decoder stream failed: " . > "$IO::Uncompress::Unzip::UnzipError\n"; > } >} > >print "IO::Uncompress::Unzip->nextStream() returned false as expected.\n"; >exit 0;
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 806373
: 572755