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

@Metalnem Metalnem commented Dec 27, 2018

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.

@Metalnem Metalnem closed this Jan 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant