Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unpacking software fails to open RAR file on linux #125

Closed
Womble opened this issue Oct 4, 2020 · 10 comments
Closed

Unpacking software fails to open RAR file on linux #125

Womble opened this issue Oct 4, 2020 · 10 comments
Labels
question Further information is requested

Comments

@Womble
Copy link

Womble commented Oct 4, 2020

When unzipping the linux release file (1.7.30) each file is inflated until the entire hard drive is consumed

Seen using Ubuntu (gnome) 20.04 with the current release.

@Womble Womble added the bug Something isn't working label Oct 4, 2020
@bcssov
Copy link
Owner

bcssov commented Oct 4, 2020

Have you tried using another archiver to unpack the release? There really is nothing out of the ordinary in the rar itself
Image2

@bcssov bcssov added question Further information is requested and removed bug Something isn't working labels Oct 4, 2020
@Womble
Copy link
Author

Womble commented Oct 4, 2020

just tried Downloading a separate CLI package from unpacking rar files (unrar-free) and it fails with the following error (though at least doesnt start filling the hard drive.)

$ unrar linux-x64.rar

unrar 0.0.1 Copyright (C) 2004 Ben Asselstine, Jeroen Dekkers

Extracting from /media/7a65f7a6-09a3-45a9-b53b-3f166fe5d452/Downloads/linux-x64.rar

unknown archive type, only plain RAR 2.0 supported(normal and solid archives), SFX and Volumes are NOT supported!
All OK

@bcssov
Copy link
Owner

bcssov commented Oct 4, 2020

Unfortunately it's your archive software filling the disk not Irony. I can unpack and open it just fine with winRAR on windows though.

@Womble
Copy link
Author

Womble commented Oct 4, 2020

Well yes obviously, but a well formatted rar file should not do this, none have before.

@bcssov
Copy link
Owner

bcssov commented Oct 4, 2020

Well the rar was made using WinRAR and it is opened just fine on windows using multiple software.

@bcssov bcssov changed the title Linux release acts as a zip-bomb Unpacking software fails to open RAR file on linux Oct 4, 2020
@bcssov
Copy link
Owner

bcssov commented Oct 4, 2020

Could it be possibly confused with the compression level?

@Womble
Copy link
Author

Womble commented Oct 4, 2020

Hmm, with further testing it does appear that unrar-free seems to be the issue. Trying another unrar program seems to work fine, I've never seen this happen before with a rar file, are you using any unusual options in the creation of it?

@bcssov
Copy link
Owner

bcssov commented Oct 4, 2020

Not to my knowledge, autodeploy packaging script:
rar a -ep1 -m5 -r linux-x64.rar linux-x64

-ep1: https://documentation.help/WinRAR/HELPSwEP1.htm
-m5 compression level (being the highest)

@Womble
Copy link
Author

Womble commented Oct 4, 2020

Very strange, I'm at a loss to why it fails in various ways with different rar backends then. But that's not really anything you can do much about.

If you want to avoid this issue entirely it would be easier to package the Linux version as a .tar.gz file.

@Womble Womble closed this as completed Oct 4, 2020
@bcssov
Copy link
Owner

bcssov commented Oct 4, 2020

Easier yes; but I don't have too much spare time to find proper tools for windows to pack a tar.gz and edit my deployment procedures. I will switch to zip however for Linux.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants