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

fix bsdiff creation for patches that don't contain bsdiff extra data #1421

Merged
merged 1 commit into from May 15, 2020

Conversation

rufusl
Copy link

@rufusl rufusl commented Nov 22, 2018

When a created bsdiff patch does not contain any extra data, a System.DivideByZeroException is thrown by SharpCompress when trying to compress the (zero-sized) extra data (as also reported in #1101 ).
This fix skips writing and reading the extra data if there is none in the patch.

For us, this was also the cause of electron/windows-installer#185.

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.

None yet

2 participants