{"action":"opened","number":2871,"pull_request":{"url":"https://api.github.com/repos/mruby/mruby/pulls/2871","id":39113780,"html_url":"https://github.com/mruby/mruby/pull/2871","diff_url":"https://github.com/mruby/mruby/pull/2871.diff","patch_url":"https://github.com/mruby/mruby/pull/2871.patch","issue_url":"https://api.github.com/repos/mruby/mruby/issues/2871","number":2871,"state":"open","locked":false,"title":"Fix incorrect memory allocation of mrdb_state_new.","user":{"login":"archSeer","id":1372918,"avatar_url":"https://avatars.githubusercontent.com/u/1372918?v=3","gravatar_id":"","url":"https://api.github.com/users/archSeer","html_url":"https://github.com/archSeer","followers_url":"https://api.github.com/users/archSeer/followers","following_url":"https://api.github.com/users/archSeer/following{/other_user}","gists_url":"https://api.github.com/users/archSeer/gists{/gist_id}","starred_url":"https://api.github.com/users/archSeer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/archSeer/subscriptions","organizations_url":"https://api.github.com/users/archSeer/orgs","repos_url":"https://api.github.com/users/archSeer/repos","events_url":"https://api.github.com/users/archSeer/events{/privacy}","received_events_url":"https://api.github.com/users/archSeer/received_events","type":"User","site_admin":false},"body":"As detected in a Coverity scan. https://scan8.coverity.com/reports.htm#v26153/p11375/fileInstanceId=6844472&defectInstanceId=2516000&mergedDefectId=75866","created_at":"2015-07-02T18:47:31Z","updated_at":"2015-07-02T18:47:31Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/mruby/mruby/pulls/2871/commits","review_comments_url":"https://api.github.com/repos/mruby/mruby/pulls/2871/comments","review_comment_url":"https://api.github.com/repos/mruby/mruby/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mruby/mruby/issues/2871/comments","statuses_url":"https://api.github.com/repos/mruby/mruby/statuses/a4f63caa7947c049ad310e9e5016404b377ebe6e","head":{"label":"archSeer:patch-2","ref":"patch-2","sha":"a4f63caa7947c049ad310e9e5016404b377ebe6e","user":{"login":"archSeer","id":1372918,"avatar_url":"https://avatars.githubusercontent.com/u/1372918?v=3","gravatar_id":"","url":"https://api.github.com/users/archSeer","html_url":"https://github.com/archSeer","followers_url":"https://api.github.com/users/archSeer/followers","following_url":"https://api.github.com/users/archSeer/following{/other_user}","gists_url":"https://api.github.com/users/archSeer/gists{/gist_id}","starred_url":"https://api.github.com/users/archSeer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/archSeer/subscriptions","organizations_url":"https://api.github.com/users/archSeer/orgs","repos_url":"https://api.github.com/users/archSeer/repos","events_url":"https://api.github.com/users/archSeer/events{/privacy}","received_events_url":"https://api.github.com/users/archSeer/received_events","type":"User","site_admin":false},"repo":{"id":11902989,"name":"mruby","full_name":"archSeer/mruby","owner":{"login":"archSeer","id":1372918,"avatar_url":"https://avatars.githubusercontent.com/u/1372918?v=3","gravatar_id":"","url":"https://api.github.com/users/archSeer","html_url":"https://github.com/archSeer","followers_url":"https://api.github.com/users/archSeer/followers","following_url":"https://api.github.com/users/archSeer/following{/other_user}","gists_url":"https://api.github.com/users/archSeer/gists{/gist_id}","starred_url":"https://api.github.com/users/archSeer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/archSeer/subscriptions","organizations_url":"https://api.github.com/users/archSeer/orgs","repos_url":"https://api.github.com/users/archSeer/repos","events_url":"https://api.github.com/users/archSeer/events{/privacy}","received_events_url":"https://api.github.com/users/archSeer/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/archSeer/mruby","description":"Lightweight Ruby","fork":true,"url":"https://api.github.com/repos/archSeer/mruby","forks_url":"https://api.github.com/repos/archSeer/mruby/forks","keys_url":"https://api.github.com/repos/archSeer/mruby/keys{/key_id}","collaborators_url":"https://api.github.com/repos/archSeer/mruby/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/archSeer/mruby/teams","hooks_url":"https://api.github.com/repos/archSeer/mruby/hooks","issue_events_url":"https://api.github.com/repos/archSeer/mruby/issues/events{/number}","events_url":"https://api.github.com/repos/archSeer/mruby/events","assignees_url":"https://api.github.com/repos/archSeer/mruby/assignees{/user}","branches_url":"https://api.github.com/repos/archSeer/mruby/branches{/branch}","tags_url":"https://api.github.com/repos/archSeer/mruby/tags","blobs_url":"https://api.github.com/repos/archSeer/mruby/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/archSeer/mruby/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/archSeer/mruby/git/refs{/sha}","trees_url":"https://api.github.com/repos/archSeer/mruby/git/trees{/sha}","statuses_url":"https://api.github.com/repos/archSeer/mruby/statuses/{sha}","languages_url":"https://api.github.com/repos/archSeer/mruby/languages","stargazers_url":"https://api.github.com/repos/archSeer/mruby/stargazers","contributors_url":"https://api.github.com/repos/archSeer/mruby/contributors","subscribers_url":"https://api.github.com/repos/archSeer/mruby/subscribers","subscription_url":"https://api.github.com/repos/archSeer/mruby/subscription","commits_url":"https://api.github.com/repos/archSeer/mruby/commits{/sha}","git_commits_url":"https://api.github.com/repos/archSeer/mruby/git/commits{/sha}","comments_url":"https://api.github.com/repos/archSeer/mruby/comments{/number}","issue_comment_url":"https://api.github.com/repos/archSeer/mruby/issues/comments{/number}","contents_url":"https://api.github.com/repos/archSeer/mruby/contents/{+path}","compare_url":"https://api.github.com/repos/archSeer/mruby/compare/{base}...{head}","merges_url":"https://api.github.com/repos/archSeer/mruby/merges","archive_url":"https://api.github.com/repos/archSeer/mruby/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/archSeer/mruby/downloads","issues_url":"https://api.github.com/repos/archSeer/mruby/issues{/number}","pulls_url":"https://api.github.com/repos/archSeer/mruby/pulls{/number}","milestones_url":"https://api.github.com/repos/archSeer/mruby/milestones{/number}","notifications_url":"https://api.github.com/repos/archSeer/mruby/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/archSeer/mruby/labels{/name}","releases_url":"https://api.github.com/repos/archSeer/mruby/releases{/id}","created_at":"2013-08-05T16:22:44Z","updated_at":"2013-08-06T03:23:41Z","pushed_at":"2015-07-02T18:47:22Z","git_url":"git://github.com/archSeer/mruby.git","ssh_url":"git@github.com:archSeer/mruby.git","clone_url":"https://github.com/archSeer/mruby.git","svn_url":"https://github.com/archSeer/mruby","homepage":null,"size":5036,"stargazers_count":0,"watchers_count":0,"language":"C","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":"mruby:master","ref":"master","sha":"ff49cf95fca2d1648f05dd636c8f8516c8edc815","user":{"login":"mruby","id":1796512,"avatar_url":"https://avatars.githubusercontent.com/u/1796512?v=3","gravatar_id":"","url":"https://api.github.com/users/mruby","html_url":"https://github.com/mruby","followers_url":"https://api.github.com/users/mruby/followers","following_url":"https://api.github.com/users/mruby/following{/other_user}","gists_url":"https://api.github.com/users/mruby/gists{/gist_id}","starred_url":"https://api.github.com/users/mruby/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mruby/subscriptions","organizations_url":"https://api.github.com/users/mruby/orgs","repos_url":"https://api.github.com/users/mruby/repos","events_url":"https://api.github.com/users/mruby/events{/privacy}","received_events_url":"https://api.github.com/users/mruby/received_events","type":"Organization","site_admin":false},"repo":{"id":4073516,"name":"mruby","full_name":"mruby/mruby","owner":{"login":"mruby","id":1796512,"avatar_url":"https://avatars.githubusercontent.com/u/1796512?v=3","gravatar_id":"","url":"https://api.github.com/users/mruby","html_url":"https://github.com/mruby","followers_url":"https://api.github.com/users/mruby/followers","following_url":"https://api.github.com/users/mruby/following{/other_user}","gists_url":"https://api.github.com/users/mruby/gists{/gist_id}","starred_url":"https://api.github.com/users/mruby/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mruby/subscriptions","organizations_url":"https://api.github.com/users/mruby/orgs","repos_url":"https://api.github.com/users/mruby/repos","events_url":"https://api.github.com/users/mruby/events{/privacy}","received_events_url":"https://api.github.com/users/mruby/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mruby/mruby","description":"Lightweight Ruby","fork":false,"url":"https://api.github.com/repos/mruby/mruby","forks_url":"https://api.github.com/repos/mruby/mruby/forks","keys_url":"https://api.github.com/repos/mruby/mruby/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mruby/mruby/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mruby/mruby/teams","hooks_url":"https://api.github.com/repos/mruby/mruby/hooks","issue_events_url":"https://api.github.com/repos/mruby/mruby/issues/events{/number}","events_url":"https://api.github.com/repos/mruby/mruby/events","assignees_url":"https://api.github.com/repos/mruby/mruby/assignees{/user}","branches_url":"https://api.github.com/repos/mruby/mruby/branches{/branch}","tags_url":"https://api.github.com/repos/mruby/mruby/tags","blobs_url":"https://api.github.com/repos/mruby/mruby/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mruby/mruby/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mruby/mruby/git/refs{/sha}","trees_url":"https://api.github.com/repos/mruby/mruby/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mruby/mruby/statuses/{sha}","languages_url":"https://api.github.com/repos/mruby/mruby/languages","stargazers_url":"https://api.github.com/repos/mruby/mruby/stargazers","contributors_url":"https://api.github.com/repos/mruby/mruby/contributors","subscribers_url":"https://api.github.com/repos/mruby/mruby/subscribers","subscription_url":"https://api.github.com/repos/mruby/mruby/subscription","commits_url":"https://api.github.com/repos/mruby/mruby/commits{/sha}","git_commits_url":"https://api.github.com/repos/mruby/mruby/git/commits{/sha}","comments_url":"https://api.github.com/repos/mruby/mruby/comments{/number}","issue_comment_url":"https://api.github.com/repos/mruby/mruby/issues/comments{/number}","contents_url":"https://api.github.com/repos/mruby/mruby/contents/{+path}","compare_url":"https://api.github.com/repos/mruby/mruby/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mruby/mruby/merges","archive_url":"https://api.github.com/repos/mruby/mruby/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mruby/mruby/downloads","issues_url":"https://api.github.com/repos/mruby/mruby/issues{/number}","pulls_url":"https://api.github.com/repos/mruby/mruby/pulls{/number}","milestones_url":"https://api.github.com/repos/mruby/mruby/milestones{/number}","notifications_url":"https://api.github.com/repos/mruby/mruby/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mruby/mruby/labels{/name}","releases_url":"https://api.github.com/repos/mruby/mruby/releases{/id}","created_at":"2012-04-19T09:11:15Z","updated_at":"2015-07-02T00:02:35Z","pushed_at":"2015-06-30T23:47:42Z","git_url":"git://github.com/mruby/mruby.git","ssh_url":"git@github.com:mruby/mruby.git","clone_url":"https://github.com/mruby/mruby.git","svn_url":"https://github.com/mruby/mruby","homepage":null,"size":23981,"stargazers_count":3088,"watchers_count":3088,"language":"C","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":471,"mirror_url":null,"open_issues_count":147,"forks":471,"open_issues":147,"watchers":3088,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mruby/mruby/pulls/2871"},"html":{"href":"https://github.com/mruby/mruby/pull/2871"},"issue":{"href":"https://api.github.com/repos/mruby/mruby/issues/2871"},"comments":{"href":"https://api.github.com/repos/mruby/mruby/issues/2871/comments"},"review_comments":{"href":"https://api.github.com/repos/mruby/mruby/pulls/2871/comments"},"review_comment":{"href":"https://api.github.com/repos/mruby/mruby/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mruby/mruby/pulls/2871/commits"},"statuses":{"href":"https://api.github.com/repos/mruby/mruby/statuses/a4f63caa7947c049ad310e9e5016404b377ebe6e"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":2,"deletions":2,"changed_files":1}}