{"action":"closed","number":73,"pull_request":{"url":"https://api.github.com/repos/gographics/imagick/pulls/73","id":61662722,"html_url":"https://github.com/gographics/imagick/pull/73","diff_url":"https://github.com/gographics/imagick/pull/73.diff","patch_url":"https://github.com/gographics/imagick/pull/73.patch","issue_url":"https://api.github.com/repos/gographics/imagick/issues/73","number":73,"state":"closed","locked":false,"title":"Fix index panic when use unsafe.Pointer(&blob[0])","user":{"login":"buaazp","id":1470377,"avatar_url":"https://avatars.githubusercontent.com/u/1470377?v=3","gravatar_id":"","url":"https://api.github.com/users/buaazp","html_url":"https://github.com/buaazp","followers_url":"https://api.github.com/users/buaazp/followers","following_url":"https://api.github.com/users/buaazp/following{/other_user}","gists_url":"https://api.github.com/users/buaazp/gists{/gist_id}","starred_url":"https://api.github.com/users/buaazp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/buaazp/subscriptions","organizations_url":"https://api.github.com/users/buaazp/orgs","repos_url":"https://api.github.com/users/buaazp/repos","events_url":"https://api.github.com/users/buaazp/events{/privacy}","received_events_url":"https://api.github.com/users/buaazp/received_events","type":"User","site_admin":false},"body":"When I use `PingImageBlob()` and the `blob` is zero length, my process panic with `runtime error: index out of range`. I found you miss index check in these codes:\r\n```\r\nunsafe.Pointer(&blob[0])\r\nunsafe.Pointer(&pixels[0])\r\nunsafe.Pointer(&profile[0])\r\n```\r\nThis PR add index check before using &blob[0].\r\nThis bug exists in both master and im-6.8.9 branch.","created_at":"2016-03-04T03:30:47Z","updated_at":"2016-03-04T08:10:30Z","closed_at":"2016-03-04T08:10:30Z","merged_at":"2016-03-04T08:10:30Z","merge_commit_sha":"a7a951b0cfd1f5d695f9132c2fd4b17ad3d37d42","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/gographics/imagick/pulls/73/commits","review_comments_url":"https://api.github.com/repos/gographics/imagick/pulls/73/comments","review_comment_url":"https://api.github.com/repos/gographics/imagick/pulls/comments{/number}","comments_url":"https://api.github.com/repos/gographics/imagick/issues/73/comments","statuses_url":"https://api.github.com/repos/gographics/imagick/statuses/16d8642122236b36c1f846a39da1aaff5667cdb0","head":{"label":"buaazp:fix-index-panic","ref":"fix-index-panic","sha":"16d8642122236b36c1f846a39da1aaff5667cdb0","user":{"login":"buaazp","id":1470377,"avatar_url":"https://avatars.githubusercontent.com/u/1470377?v=3","gravatar_id":"","url":"https://api.github.com/users/buaazp","html_url":"https://github.com/buaazp","followers_url":"https://api.github.com/users/buaazp/followers","following_url":"https://api.github.com/users/buaazp/following{/other_user}","gists_url":"https://api.github.com/users/buaazp/gists{/gist_id}","starred_url":"https://api.github.com/users/buaazp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/buaazp/subscriptions","organizations_url":"https://api.github.com/users/buaazp/orgs","repos_url":"https://api.github.com/users/buaazp/repos","events_url":"https://api.github.com/users/buaazp/events{/privacy}","received_events_url":"https://api.github.com/users/buaazp/received_events","type":"User","site_admin":false},"repo":{"id":53103901,"name":"imagick","full_name":"buaazp/imagick","owner":{"login":"buaazp","id":1470377,"avatar_url":"https://avatars.githubusercontent.com/u/1470377?v=3","gravatar_id":"","url":"https://api.github.com/users/buaazp","html_url":"https://github.com/buaazp","followers_url":"https://api.github.com/users/buaazp/followers","following_url":"https://api.github.com/users/buaazp/following{/other_user}","gists_url":"https://api.github.com/users/buaazp/gists{/gist_id}","starred_url":"https://api.github.com/users/buaazp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/buaazp/subscriptions","organizations_url":"https://api.github.com/users/buaazp/orgs","repos_url":"https://api.github.com/users/buaazp/repos","events_url":"https://api.github.com/users/buaazp/events{/privacy}","received_events_url":"https://api.github.com/users/buaazp/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/buaazp/imagick","description":"naive Go binding to ImageMagick's MagickWand C API","fork":true,"url":"https://api.github.com/repos/buaazp/imagick","forks_url":"https://api.github.com/repos/buaazp/imagick/forks","keys_url":"https://api.github.com/repos/buaazp/imagick/keys{/key_id}","collaborators_url":"https://api.github.com/repos/buaazp/imagick/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/buaazp/imagick/teams","hooks_url":"https://api.github.com/repos/buaazp/imagick/hooks","issue_events_url":"https://api.github.com/repos/buaazp/imagick/issues/events{/number}","events_url":"https://api.github.com/repos/buaazp/imagick/events","assignees_url":"https://api.github.com/repos/buaazp/imagick/assignees{/user}","branches_url":"https://api.github.com/repos/buaazp/imagick/branches{/branch}","tags_url":"https://api.github.com/repos/buaazp/imagick/tags","blobs_url":"https://api.github.com/repos/buaazp/imagick/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/buaazp/imagick/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/buaazp/imagick/git/refs{/sha}","trees_url":"https://api.github.com/repos/buaazp/imagick/git/trees{/sha}","statuses_url":"https://api.github.com/repos/buaazp/imagick/statuses/{sha}","languages_url":"https://api.github.com/repos/buaazp/imagick/languages","stargazers_url":"https://api.github.com/repos/buaazp/imagick/stargazers","contributors_url":"https://api.github.com/repos/buaazp/imagick/contributors","subscribers_url":"https://api.github.com/repos/buaazp/imagick/subscribers","subscription_url":"https://api.github.com/repos/buaazp/imagick/subscription","commits_url":"https://api.github.com/repos/buaazp/imagick/commits{/sha}","git_commits_url":"https://api.github.com/repos/buaazp/imagick/git/commits{/sha}","comments_url":"https://api.github.com/repos/buaazp/imagick/comments{/number}","issue_comment_url":"https://api.github.com/repos/buaazp/imagick/issues/comments{/number}","contents_url":"https://api.github.com/repos/buaazp/imagick/contents/{+path}","compare_url":"https://api.github.com/repos/buaazp/imagick/compare/{base}...{head}","merges_url":"https://api.github.com/repos/buaazp/imagick/merges","archive_url":"https://api.github.com/repos/buaazp/imagick/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/buaazp/imagick/downloads","issues_url":"https://api.github.com/repos/buaazp/imagick/issues{/number}","pulls_url":"https://api.github.com/repos/buaazp/imagick/pulls{/number}","milestones_url":"https://api.github.com/repos/buaazp/imagick/milestones{/number}","notifications_url":"https://api.github.com/repos/buaazp/imagick/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/buaazp/imagick/labels{/name}","releases_url":"https://api.github.com/repos/buaazp/imagick/releases{/id}","deployments_url":"https://api.github.com/repos/buaazp/imagick/deployments","created_at":"2016-03-04T03:14:58Z","updated_at":"2016-03-04T03:14:59Z","pushed_at":"2016-03-04T07:06:58Z","git_url":"git://github.com/buaazp/imagick.git","ssh_url":"git@github.com:buaazp/imagick.git","clone_url":"https://github.com/buaazp/imagick.git","svn_url":"https://github.com/buaazp/imagick","homepage":"godoc.org/github.com/gographics/imagick/imagick","size":1213,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"gographics:master","ref":"master","sha":"c2965081868659fa02332e77813a5402882b4bf5","user":{"login":"gographics","id":4342165,"avatar_url":"https://avatars.githubusercontent.com/u/4342165?v=3","gravatar_id":"","url":"https://api.github.com/users/gographics","html_url":"https://github.com/gographics","followers_url":"https://api.github.com/users/gographics/followers","following_url":"https://api.github.com/users/gographics/following{/other_user}","gists_url":"https://api.github.com/users/gographics/gists{/gist_id}","starred_url":"https://api.github.com/users/gographics/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gographics/subscriptions","organizations_url":"https://api.github.com/users/gographics/orgs","repos_url":"https://api.github.com/users/gographics/repos","events_url":"https://api.github.com/users/gographics/events{/privacy}","received_events_url":"https://api.github.com/users/gographics/received_events","type":"Organization","site_admin":false},"repo":{"id":9776211,"name":"imagick","full_name":"gographics/imagick","owner":{"login":"gographics","id":4342165,"avatar_url":"https://avatars.githubusercontent.com/u/4342165?v=3","gravatar_id":"","url":"https://api.github.com/users/gographics","html_url":"https://github.com/gographics","followers_url":"https://api.github.com/users/gographics/followers","following_url":"https://api.github.com/users/gographics/following{/other_user}","gists_url":"https://api.github.com/users/gographics/gists{/gist_id}","starred_url":"https://api.github.com/users/gographics/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gographics/subscriptions","organizations_url":"https://api.github.com/users/gographics/orgs","repos_url":"https://api.github.com/users/gographics/repos","events_url":"https://api.github.com/users/gographics/events{/privacy}","received_events_url":"https://api.github.com/users/gographics/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/gographics/imagick","description":"naive Go binding to ImageMagick's MagickWand C API","fork":false,"url":"https://api.github.com/repos/gographics/imagick","forks_url":"https://api.github.com/repos/gographics/imagick/forks","keys_url":"https://api.github.com/repos/gographics/imagick/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gographics/imagick/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gographics/imagick/teams","hooks_url":"https://api.github.com/repos/gographics/imagick/hooks","issue_events_url":"https://api.github.com/repos/gographics/imagick/issues/events{/number}","events_url":"https://api.github.com/repos/gographics/imagick/events","assignees_url":"https://api.github.com/repos/gographics/imagick/assignees{/user}","branches_url":"https://api.github.com/repos/gographics/imagick/branches{/branch}","tags_url":"https://api.github.com/repos/gographics/imagick/tags","blobs_url":"https://api.github.com/repos/gographics/imagick/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gographics/imagick/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gographics/imagick/git/refs{/sha}","trees_url":"https://api.github.com/repos/gographics/imagick/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gographics/imagick/statuses/{sha}","languages_url":"https://api.github.com/repos/gographics/imagick/languages","stargazers_url":"https://api.github.com/repos/gographics/imagick/stargazers","contributors_url":"https://api.github.com/repos/gographics/imagick/contributors","subscribers_url":"https://api.github.com/repos/gographics/imagick/subscribers","subscription_url":"https://api.github.com/repos/gographics/imagick/subscription","commits_url":"https://api.github.com/repos/gographics/imagick/commits{/sha}","git_commits_url":"https://api.github.com/repos/gographics/imagick/git/commits{/sha}","comments_url":"https://api.github.com/repos/gographics/imagick/comments{/number}","issue_comment_url":"https://api.github.com/repos/gographics/imagick/issues/comments{/number}","contents_url":"https://api.github.com/repos/gographics/imagick/contents/{+path}","compare_url":"https://api.github.com/repos/gographics/imagick/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gographics/imagick/merges","archive_url":"https://api.github.com/repos/gographics/imagick/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gographics/imagick/downloads","issues_url":"https://api.github.com/repos/gographics/imagick/issues{/number}","pulls_url":"https://api.github.com/repos/gographics/imagick/pulls{/number}","milestones_url":"https://api.github.com/repos/gographics/imagick/milestones{/number}","notifications_url":"https://api.github.com/repos/gographics/imagick/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gographics/imagick/labels{/name}","releases_url":"https://api.github.com/repos/gographics/imagick/releases{/id}","deployments_url":"https://api.github.com/repos/gographics/imagick/deployments","created_at":"2013-04-30T17:31:48Z","updated_at":"2016-03-04T03:19:56Z","pushed_at":"2016-03-04T08:10:30Z","git_url":"git://github.com/gographics/imagick.git","ssh_url":"git@github.com:gographics/imagick.git","clone_url":"https://github.com/gographics/imagick.git","svn_url":"https://github.com/gographics/imagick","homepage":"godoc.org/github.com/gographics/imagick/imagick","size":1292,"stargazers_count":390,"watchers_count":390,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":62,"mirror_url":null,"open_issues_count":7,"forks":62,"open_issues":7,"watchers":390,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/gographics/imagick/pulls/73"},"html":{"href":"https://github.com/gographics/imagick/pull/73"},"issue":{"href":"https://api.github.com/repos/gographics/imagick/issues/73"},"comments":{"href":"https://api.github.com/repos/gographics/imagick/issues/73/comments"},"review_comments":{"href":"https://api.github.com/repos/gographics/imagick/pulls/73/comments"},"review_comment":{"href":"https://api.github.com/repos/gographics/imagick/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/gographics/imagick/pulls/73/commits"},"statuses":{"href":"https://api.github.com/repos/gographics/imagick/statuses/16d8642122236b36c1f846a39da1aaff5667cdb0"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"justinfx","id":282566,"avatar_url":"https://avatars.githubusercontent.com/u/282566?v=3","gravatar_id":"","url":"https://api.github.com/users/justinfx","html_url":"https://github.com/justinfx","followers_url":"https://api.github.com/users/justinfx/followers","following_url":"https://api.github.com/users/justinfx/following{/other_user}","gists_url":"https://api.github.com/users/justinfx/gists{/gist_id}","starred_url":"https://api.github.com/users/justinfx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/justinfx/subscriptions","organizations_url":"https://api.github.com/users/justinfx/orgs","repos_url":"https://api.github.com/users/justinfx/repos","events_url":"https://api.github.com/users/justinfx/events{/privacy}","received_events_url":"https://api.github.com/users/justinfx/received_events","type":"User","site_admin":false},"comments":2,"review_comments":1,"commits":1,"additions":16,"deletions":1,"changed_files":2}}