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.UnpackObject throws several unexpected exceptions #311

Open
Metalnem opened this issue Dec 27, 2018 · 1 comment
Open

Unpacking.UnpackObject throws several unexpected exceptions #311

Metalnem opened this issue Dec 27, 2018 · 1 comment
Labels
Milestone

Comments

@Metalnem
Copy link

@Metalnem Metalnem commented Dec 27, 2018

Unpacking.UnpackObject documentation states that this method can throw UnpackException and MessageTypeException, but it also throws several other unexpected exception types:

  • InvalidMessagePackStreamException
  • MessageNotSupportedException
  • OverflowException

You can run the following code to reproduce it (the path variable should contain the path to one of the extracted files from the attached archive):

using (var file = File.OpenRead(path))
{
  Unpacking.UnpackObject(file);
}

Found via SharpFuzz.

@yfakariya yfakariya added the bug label Feb 3, 2019
@yfakariya yfakariya added this to the 1.1 milestone Feb 3, 2019
@yfakariya
Copy link
Member

@yfakariya yfakariya commented Feb 3, 2019

Thank you for reporting. This is documentation issue, so I fix it in the next release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants