-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Cannot Reencode ASAR #2
Comments
Are you able to attach a minimal ASAR file with which you are experiencing this bug? |
Sadly not, the only ASAR I've been able to reproduce this on is a 13MB large file. However, I have found that the error changes from It looks like the header size is not correctly encoded by some offset. |
The header_size section is as follows:
The header starts at According to header_size however it should end at That means the encoder is miscalculating the header_size values by 4097 bytes. |
I have the same issue. |
@yyq2013 Do you have an ASAR file that I can test this with? |
@bontibon The first file test.asar is genereate by nodejs command "asar pack ...." f:=test.asar And then: |
I've found that opening an ASAR file and attempting to reencode it directly leads to issues on the archive format.
When attempting to decode an ASAR generated with this library, I get the following error;
Electron doesn't want to open this file either and
asar
crashes with a stack error.I suspect the header might be wrongly encoded.
The text was updated successfully, but these errors were encountered: