msgpack-cli icon indicating copy to clipboard operation
msgpack-cli copied to clipboard

Unpacking.UnpackObject throws several unexpected exceptions

Open Metalnem opened this issue 5 years ago • 1 comments

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.

Metalnem avatar Dec 27 '18 10:12 Metalnem

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

yfakariya avatar Feb 03 '19 08:02 yfakariya