{"action":"opened","number":9461,"pull_request":{"url":"https://api.github.com/repos/radare/radare2/pulls/9461","id":170729897,"html_url":"https://github.com/radare/radare2/pull/9461","diff_url":"https://github.com/radare/radare2/pull/9461.diff","patch_url":"https://github.com/radare/radare2/pull/9461.patch","issue_url":"https://api.github.com/repos/radare/radare2/issues/9461","number":9461,"state":"open","locked":false,"title":"fix segfault caused by NULL deref in pdb.c","user":{"login":"fcasal","id":17139618,"avatar_url":"https://avatars2.githubusercontent.com/u/17139618?v=4","gravatar_id":"","url":"https://api.github.com/users/fcasal","html_url":"https://github.com/fcasal","followers_url":"https://api.github.com/users/fcasal/followers","following_url":"https://api.github.com/users/fcasal/following{/other_user}","gists_url":"https://api.github.com/users/fcasal/gists{/gist_id}","starred_url":"https://api.github.com/users/fcasal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fcasal/subscriptions","organizations_url":"https://api.github.com/users/fcasal/orgs","repos_url":"https://api.github.com/users/fcasal/repos","events_url":"https://api.github.com/users/fcasal/events{/privacy}","received_events_url":"https://api.github.com/users/fcasal/received_events","type":"User","site_admin":false},"body":"### TLDR\r\nFix segfault caused by NULL deref\r\n\r\n### Steps to reproduce the behaviour\r\n```\r\nmandlebro@machine:$ touch beef\r\nmandlebro@machine:$ r2 - -c 'idp beef'\r\nSegmentation fault (core dumped)\r\n```\r\n\r\n## Cause\r\nThe offending line is 661 of `buf.c`\r\n```c\r\n660\tR_API int r_buf_read_at(RBuffer *b, ut64 addr, ut8 *buf, int len) {\r\n661\t\tRIOBind *iob = b->iob;\r\n```\r\nwhere `b` is NULL.\r\n\r\nThis buffer comes from `pdb.c:1181`\r\n```c\r\n1181     \tpdb->buf = r_buf_new_slurp (filename);\r\n```\r\nwhich is not checked for null deref.","created_at":"2018-02-22T11:54:44Z","updated_at":"2018-02-22T11:54:44Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/radare/radare2/pulls/9461/commits","review_comments_url":"https://api.github.com/repos/radare/radare2/pulls/9461/comments","review_comment_url":"https://api.github.com/repos/radare/radare2/pulls/comments{/number}","comments_url":"https://api.github.com/repos/radare/radare2/issues/9461/comments","statuses_url":"https://api.github.com/repos/radare/radare2/statuses/48c21df94a52c32752a579dfe26b4e05cccce838","head":{"label":"fcasal:patch-4","ref":"patch-4","sha":"48c21df94a52c32752a579dfe26b4e05cccce838","user":{"login":"fcasal","id":17139618,"avatar_url":"https://avatars2.githubusercontent.com/u/17139618?v=4","gravatar_id":"","url":"https://api.github.com/users/fcasal","html_url":"https://github.com/fcasal","followers_url":"https://api.github.com/users/fcasal/followers","following_url":"https://api.github.com/users/fcasal/following{/other_user}","gists_url":"https://api.github.com/users/fcasal/gists{/gist_id}","starred_url":"https://api.github.com/users/fcasal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fcasal/subscriptions","organizations_url":"https://api.github.com/users/fcasal/orgs","repos_url":"https://api.github.com/users/fcasal/repos","events_url":"https://api.github.com/users/fcasal/events{/privacy}","received_events_url":"https://api.github.com/users/fcasal/received_events","type":"User","site_admin":false},"repo":{"id":121125026,"name":"radare2","full_name":"fcasal/radare2","owner":{"login":"fcasal","id":17139618,"avatar_url":"https://avatars2.githubusercontent.com/u/17139618?v=4","gravatar_id":"","url":"https://api.github.com/users/fcasal","html_url":"https://github.com/fcasal","followers_url":"https://api.github.com/users/fcasal/followers","following_url":"https://api.github.com/users/fcasal/following{/other_user}","gists_url":"https://api.github.com/users/fcasal/gists{/gist_id}","starred_url":"https://api.github.com/users/fcasal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fcasal/subscriptions","organizations_url":"https://api.github.com/users/fcasal/orgs","repos_url":"https://api.github.com/users/fcasal/repos","events_url":"https://api.github.com/users/fcasal/events{/privacy}","received_events_url":"https://api.github.com/users/fcasal/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/fcasal/radare2","description":"unix-like reverse engineering framework and commandline tools","fork":true,"url":"https://api.github.com/repos/fcasal/radare2","forks_url":"https://api.github.com/repos/fcasal/radare2/forks","keys_url":"https://api.github.com/repos/fcasal/radare2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/fcasal/radare2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/fcasal/radare2/teams","hooks_url":"https://api.github.com/repos/fcasal/radare2/hooks","issue_events_url":"https://api.github.com/repos/fcasal/radare2/issues/events{/number}","events_url":"https://api.github.com/repos/fcasal/radare2/events","assignees_url":"https://api.github.com/repos/fcasal/radare2/assignees{/user}","branches_url":"https://api.github.com/repos/fcasal/radare2/branches{/branch}","tags_url":"https://api.github.com/repos/fcasal/radare2/tags","blobs_url":"https://api.github.com/repos/fcasal/radare2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/fcasal/radare2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/fcasal/radare2/git/refs{/sha}","trees_url":"https://api.github.com/repos/fcasal/radare2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/fcasal/radare2/statuses/{sha}","languages_url":"https://api.github.com/repos/fcasal/radare2/languages","stargazers_url":"https://api.github.com/repos/fcasal/radare2/stargazers","contributors_url":"https://api.github.com/repos/fcasal/radare2/contributors","subscribers_url":"https://api.github.com/repos/fcasal/radare2/subscribers","subscription_url":"https://api.github.com/repos/fcasal/radare2/subscription","commits_url":"https://api.github.com/repos/fcasal/radare2/commits{/sha}","git_commits_url":"https://api.github.com/repos/fcasal/radare2/git/commits{/sha}","comments_url":"https://api.github.com/repos/fcasal/radare2/comments{/number}","issue_comment_url":"https://api.github.com/repos/fcasal/radare2/issues/comments{/number}","contents_url":"https://api.github.com/repos/fcasal/radare2/contents/{+path}","compare_url":"https://api.github.com/repos/fcasal/radare2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/fcasal/radare2/merges","archive_url":"https://api.github.com/repos/fcasal/radare2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/fcasal/radare2/downloads","issues_url":"https://api.github.com/repos/fcasal/radare2/issues{/number}","pulls_url":"https://api.github.com/repos/fcasal/radare2/pulls{/number}","milestones_url":"https://api.github.com/repos/fcasal/radare2/milestones{/number}","notifications_url":"https://api.github.com/repos/fcasal/radare2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/fcasal/radare2/labels{/name}","releases_url":"https://api.github.com/repos/fcasal/radare2/releases{/id}","deployments_url":"https://api.github.com/repos/fcasal/radare2/deployments","created_at":"2018-02-11T13:15:33Z","updated_at":"2018-02-11T13:15:42Z","pushed_at":"2018-02-22T11:49:48Z","git_url":"git://github.com/fcasal/radare2.git","ssh_url":"git@github.com:fcasal/radare2.git","clone_url":"https://github.com/fcasal/radare2.git","svn_url":"https://github.com/fcasal/radare2","homepage":"http://www.radare.org/","size":80914,"stargazers_count":0,"watchers_count":0,"language":"C","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"radare:master","ref":"master","sha":"22bd9e9fb5690044554c93d98ab1fef46c67a434","user":{"login":"radare","id":917142,"avatar_url":"https://avatars1.githubusercontent.com/u/917142?v=4","gravatar_id":"","url":"https://api.github.com/users/radare","html_url":"https://github.com/radare","followers_url":"https://api.github.com/users/radare/followers","following_url":"https://api.github.com/users/radare/following{/other_user}","gists_url":"https://api.github.com/users/radare/gists{/gist_id}","starred_url":"https://api.github.com/users/radare/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/radare/subscriptions","organizations_url":"https://api.github.com/users/radare/orgs","repos_url":"https://api.github.com/users/radare/repos","events_url":"https://api.github.com/users/radare/events{/privacy}","received_events_url":"https://api.github.com/users/radare/received_events","type":"User","site_admin":false},"repo":{"id":4869294,"name":"radare2","full_name":"radare/radare2","owner":{"login":"radare","id":917142,"avatar_url":"https://avatars1.githubusercontent.com/u/917142?v=4","gravatar_id":"","url":"https://api.github.com/users/radare","html_url":"https://github.com/radare","followers_url":"https://api.github.com/users/radare/followers","following_url":"https://api.github.com/users/radare/following{/other_user}","gists_url":"https://api.github.com/users/radare/gists{/gist_id}","starred_url":"https://api.github.com/users/radare/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/radare/subscriptions","organizations_url":"https://api.github.com/users/radare/orgs","repos_url":"https://api.github.com/users/radare/repos","events_url":"https://api.github.com/users/radare/events{/privacy}","received_events_url":"https://api.github.com/users/radare/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/radare/radare2","description":"unix-like reverse engineering framework and commandline tools","fork":false,"url":"https://api.github.com/repos/radare/radare2","forks_url":"https://api.github.com/repos/radare/radare2/forks","keys_url":"https://api.github.com/repos/radare/radare2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/radare/radare2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/radare/radare2/teams","hooks_url":"https://api.github.com/repos/radare/radare2/hooks","issue_events_url":"https://api.github.com/repos/radare/radare2/issues/events{/number}","events_url":"https://api.github.com/repos/radare/radare2/events","assignees_url":"https://api.github.com/repos/radare/radare2/assignees{/user}","branches_url":"https://api.github.com/repos/radare/radare2/branches{/branch}","tags_url":"https://api.github.com/repos/radare/radare2/tags","blobs_url":"https://api.github.com/repos/radare/radare2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/radare/radare2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/radare/radare2/git/refs{/sha}","trees_url":"https://api.github.com/repos/radare/radare2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/radare/radare2/statuses/{sha}","languages_url":"https://api.github.com/repos/radare/radare2/languages","stargazers_url":"https://api.github.com/repos/radare/radare2/stargazers","contributors_url":"https://api.github.com/repos/radare/radare2/contributors","subscribers_url":"https://api.github.com/repos/radare/radare2/subscribers","subscription_url":"https://api.github.com/repos/radare/radare2/subscription","commits_url":"https://api.github.com/repos/radare/radare2/commits{/sha}","git_commits_url":"https://api.github.com/repos/radare/radare2/git/commits{/sha}","comments_url":"https://api.github.com/repos/radare/radare2/comments{/number}","issue_comment_url":"https://api.github.com/repos/radare/radare2/issues/comments{/number}","contents_url":"https://api.github.com/repos/radare/radare2/contents/{+path}","compare_url":"https://api.github.com/repos/radare/radare2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/radare/radare2/merges","archive_url":"https://api.github.com/repos/radare/radare2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/radare/radare2/downloads","issues_url":"https://api.github.com/repos/radare/radare2/issues{/number}","pulls_url":"https://api.github.com/repos/radare/radare2/pulls{/number}","milestones_url":"https://api.github.com/repos/radare/radare2/milestones{/number}","notifications_url":"https://api.github.com/repos/radare/radare2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/radare/radare2/labels{/name}","releases_url":"https://api.github.com/repos/radare/radare2/releases{/id}","deployments_url":"https://api.github.com/repos/radare/radare2/deployments","created_at":"2012-07-03T07:42:26Z","updated_at":"2018-02-22T09:45:02Z","pushed_at":"2018-02-22T11:45:58Z","git_url":"git://github.com/radare/radare2.git","ssh_url":"git@github.com:radare/radare2.git","clone_url":"https://github.com/radare/radare2.git","svn_url":"https://github.com/radare/radare2","homepage":"http://www.radare.org/","size":80935,"stargazers_count":6730,"watchers_count":6730,"language":"C","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1366,"mirror_url":null,"archived":false,"open_issues_count":824,"license":{"key":"lgpl-3.0","name":"GNU Lesser General Public License v3.0","spdx_id":"LGPL-3.0","url":"https://api.github.com/licenses/lgpl-3.0"},"forks":1366,"open_issues":824,"watchers":6730,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/radare/radare2/pulls/9461"},"html":{"href":"https://github.com/radare/radare2/pull/9461"},"issue":{"href":"https://api.github.com/repos/radare/radare2/issues/9461"},"comments":{"href":"https://api.github.com/repos/radare/radare2/issues/9461/comments"},"review_comments":{"href":"https://api.github.com/repos/radare/radare2/pulls/9461/comments"},"review_comment":{"href":"https://api.github.com/repos/radare/radare2/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/radare/radare2/pulls/9461/commits"},"statuses":{"href":"https://api.github.com/repos/radare/radare2/statuses/48c21df94a52c32752a579dfe26b4e05cccce838"}},"author_association":"CONTRIBUTOR","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":true,"commits":1,"additions":4,"deletions":0,"changed_files":1}}
{"actor":{"display_login":"fcasal"}}