Skip to content

Handle prepended data.#266

Merged
dduponchel merged 1 commit intoStuk:masterfrom
dduponchel:crx_issue_265
Mar 21, 2016
Merged

Handle prepended data.#266
dduponchel merged 1 commit intoStuk:masterfrom
dduponchel:crx_issue_265

Conversation

@dduponchel
Copy link
Copy Markdown
Contributor

In some cases (crx files for example), data have been prepended but the
offset didn't change: the previous version read 0 file, didn't check it
and stopped.
This version tries harder to recover from a bad offset. If/when we read
0 file, we will throw an error.

Other tools (unzip, 7zip, etc) handle that case, now JSZip too.

Fix #265.

@dduponchel
Copy link
Copy Markdown
Contributor Author

This pull request changes readers, like #252. Merging one means updating the other.

In some cases (crx files for example), data have been prepended but the
offset didn't change: the previous version read 0 file, didn't check it
and stopped.
This version tries harder to recover from a bad offset. If/when we read
0 file, we will throw an error.

Other tools (unzip, 7zip, etc) handle that case, now JSZip too.

Fix Stuk#265.
dduponchel added a commit that referenced this pull request Mar 21, 2016
@dduponchel dduponchel merged commit eed21cb into Stuk:master Mar 21, 2016
@dduponchel dduponchel deleted the crx_issue_265 branch March 21, 2016 20:21
@dduponchel dduponchel mentioned this pull request Mar 22, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant