seven_zip_ruby icon indicating copy to clipboard operation
seven_zip_ruby copied to clipboard

Ruby gem library to compress/extract 7-Zip archives

Results 16 seven_zip_ruby issues
Sort by recently updated
recently updated
newest added

* Resolve gcc 11 compatibility issue (https://github.com/masamitsu-murase/seven_zip_ruby/issues/36) This issue happens when newer versions of gcc are used where default C++ standard is 17. There is an obvious mismatch in 7z...

seven_zip_ruby 1.3.0 on openSUSE-15.4 (Linux) https://download.opensuse.org/distribution/leap/15.4/live/openSUSE-Leap-15.4-KDE-Live-x86_64-Media.iso ```bash sudo zypper in ruby2.5-devel gcc-c++ sudo gem install --conservative --no-doc seven_zip_ruby ```   The problem: ```bash mkdir in touch in/non_"$(echo -ne '\x80')"_utf8.txt ruby...

``` ../../Archive/NtfsHandler.cpp: In member function 'LONG NArchive::Ntfs::CDatabase::Open()': ../../Archive/NtfsHandler.cpp:1283:71: error: cannot convert 'std::nullptr_t' to 'UInt32' {aka 'unsigned int'} 1283 | if (!mftRec.Parse(ByteBuf, Header.SectorSizeLog, numSectorsInRec, NULL, 0)) | ^~~~ | | |...

And on the way to check the size of the resulting archive? I did it with the `7za.exe` using `a/d` options but it updates the file on the disk and...

p7zip のソースおよび 7zip の dll のアップデートです。 Debian パッチを含みます。バージョンは次の通りです。 p7zip 16.02 p7zip 16.02+dfsg-7.debian 7zip 19.00 アップデートされた p7zip/7zip の変更は膨大で、コミット内容の確認が困難です。 Update: p7zip 16.02 https://github.com/niloufar/seven_zip_ruby/commit/f7a389e7fe50a5e8800efe18c1faa2d5334e84b7 のコミットは、 p7zip/extract.sh を使用することで、公式に配布されているソースと同じものであることを確認できます。 extract.sh スクリプトの説明は p7zip/README.txt をお読みください。 Debian パッチについては、...

Windows 版の Ruby 2.6 で 7z.dll が読み込めなかった問題の修正です。 Dll Preloading Attacks への対応も含みます。 gem install seven_zip_ruby_am でインストールしたソースを変更し、簡単に動作を確認しました。使用した Ruby は RubyInstaller 版の ruby 2.6.5p114 (2019-10-01 revision 67812) [x64-mingw32] です。 DLL プリロード攻撃を防止するためのライブラリの安全な読み込み

They were always returning `nil` (from SevenZipReader#close_file) Also changed &block + block.call to block_given? + yield

Both - [`SevenZipRuby::Reader.open`](https://github.com/masamitsu-murase/seven_zip_ruby/blob/v1.2.5/lib/seven_zip_ruby/seven_zip_reader.rb#L107) (not `#open`) - [`SevenZipRuby::Reader.open_file`](https://github.com/masamitsu-murase/seven_zip_ruby/blob/v1.2.5/lib/seven_zip_ruby/seven_zip_reader.rb#L144) (not `#open_file`) return `szr.close` instead of `block.call(szr)` which is inconvenient. The built-in `File` class does return block value when `File.open` is used with...

I use Webrick with seven_zip_ruby to open archieved items right in browser. Almost all files extract well, but a few cause 500 HTTP code on Webrick. When I open these...