Skip to content

Commit

Permalink
Fix unzipping of kindlegen archive on Windows
Browse files Browse the repository at this point in the history
unzipping was broken due to fixes for CVE-2018-1000544 in rubyzip: [1], [2].

Also, see [3].

Fixes tdtds#32.

[1]: rubyzip/rubyzip#371
[2]: rubyzip/rubyzip#376
[3]: rubyzip/rubyzip#354
  • Loading branch information
slonopotamus committed Dec 22, 2019
1 parent 38b5e05 commit f06e8a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ext/Rakefile
Expand Up @@ -49,7 +49,7 @@ def unzip(tarball)
Zip::File.open(tarball).each do |entry|
dir = File.dirname(entry.name)
FileUtils.mkpath(dir) if dir != '.' && !File.exist?(dir)
entry.extract unless File.exist?(entry.name)
entry.extract(dest_path=entry.name) unless File.exist?(entry.name)
end
end

Expand Down

0 comments on commit f06e8a1

Please sign in to comment.