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 hangs permanently #309

Closed
Metalnem opened this issue Dec 27, 2018 · 0 comments
Closed

Unpacking.UnpackObject hangs permanently #309

Metalnem opened this issue Dec 27, 2018 · 0 comments

Comments

@Metalnem
Copy link

Unpacking.UnpackObject method sometimes hangs permanently. Here is the full C# program that reproduces such behavior:

using System.IO;

namespace MsgPack.Run
{
  public class Program
  {
    public static void Main(string[] args)
    {
      var bytes = new byte[]
      {
        0x8E, 0x80, 0xFF, 0x74, 0x6F, 0x0E, 0x41, 0xDF, 0x74,
        0x6F, 0x0E, 0x41, 0x90, 0x00, 0x00, 0x0F, 0x7B, 0x20,
        0x8E, 0x80, 0xFF, 0x74, 0x6F, 0x0E, 0x41, 0xDF, 0x74,
        0x6F, 0x0E, 0x41, 0x90, 0x00, 0x00, 0xF8, 0x7A, 0x20,
        0x70, 0x68, 0x00, 0xDF, 0x6F, 0x90, 0x1C, 0x6F, 0x74,
        0x6F, 0x61, 0x70, 0x68, 0x00, 0xDF, 0x52, 0x90, 0x1C,
        0x6F, 0x74, 0x6F, 0x61, 0x6D, 0x01, 0x02, 0x03, 0x04
      };

      using (var stream = new MemoryStream(bytes))
      {
        Unpacking.UnpackObject(stream);
      }
    }
  }
}

Found via SharpFuzz.

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

No branches or pull requests

1 participant