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

lzma: do not panic upon invalid inputs in syncDict.writeRep #2

Closed
wants to merge 1 commit into from

Conversation

pmezard
Copy link

@pmezard pmezard commented Sep 20, 2015

Found by go-fuzz.

I would replace all the panics in lzma package as well, but I do not know the code at all and they might be actual invariants. You know better than I do.

@ulikunitz
Copy link
Owner

Hi,

many thanks for reporting this. The panic indicates a bug in the encoder that must not happen at all. Therefore it doesn't make sense to return an error here. Could you please provide me with the go-fuzz routine and the crasher byte sequence to find the cause for the bug? After that it needs to be checked whether the bug is still present in the dev tree and fix the bug there.

I create issue #3 to fix the bug. Please use it for any follow-on discussion.

Again many thanks,

Uli

@ulikunitz ulikunitz closed this Sep 28, 2015
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.

2 participants