{"action":"created","issue":{"url":"https://api.github.com/repos/golang/protobuf/issues/77","labels_url":"https://api.github.com/repos/golang/protobuf/issues/77/labels{/name}","comments_url":"https://api.github.com/repos/golang/protobuf/issues/77/comments","events_url":"https://api.github.com/repos/golang/protobuf/issues/77/events","html_url":"https://github.com/golang/protobuf/issues/77","id":106755041,"number":77,"title":"Maybe I am missing something","user":{"login":"awalterschulze","id":1829933,"avatar_url":"https://avatars.githubusercontent.com/u/1829933?v=3","gravatar_id":"","url":"https://api.github.com/users/awalterschulze","html_url":"https://github.com/awalterschulze","followers_url":"https://api.github.com/users/awalterschulze/followers","following_url":"https://api.github.com/users/awalterschulze/following{/other_user}","gists_url":"https://api.github.com/users/awalterschulze/gists{/gist_id}","starred_url":"https://api.github.com/users/awalterschulze/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/awalterschulze/subscriptions","organizations_url":"https://api.github.com/users/awalterschulze/orgs","repos_url":"https://api.github.com/users/awalterschulze/repos","events_url":"https://api.github.com/users/awalterschulze/events{/privacy}","received_events_url":"https://api.github.com/users/awalterschulze/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/golang/protobuf/labels/wontfix","name":"wontfix","color":"ffffff"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-09-16T11:37:33Z","updated_at":"2015-09-17T08:00:42Z","closed_at":"2015-09-17T01:09:53Z","body":"Given this message\r\n\r\n```\r\nmessage Nil {\r\n\r\n}\r\n```\r\nYes with no fields, so everything is XXX_unrecognized\r\n\r\nHopefully the comments help.\r\n\r\nGiven this input\r\n```\r\n[]byte{0x9, 0xbd, 0x67, 0x7f, 0x8c, 0x2a, 0x43, 0xee, 0x3f, 0x15, 0xf8, 0x29, 0x44, 0xbf, 0x1a, 0xa, 0x30, 0xd7, 0x9a, 0xec, 0xf1, 0xd, 0x38, 0x89, 0xaf, 0x8c, 0x1d, 0x4d, 0xfb, 0x62, 0xa8, 0xf9, 0x55, 0xa, 0x6d, 0x55, 0x3b, 0x59, 0xa2, 0xce, 0x5f, /*check here*/ 0x99, 0x0, 0x0, 0x0, 0x0, 0x61, /*the rest is normal*/  0xba, 0xa5, 0x72, 0x14, 0x38, 0xe8, 0xf2, 0x1d, 0x68, 0x0, 0x72, 0x57, 0x72, 0x31, 0x51, 0x56, 0x4a, 0x78, 0x64, 0x79, 0x72, 0x6a, 0x64, 0x4e, 0x66, 0x31, 0x72, 0x65, 0x4c, 0x47, 0x30, 0x39, 0x43, 0x70, 0x4e, 0x35, 0x5a, 0x78, 0x4d, 0x65, 0x71, 0x70, 0x68, 0x31, 0x57, 0x6d, 0x69, 0x50, 0x66, 0x77, 0x38, 0x79, 0x61, 0x5a, 0x61, 0x4c, 0x51, 0x72, 0x47, 0x4f, 0x73, 0x52, 0x4b, 0x32, 0x77, 0x63, 0x6d, 0x50, 0x52, 0x37, 0x75, 0x6c, 0x48, 0x74, 0x72, 0x59, 0x69, 0x38, 0x75, 0x51, 0x53, 0x4e, 0x6d, 0x54, 0x31, 0x47, 0x57, 0x42, 0x43, 0x4d, 0x78, 0x35, 0x64, 0x45, 0x4c, 0x4e, 0x49, 0x6d, 0x69, 0x7a, 0x45, 0x64, 0x20, 0x20, 0x4, 0x6a, 0x4a, 0xe2, 0xe7, 0x41, 0xf1, 0x7c, 0x88, 0x73, 0xfa, 0xcb, 0xed, 0x7e, 0xd, 0x66, 0xc2, 0x31, 0xc8, 0xbc, 0x93, 0xaf, 0xda, 0xae, 0xfd, 0xd2, 0x47, 0x4f, 0x63, 0x86, 0x12, 0x9, 0x20, 0x31, 0x97, 0x78, 0xa9, 0xb4, 0x0, 0xa6, 0x44, 0x93, 0xa9, 0x38, 0xc, 0x69, 0xaf, 0xbb, 0xdd, 0x68, 0x68, 0x58, 0x3c, 0xe, 0x51, 0x39, 0xe9, 0xf6, 0x5e, 0xac, 0x38, 0x15, 0xd3, 0x31, 0x30, 0x30}\r\n```\r\nthe message becomes\r\n```\r\n&Nil{XXX_unrecognized:\r\n[]byte{0x9, 0xbd, 0x67, 0x7f, 0x8c, 0x2a, 0x43, 0xee, 0x3f, 0x15, 0xf8, 0x29, 0x44, 0xbf, 0x1a, 0xa, 0x30, 0xd7, 0x9a, 0xec, 0xf1, 0xd, 0x38, 0x89, 0xaf, 0x8c, 0x1d, 0x4d, 0xfb, 0x62, 0xa8, 0xf9, 0x55, 0xa, 0x6d, 0x55, 0x3b, 0x59, 0xa2, 0xce, 0x5f, /*check here*/ 0x19, 0x0, 0x0, 0x0, 0x61, /*the rest is normal*/ 0xba, 0xa5, 0x72, 0x14, 0x38, 0xe8, 0xf2, 0x1d, 0x68, 0x0, 0x72, 0x57, 0x72, 0x31, 0x51, 0x56, 0x4a, 0x78, 0x64, 0x79, 0x72, 0x6a, 0x64, 0x4e, 0x66, 0x31, 0x72, 0x65, 0x4c, 0x47, 0x30, 0x39, 0x43, 0x70, 0x4e, 0x35, 0x5a, 0x78, 0x4d, 0x65, 0x71, 0x70, 0x68, 0x31, 0x57, 0x6d, 0x69, 0x50, 0x66, 0x77, 0x38, 0x79, 0x61, 0x5a, 0x61, 0x4c, 0x51, 0x72, 0x47, 0x4f, 0x73, 0x52, 0x4b, 0x32, 0x77, 0x63, 0x6d, 0x50, 0x52, 0x37, 0x75, 0x6c, 0x48, 0x74, 0x72, 0x59, 0x69, 0x38, 0x75, 0x51, 0x53, 0x4e, 0x6d, 0x54, 0x31, 0x47, 0x57, 0x42, 0x43, 0x4d, 0x78, 0x35, 0x64, 0x45, 0x4c, 0x4e, 0x49, 0x6d, 0x69, 0x7a, 0x45, 0x64, 0x20, 0x20, 0x4, 0x6a, 0x4a, 0xe2, 0xe7, 0x41, 0xf1, 0x7c, 0x88, 0x73, 0xfa, 0xcb, 0xed, 0x7e, 0xd, 0x66, 0xc2, 0x31, 0xc8, 0xbc, 0x93, 0xaf, 0xda, 0xae, 0xfd, 0xd2, 0x47, 0x4f, 0x63, 0x86, 0x12, 0x9, 0x20, 0x31, 0x97, 0x78, 0xa9, 0xb4, 0x0, 0xa6, 0x44, 0x93, 0xa9, 0x38, 0xc, 0x69, 0xaf, 0xbb, 0xdd, 0x68, 0x68, 0x58, 0x3c, 0xe, 0x51, 0x39, 0xe9, 0xf6, 0x5e, 0xac, 0x38, 0x15, 0xd3, 0x31, 0x30, 0x30}\r\n```\r\n\r\nIs this working as expected?"},"comment":{"url":"https://api.github.com/repos/golang/protobuf/issues/comments/140997098","html_url":"https://github.com/golang/protobuf/issues/77#issuecomment-140997098","issue_url":"https://api.github.com/repos/golang/protobuf/issues/77","id":140997098,"user":{"login":"awalterschulze","id":1829933,"avatar_url":"https://avatars.githubusercontent.com/u/1829933?v=3","gravatar_id":"","url":"https://api.github.com/users/awalterschulze","html_url":"https://github.com/awalterschulze","followers_url":"https://api.github.com/users/awalterschulze/followers","following_url":"https://api.github.com/users/awalterschulze/following{/other_user}","gists_url":"https://api.github.com/users/awalterschulze/gists{/gist_id}","starred_url":"https://api.github.com/users/awalterschulze/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/awalterschulze/subscriptions","organizations_url":"https://api.github.com/users/awalterschulze/orgs","repos_url":"https://api.github.com/users/awalterschulze/repos","events_url":"https://api.github.com/users/awalterschulze/events{/privacy}","received_events_url":"https://api.github.com/users/awalterschulze/received_events","type":"User","site_admin":false},"created_at":"2015-09-17T08:00:42Z","updated_at":"2015-09-17T08:00:42Z","body":"Ok excellent, I thought I was missing something.\r\nI wonder how I can defend against that type of fuzzing, hmmm."}}