ソースを参照

Avoid infinite loop in old versions of IO::Uncompress:Unzip

TravisCI found a bug in its perl:5.12 image where we stumbled across an
infinite loop bug in IO::Uncompress::Unzip:

    https://bugzilla.redhat.com/show_bug.cgi?id=806373

It's fixed as of IO::Uncompress::Unzip@2.030, so we specify that as our
minimum version, such that upon install we can be reasonably sure we
have a patched version of the module.
Daniel Gempesaw 10 年 前
コミット
06170f954c
2 ファイル変更2 行追加2 行削除
  1. 1 1
      cpanfile
  2. 1 1
      lib/Selenium/Firefox/Profile.pm

+ 1 - 1
cpanfile

@@ -15,7 +15,7 @@ requires "HTTP::Response" => "0";
 requires "IO::Socket" => "0";
 requires "IO::Socket::INET" => "0";
 requires "IO::String" => "0";
-requires "IO::Uncompress::Unzip" => "0";
+requires "IO::Uncompress::Unzip" => "2.030";
 requires "JSON" => "0";
 requires "LWP::UserAgent" => "0";
 requires "List::MoreUtils" => "0";

+ 1 - 1
lib/Selenium/Firefox/Profile.pm

@@ -12,7 +12,7 @@ use Cwd qw(abs_path);
 use File::Copy qw(copy);
 use File::Temp;
 use File::Basename qw(dirname);
-use IO::Uncompress::Unzip qw($UnzipError);
+use IO::Uncompress::Unzip 2.030 qw($UnzipError);
 use JSON qw(decode_json);
 use MIME::Base64;
 use Scalar::Util qw(blessed looks_like_number);