{"action":"created","issue":{"url":"https://api.github.com/repos/vburenin/firempq/issues/7","repository_url":"https://api.github.com/repos/vburenin/firempq","labels_url":"https://api.github.com/repos/vburenin/firempq/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/vburenin/firempq/issues/7/comments","events_url":"https://api.github.com/repos/vburenin/firempq/issues/7/events","html_url":"https://github.com/vburenin/firempq/issues/7","id":236433277,"number":7,"title":"Error in SQS interface while pushing messages with attributes set in it.","user":{"login":"cristovarghese","id":11645230,"avatar_url":"https://avatars0.githubusercontent.com/u/11645230?v=3","gravatar_id":"","url":"https://api.github.com/users/cristovarghese","html_url":"https://github.com/cristovarghese","followers_url":"https://api.github.com/users/cristovarghese/followers","following_url":"https://api.github.com/users/cristovarghese/following{/other_user}","gists_url":"https://api.github.com/users/cristovarghese/gists{/gist_id}","starred_url":"https://api.github.com/users/cristovarghese/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cristovarghese/subscriptions","organizations_url":"https://api.github.com/users/cristovarghese/orgs","repos_url":"https://api.github.com/users/cristovarghese/repos","events_url":"https://api.github.com/users/cristovarghese/events{/privacy}","received_events_url":"https://api.github.com/users/cristovarghese/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2017-06-16T09:43:47Z","updated_at":"2017-06-16T14:18:11Z","closed_at":null,"body":"    This is the error I encountered in FireMPQ (SQS interface) while pushing messages with message attributes set. Specifically the error occurs where were calculate md5sum of the MessageBody. Seems to disappear if I change the \"UnsafeStringToBytes\" function in enc/unsafe_cast.go without using the unsafe.Pointer\r\n\r\n    `2017/06/15 11:39:31 http: panic serving 172.17.0.1:42020: runtime error: slice bounds out of range\r\n    goroutine 462 [running]:\r\n    net/http.(*conn).serve.func1(0xc420097040)\r\n    \t/usr/local/go/src/net/http/server.go:1721 +0xd0\r\n    panic(0x89ad40, 0xb75500)\r\n    \t/usr/local/go/src/runtime/panic.go:489 +0x2cf\r\n    crypto/md5.(*digest).Write(0xc4227528b8, 0xc422c941c0, 0x1be, 0xd, 0x20, 0x21e24820, 0xc422752918)\r\n    \t/usr/local/go/src/crypto/md5/md5.go:75 +0x1df\r\n    crypto/md5.Sum(0xc422c941c0, 0x1be, 0xd, 0x0, 0x0)\r\n    \t/usr/local/go/src/crypto/md5/md5.go:128 +0xd1\r\n    github.com/vburenin/firempq/server/sqsproto/send_message.PushAMessage(0xc4200a49a0, 0xc421e277b0, 0x10, 0xc420132100, 0x8, 0x8, 0xe, 0xc422752be8)\r\n    \t/go/src/github.com/vburenin/firempq/server/sqsproto/send_message/send_message.go:225 +0x36d\r\n    github.com/vburenin/firempq/server/sqsproto/send_message.SendMessage(0xc4200a49a0, 0xc420138000, 0x9244d8, 0xb)\r\n    \t/go/src/github.com/vburenin/firempq/server/sqsproto/send_message/send_message.go:258 +0x66\r\n    github.com/vburenin/firempq/server/sqsproto.(*SQSRequestHandler).handleQueueActions(0xc42000f418, 0xc4200a49a0, 0xc420138000, 0xb501c0, 0xc4200a49a0)\r\n    \t/go/src/github.com/vburenin/firempq/server/sqsproto/sqs_dispatcher.go:60 +0xe1\r\n    github.com/vburenin/firempq/server/sqsproto.(*SQSRequestHandler).dispatchSQSQuery(0xc42000f418, 0xc42000ad00, 0x93f028, 0xc422752cc0)\r\n    \t/go/src/github.com/vburenin/firempq/server/sqsproto/sqs_dispatcher.go:114 +0x1ce\r\n    github.com/vburenin/firempq/server/sqsproto.(*SQSRequestHandler).ServeHTTP(0xc42000f418, 0xb4f6c0, 0xc42017a1c0, 0xc42000ad00)\r\n    \t/go/src/github.com/vburenin/firempq/server/sqsproto/sqs_dispatcher.go:123 +0x3c\r\n    net/http.(*ServeMux).ServeHTTP(0xc421b3cdb0, 0xb4f6c0, 0xc42017a1c0, 0xc42000ad00)\r\n    \t/usr/local/go/src/net/http/server.go:2238 +0x130\r\n    net/http.serverHandler.ServeHTTP(0xc421afb600, 0xb4f6c0, 0xc42017a1c0, 0xc42000ad00)\r\n    \t/usr/local/go/src/net/http/server.go:2568 +0x92\r\n    net/http.(*conn).serve(0xc420097040, 0xb4ff40, 0xc422c88280)\r\n    \t/usr/local/go/src/net/http/server.go:1825 +0x612\r\n    created by net/http.(*Server).Serve\r\n    \t/usr/local/go/src/net/http/server.go:2668 +0x2ce`\r\n    \r\n    "},"comment":{"url":"https://api.github.com/repos/vburenin/firempq/issues/comments/309038052","html_url":"https://github.com/vburenin/firempq/issues/7#issuecomment-309038052","issue_url":"https://api.github.com/repos/vburenin/firempq/issues/7","id":309038052,"user":{"login":"vburenin","id":4350891,"avatar_url":"https://avatars1.githubusercontent.com/u/4350891?v=3","gravatar_id":"","url":"https://api.github.com/users/vburenin","html_url":"https://github.com/vburenin","followers_url":"https://api.github.com/users/vburenin/followers","following_url":"https://api.github.com/users/vburenin/following{/other_user}","gists_url":"https://api.github.com/users/vburenin/gists{/gist_id}","starred_url":"https://api.github.com/users/vburenin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vburenin/subscriptions","organizations_url":"https://api.github.com/users/vburenin/orgs","repos_url":"https://api.github.com/users/vburenin/repos","events_url":"https://api.github.com/users/vburenin/events{/privacy}","received_events_url":"https://api.github.com/users/vburenin/received_events","type":"User","site_admin":false},"created_at":"2017-06-16T14:18:11Z","updated_at":"2017-06-16T14:18:11Z","body":"I removed set of unsafe operations, please try again. There is a new version of FMPQ on it's way that will not use unsafe calls. But it is not going to be ready soon."}}
{"actor":{"display_login":"vburenin"}}