msgpack / msgpack-cli

MessagePack implementation for Common Language Infrastructure / msgpack.org[C#]
http://msgpack.org
Apache License 2.0
834 stars 175 forks source link

Unpacking.UnpackObject throws several unexpected exceptions #311

Open Metalnem opened 5 years ago

Metalnem commented 5 years ago

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

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 commented 5 years ago

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