{"action":"created","comment":{"url":"https://api.github.com/repos/php-mime-mail-parser/php-mime-mail-parser/pulls/comments/47207933","id":47207933,"diff_hunk":"@@ -510,6 +510,9 @@ private function getPartBodyFromFile(&$part)\n     {\n         $start = $part['starting-pos-body'];\n         $end = $part['ending-pos-body'];\n+        if ($end-$start <= 0) {\n+\t\t\treturn '';","path":"src/Parser.php","position":5,"original_position":5,"commit_id":"00c4a2ee5eb99e44b27c6845e9bd1a8853296e0b","original_commit_id":"00c4a2ee5eb99e44b27c6845e9bd1a8853296e0b","user":{"login":"Nitpick-CI","id":12626182,"avatar_url":"https://avatars.githubusercontent.com/u/12626182?v=3","gravatar_id":"","url":"https://api.github.com/users/Nitpick-CI","html_url":"https://github.com/Nitpick-CI","followers_url":"https://api.github.com/users/Nitpick-CI/followers","following_url":"https://api.github.com/users/Nitpick-CI/following{/other_user}","gists_url":"https://api.github.com/users/Nitpick-CI/gists{/gist_id}","starred_url":"https://api.github.com/users/Nitpick-CI/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Nitpick-CI/subscriptions","organizations_url":"https://api.github.com/users/Nitpick-CI/orgs","repos_url":"https://api.github.com/users/Nitpick-CI/repos","events_url":"https://api.github.com/users/Nitpick-CI/events{/privacy}","received_events_url":"https://api.github.com/users/Nitpick-CI/received_events","type":"User","site_admin":false},"body":"Spaces must be used to indent lines; tabs are not allowed","created_at":"2015-12-10T10:06:24Z","updated_at":"2015-12-10T10:06:24Z","html_url":"https://github.com/php-mime-mail-parser/php-mime-mail-parser/pull/72#discussion_r47207933","pull_request_url":"https://api.github.com/repos/php-mime-mail-parser/php-mime-mail-parser/pulls/72","_links":{"self":{"href":"https://api.github.com/repos/php-mime-mail-parser/php-mime-mail-parser/pulls/comments/47207933"},"html":{"href":"https://github.com/php-mime-mail-parser/php-mime-mail-parser/pull/72#discussion_r47207933"},"pull_request":{"href":"https://api.github.com/repos/php-mime-mail-parser/php-mime-mail-parser/pulls/72"}}},"pull_request":{"url":"https://api.github.com/repos/php-mime-mail-parser/php-mime-mail-parser/pulls/72","id":53147521,"html_url":"https://github.com/php-mime-mail-parser/php-mime-mail-parser/pull/72","diff_url":"https://github.com/php-mime-mail-parser/php-mime-mail-parser/pull/72.diff","patch_url":"https://github.com/php-mime-mail-parser/php-mime-mail-parser/pull/72.patch","issue_url":"https://api.github.com/repos/php-mime-mail-parser/php-mime-mail-parser/issues/72","number":72,"state":"open","locked":false,"title":"Check before attempting to perform a zero-length fread","user":{"login":"matcho","id":2674752,"avatar_url":"https://avatars.githubusercontent.com/u/2674752?v=3","gravatar_id":"","url":"https://api.github.com/users/matcho","html_url":"https://github.com/matcho","followers_url":"https://api.github.com/users/matcho/followers","following_url":"https://api.github.com/users/matcho/following{/other_user}","gists_url":"https://api.github.com/users/matcho/gists{/gist_id}","starred_url":"https://api.github.com/users/matcho/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matcho/subscriptions","organizations_url":"https://api.github.com/users/matcho/orgs","repos_url":"https://api.github.com/users/matcho/repos","events_url":"https://api.github.com/users/matcho/events{/privacy}","received_events_url":"https://api.github.com/users/matcho/received_events","type":"User","site_admin":false},"body":"Avoids a Warning thrown by fread() in case of zero-length message body","created_at":"2015-12-09T17:02:25Z","updated_at":"2015-12-10T10:06:24Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3a4cf7411332f096d6e83c962677517f7ca81618","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/php-mime-mail-parser/php-mime-mail-parser/pulls/72/commits","review_comments_url":"https://api.github.com/repos/php-mime-mail-parser/php-mime-mail-parser/pulls/72/comments","review_comment_url":"https://api.github.com/repos/php-mime-mail-parser/php-mime-mail-parser/pulls/comments{/number}","comments_url":"https://api.github.com/repos/php-mime-mail-parser/php-mime-mail-parser/issues/72/comments","statuses_url":"https://api.github.com/repos/php-mime-mail-parser/php-mime-mail-parser/statuses/00c4a2ee5eb99e44b27c6845e9bd1a8853296e0b","head":{"label":"telabotanica:fix/zero-length-fread","ref":"fix/zero-length-fread","sha":"00c4a2ee5eb99e44b27c6845e9bd1a8853296e0b","user":{"login":"telabotanica","id":3706326,"avatar_url":"https://avatars.githubusercontent.com/u/3706326?v=3","gravatar_id":"","url":"https://api.github.com/users/telabotanica","html_url":"https://github.com/telabotanica","followers_url":"https://api.github.com/users/telabotanica/followers","following_url":"https://api.github.com/users/telabotanica/following{/other_user}","gists_url":"https://api.github.com/users/telabotanica/gists{/gist_id}","starred_url":"https://api.github.com/users/telabotanica/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/telabotanica/subscriptions","organizations_url":"https://api.github.com/users/telabotanica/orgs","repos_url":"https://api.github.com/users/telabotanica/repos","events_url":"https://api.github.com/users/telabotanica/events{/privacy}","received_events_url":"https://api.github.com/users/telabotanica/received_events","type":"Organization","site_admin":false},"repo":{"id":47705034,"name":"php-mime-mail-parser","full_name":"telabotanica/php-mime-mail-parser","owner":{"login":"telabotanica","id":3706326,"avatar_url":"https://avatars.githubusercontent.com/u/3706326?v=3","gravatar_id":"","url":"https://api.github.com/users/telabotanica","html_url":"https://github.com/telabotanica","followers_url":"https://api.github.com/users/telabotanica/followers","following_url":"https://api.github.com/users/telabotanica/following{/other_user}","gists_url":"https://api.github.com/users/telabotanica/gists{/gist_id}","starred_url":"https://api.github.com/users/telabotanica/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/telabotanica/subscriptions","organizations_url":"https://api.github.com/users/telabotanica/orgs","repos_url":"https://api.github.com/users/telabotanica/repos","events_url":"https://api.github.com/users/telabotanica/events{/privacy}","received_events_url":"https://api.github.com/users/telabotanica/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/telabotanica/php-mime-mail-parser","description":"Fully Tested Mailparse Extension Wrapper for PHP 5.4+","fork":true,"url":"https://api.github.com/repos/telabotanica/php-mime-mail-parser","forks_url":"https://api.github.com/repos/telabotanica/php-mime-mail-parser/forks","keys_url":"https://api.github.com/repos/telabotanica/php-mime-mail-parser/keys{/key_id}","collaborators_url":"https://api.github.com/repos/telabotanica/php-mime-mail-parser/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/telabotanica/php-mime-mail-parser/teams","hooks_url":"https://api.github.com/repos/telabotanica/php-mime-mail-parser/hooks","issue_events_url":"https://api.github.com/repos/telabotanica/php-mime-mail-parser/issues/events{/number}","events_url":"https://api.github.com/repos/telabotanica/php-mime-mail-parser/events","assignees_url":"https://api.github.com/repos/telabotanica/php-mime-mail-parser/assignees{/user}","branches_url":"https://api.github.com/repos/telabotanica/php-mime-mail-parser/branches{/branch}","tags_url":"https://api.github.com/repos/telabotanica/php-mime-mail-parser/tags","blobs_url":"https://api.github.com/repos/telabotanica/php-mime-mail-parser/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/telabotanica/php-mime-mail-parser/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/telabotanica/php-mime-mail-parser/git/refs{/sha}","trees_url":"https://api.github.com/repos/telabotanica/php-mime-mail-parser/git/trees{/sha}","statuses_url":"https://api.github.com/repos/telabotanica/php-mime-mail-parser/statuses/{sha}","languages_url":"https://api.github.com/repos/telabotanica/php-mime-mail-parser/languages","stargazers_url":"https://api.github.com/repos/telabotanica/php-mime-mail-parser/stargazers","contributors_url":"https://api.github.com/repos/telabotanica/php-mime-mail-parser/contributors","subscribers_url":"https://api.github.com/repos/telabotanica/php-mime-mail-parser/subscribers","subscription_url":"https://api.github.com/repos/telabotanica/php-mime-mail-parser/subscription","commits_url":"https://api.github.com/repos/telabotanica/php-mime-mail-parser/commits{/sha}","git_commits_url":"https://api.github.com/repos/telabotanica/php-mime-mail-parser/git/commits{/sha}","comments_url":"https://api.github.com/repos/telabotanica/php-mime-mail-parser/comments{/number}","issue_comment_url":"https://api.github.com/repos/telabotanica/php-mime-mail-parser/issues/comments{/number}","contents_url":"https://api.github.com/repos/telabotanica/php-mime-mail-parser/contents/{+path}","compare_url":"https://api.github.com/repos/telabotanica/php-mime-mail-parser/compare/{base}...{head}","merges_url":"https://api.github.com/repos/telabotanica/php-mime-mail-parser/merges","archive_url":"https://api.github.com/repos/telabotanica/php-mime-mail-parser/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/telabotanica/php-mime-mail-parser/downloads","issues_url":"https://api.github.com/repos/telabotanica/php-mime-mail-parser/issues{/number}","pulls_url":"https://api.github.com/repos/telabotanica/php-mime-mail-parser/pulls{/number}","milestones_url":"https://api.github.com/repos/telabotanica/php-mime-mail-parser/milestones{/number}","notifications_url":"https://api.github.com/repos/telabotanica/php-mime-mail-parser/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/telabotanica/php-mime-mail-parser/labels{/name}","releases_url":"https://api.github.com/repos/telabotanica/php-mime-mail-parser/releases{/id}","created_at":"2015-12-09T16:47:26Z","updated_at":"2015-12-09T16:47:27Z","pushed_at":"2015-12-10T10:06:19Z","git_url":"git://github.com/telabotanica/php-mime-mail-parser.git","ssh_url":"git@github.com:telabotanica/php-mime-mail-parser.git","clone_url":"https://github.com/telabotanica/php-mime-mail-parser.git","svn_url":"https://github.com/telabotanica/php-mime-mail-parser","homepage":"","size":536,"stargazers_count":0,"watchers_count":0,"language":"PHP","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":"php-mime-mail-parser:master","ref":"master","sha":"92b5fea6d0a2c23611debe78767a0fc41503bf9e","user":{"login":"php-mime-mail-parser","id":11502569,"avatar_url":"https://avatars.githubusercontent.com/u/11502569?v=3","gravatar_id":"","url":"https://api.github.com/users/php-mime-mail-parser","html_url":"https://github.com/php-mime-mail-parser","followers_url":"https://api.github.com/users/php-mime-mail-parser/followers","following_url":"https://api.github.com/users/php-mime-mail-parser/following{/other_user}","gists_url":"https://api.github.com/users/php-mime-mail-parser/gists{/gist_id}","starred_url":"https://api.github.com/users/php-mime-mail-parser/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/php-mime-mail-parser/subscriptions","organizations_url":"https://api.github.com/users/php-mime-mail-parser/orgs","repos_url":"https://api.github.com/users/php-mime-mail-parser/repos","events_url":"https://api.github.com/users/php-mime-mail-parser/events{/privacy}","received_events_url":"https://api.github.com/users/php-mime-mail-parser/received_events","type":"Organization","site_admin":false},"repo":{"id":10585653,"name":"php-mime-mail-parser","full_name":"php-mime-mail-parser/php-mime-mail-parser","owner":{"login":"php-mime-mail-parser","id":11502569,"avatar_url":"https://avatars.githubusercontent.com/u/11502569?v=3","gravatar_id":"","url":"https://api.github.com/users/php-mime-mail-parser","html_url":"https://github.com/php-mime-mail-parser","followers_url":"https://api.github.com/users/php-mime-mail-parser/followers","following_url":"https://api.github.com/users/php-mime-mail-parser/following{/other_user}","gists_url":"https://api.github.com/users/php-mime-mail-parser/gists{/gist_id}","starred_url":"https://api.github.com/users/php-mime-mail-parser/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/php-mime-mail-parser/subscriptions","organizations_url":"https://api.github.com/users/php-mime-mail-parser/orgs","repos_url":"https://api.github.com/users/php-mime-mail-parser/repos","events_url":"https://api.github.com/users/php-mime-mail-parser/events{/privacy}","received_events_url":"https://api.github.com/users/php-mime-mail-parser/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/php-mime-mail-parser/php-mime-mail-parser","description":"Fully Tested Mailparse Extension Wrapper for PHP 5.4+","fork":false,"url":"https://api.github.com/repos/php-mime-mail-parser/php-mime-mail-parser","forks_url":"https://api.github.com/repos/php-mime-mail-parser/php-mime-mail-parser/forks","keys_url":"https://api.github.com/repos/php-mime-mail-parser/php-mime-mail-parser/keys{/key_id}","collaborators_url":"https://api.github.com/repos/php-mime-mail-parser/php-mime-mail-parser/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/php-mime-mail-parser/php-mime-mail-parser/teams","hooks_url":"https://api.github.com/repos/php-mime-mail-parser/php-mime-mail-parser/hooks","issue_events_url":"https://api.github.com/repos/php-mime-mail-parser/php-mime-mail-parser/issues/events{/number}","events_url":"https://api.github.com/repos/php-mime-mail-parser/php-mime-mail-parser/events","assignees_url":"https://api.github.com/repos/php-mime-mail-parser/php-mime-mail-parser/assignees{/user}","branches_url":"https://api.github.com/repos/php-mime-mail-parser/php-mime-mail-parser/branches{/branch}","tags_url":"https://api.github.com/repos/php-mime-mail-parser/php-mime-mail-parser/tags","blobs_url":"https://api.github.com/repos/php-mime-mail-parser/php-mime-mail-parser/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/php-mime-mail-parser/php-mime-mail-parser/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/php-mime-mail-parser/php-mime-mail-parser/git/refs{/sha}","trees_url":"https://api.github.com/repos/php-mime-mail-parser/php-mime-mail-parser/git/trees{/sha}","statuses_url":"https://api.github.com/repos/php-mime-mail-parser/php-mime-mail-parser/statuses/{sha}","languages_url":"https://api.github.com/repos/php-mime-mail-parser/php-mime-mail-parser/languages","stargazers_url":"https://api.github.com/repos/php-mime-mail-parser/php-mime-mail-parser/stargazers","contributors_url":"https://api.github.com/repos/php-mime-mail-parser/php-mime-mail-parser/contributors","subscribers_url":"https://api.github.com/repos/php-mime-mail-parser/php-mime-mail-parser/subscribers","subscription_url":"https://api.github.com/repos/php-mime-mail-parser/php-mime-mail-parser/subscription","commits_url":"https://api.github.com/repos/php-mime-mail-parser/php-mime-mail-parser/commits{/sha}","git_commits_url":"https://api.github.com/repos/php-mime-mail-parser/php-mime-mail-parser/git/commits{/sha}","comments_url":"https://api.github.com/repos/php-mime-mail-parser/php-mime-mail-parser/comments{/number}","issue_comment_url":"https://api.github.com/repos/php-mime-mail-parser/php-mime-mail-parser/issues/comments{/number}","contents_url":"https://api.github.com/repos/php-mime-mail-parser/php-mime-mail-parser/contents/{+path}","compare_url":"https://api.github.com/repos/php-mime-mail-parser/php-mime-mail-parser/compare/{base}...{head}","merges_url":"https://api.github.com/repos/php-mime-mail-parser/php-mime-mail-parser/merges","archive_url":"https://api.github.com/repos/php-mime-mail-parser/php-mime-mail-parser/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/php-mime-mail-parser/php-mime-mail-parser/downloads","issues_url":"https://api.github.com/repos/php-mime-mail-parser/php-mime-mail-parser/issues{/number}","pulls_url":"https://api.github.com/repos/php-mime-mail-parser/php-mime-mail-parser/pulls{/number}","milestones_url":"https://api.github.com/repos/php-mime-mail-parser/php-mime-mail-parser/milestones{/number}","notifications_url":"https://api.github.com/repos/php-mime-mail-parser/php-mime-mail-parser/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/php-mime-mail-parser/php-mime-mail-parser/labels{/name}","releases_url":"https://api.github.com/repos/php-mime-mail-parser/php-mime-mail-parser/releases{/id}","created_at":"2013-06-09T16:18:11Z","updated_at":"2015-12-04T22:37:56Z","pushed_at":"2015-12-10T10:06:19Z","git_url":"git://github.com/php-mime-mail-parser/php-mime-mail-parser.git","ssh_url":"git@github.com:php-mime-mail-parser/php-mime-mail-parser.git","clone_url":"https://github.com/php-mime-mail-parser/php-mime-mail-parser.git","svn_url":"https://github.com/php-mime-mail-parser/php-mime-mail-parser","homepage":"","size":1215,"stargazers_count":118,"watchers_count":118,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":49,"mirror_url":null,"open_issues_count":10,"forks":49,"open_issues":10,"watchers":118,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/php-mime-mail-parser/php-mime-mail-parser/pulls/72"},"html":{"href":"https://github.com/php-mime-mail-parser/php-mime-mail-parser/pull/72"},"issue":{"href":"https://api.github.com/repos/php-mime-mail-parser/php-mime-mail-parser/issues/72"},"comments":{"href":"https://api.github.com/repos/php-mime-mail-parser/php-mime-mail-parser/issues/72/comments"},"review_comments":{"href":"https://api.github.com/repos/php-mime-mail-parser/php-mime-mail-parser/pulls/72/comments"},"review_comment":{"href":"https://api.github.com/repos/php-mime-mail-parser/php-mime-mail-parser/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/php-mime-mail-parser/php-mime-mail-parser/pulls/72/commits"},"statuses":{"href":"https://api.github.com/repos/php-mime-mail-parser/php-mime-mail-parser/statuses/00c4a2ee5eb99e44b27c6845e9bd1a8853296e0b"}}}}