{"action":"created","comment":{"url":"https://api.github.com/repos/brndnmtthws/conky/pulls/comments/243293957","pull_request_review_id":187024622,"id":243293957,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDI0MzI5Mzk1Nw==","diff_hunk":"@@ -1175,7 +1177,7 @@ static int open_sysfs_sensor(const char *dir, const char *dev, const char *type,\n   fd = open(path, O_RDONLY);\n   if (fd < 0) {\n     /* if it fails, strip the /device from dev and attempt again */\n-    buf[strlen(buf) - 7] = 0;\n+    buf[strnlen(buf, 255) - 7] = 0;","path":"src/linux.cc","position":45,"original_position":45,"commit_id":"0a21729a4f59b130524b79baaefee874d39466a2","original_commit_id":"0a21729a4f59b130524b79baaefee874d39466a2","user":{"login":"conky-ci","id":39227759,"node_id":"MDQ6VXNlcjM5MjI3NzU5","avatar_url":"https://avatars3.githubusercontent.com/u/39227759?v=4","gravatar_id":"","url":"https://api.github.com/users/conky-ci","html_url":"https://github.com/conky-ci","followers_url":"https://api.github.com/users/conky-ci/followers","following_url":"https://api.github.com/users/conky-ci/following{/other_user}","gists_url":"https://api.github.com/users/conky-ci/gists{/gist_id}","starred_url":"https://api.github.com/users/conky-ci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/conky-ci/subscriptions","organizations_url":"https://api.github.com/users/conky-ci/orgs","repos_url":"https://api.github.com/users/conky-ci/repos","events_url":"https://api.github.com/users/conky-ci/events{/privacy}","received_events_url":"https://api.github.com/users/conky-ci/received_events","type":"User","site_admin":false},"body":"![Bug](https://sonarsource.github.io/sonar-github/bug.png 'Bug') Bug: Out of bound memory access (accessed memory precedes memory block) ([cpp:S3519](https://sonarcloud.io/organizations/brndnmtthws-github/rules#rule_key=cpp%3AS3519))\n\n[See it in SonarCloud](https://sonarcloud.io/project/issues?id=conky&pullRequest=713&issues=AWfMDl6V_E3vci_swQOI&open=AWfMDl6V_E3vci_swQOI)\n\n[ISSUE_KEY]: AWfMDl6V_E3vci_swQOI","created_at":"2018-12-20T14:39:21Z","updated_at":"2018-12-20T14:39:22Z","html_url":"https://github.com/brndnmtthws/conky/pull/713#discussion_r243293957","pull_request_url":"https://api.github.com/repos/brndnmtthws/conky/pulls/713","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/brndnmtthws/conky/pulls/comments/243293957"},"html":{"href":"https://github.com/brndnmtthws/conky/pull/713#discussion_r243293957"},"pull_request":{"href":"https://api.github.com/repos/brndnmtthws/conky/pulls/713"}}},"pull_request":{"url":"https://api.github.com/repos/brndnmtthws/conky/pulls/713","id":240030548,"node_id":"MDExOlB1bGxSZXF1ZXN0MjQwMDMwNTQ4","html_url":"https://github.com/brndnmtthws/conky/pull/713","diff_url":"https://github.com/brndnmtthws/conky/pull/713.diff","patch_url":"https://github.com/brndnmtthws/conky/pull/713.patch","issue_url":"https://api.github.com/repos/brndnmtthws/conky/issues/713","number":713,"state":"open","locked":false,"title":"Get rid of silly `if (not ...` exp.","user":{"login":"brndnmtthws","id":3129093,"node_id":"MDQ6VXNlcjMxMjkwOTM=","avatar_url":"https://avatars1.githubusercontent.com/u/3129093?v=4","gravatar_id":"","url":"https://api.github.com/users/brndnmtthws","html_url":"https://github.com/brndnmtthws","followers_url":"https://api.github.com/users/brndnmtthws/followers","following_url":"https://api.github.com/users/brndnmtthws/following{/other_user}","gists_url":"https://api.github.com/users/brndnmtthws/gists{/gist_id}","starred_url":"https://api.github.com/users/brndnmtthws/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brndnmtthws/subscriptions","organizations_url":"https://api.github.com/users/brndnmtthws/orgs","repos_url":"https://api.github.com/users/brndnmtthws/repos","events_url":"https://api.github.com/users/brndnmtthws/events{/privacy}","received_events_url":"https://api.github.com/users/brndnmtthws/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-12-20T02:05:04Z","updated_at":"2018-12-20T14:39:22Z","closed_at":null,"merged_at":null,"merge_commit_sha":"86d4f30643e8996ea7316286a01d022aca1be4b4","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/brndnmtthws/conky/pulls/713/commits","review_comments_url":"https://api.github.com/repos/brndnmtthws/conky/pulls/713/comments","review_comment_url":"https://api.github.com/repos/brndnmtthws/conky/pulls/comments{/number}","comments_url":"https://api.github.com/repos/brndnmtthws/conky/issues/713/comments","statuses_url":"https://api.github.com/repos/brndnmtthws/conky/statuses/0a21729a4f59b130524b79baaefee874d39466a2","head":{"label":"brndnmtthws:get-rid-of-nots","ref":"get-rid-of-nots","sha":"0a21729a4f59b130524b79baaefee874d39466a2","user":{"login":"brndnmtthws","id":3129093,"node_id":"MDQ6VXNlcjMxMjkwOTM=","avatar_url":"https://avatars1.githubusercontent.com/u/3129093?v=4","gravatar_id":"","url":"https://api.github.com/users/brndnmtthws","html_url":"https://github.com/brndnmtthws","followers_url":"https://api.github.com/users/brndnmtthws/followers","following_url":"https://api.github.com/users/brndnmtthws/following{/other_user}","gists_url":"https://api.github.com/users/brndnmtthws/gists{/gist_id}","starred_url":"https://api.github.com/users/brndnmtthws/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brndnmtthws/subscriptions","organizations_url":"https://api.github.com/users/brndnmtthws/orgs","repos_url":"https://api.github.com/users/brndnmtthws/repos","events_url":"https://api.github.com/users/brndnmtthws/events{/privacy}","received_events_url":"https://api.github.com/users/brndnmtthws/received_events","type":"User","site_admin":false},"repo":{"id":7331227,"node_id":"MDEwOlJlcG9zaXRvcnk3MzMxMjI3","name":"conky","full_name":"brndnmtthws/conky","private":false,"owner":{"login":"brndnmtthws","id":3129093,"node_id":"MDQ6VXNlcjMxMjkwOTM=","avatar_url":"https://avatars1.githubusercontent.com/u/3129093?v=4","gravatar_id":"","url":"https://api.github.com/users/brndnmtthws","html_url":"https://github.com/brndnmtthws","followers_url":"https://api.github.com/users/brndnmtthws/followers","following_url":"https://api.github.com/users/brndnmtthws/following{/other_user}","gists_url":"https://api.github.com/users/brndnmtthws/gists{/gist_id}","starred_url":"https://api.github.com/users/brndnmtthws/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brndnmtthws/subscriptions","organizations_url":"https://api.github.com/users/brndnmtthws/orgs","repos_url":"https://api.github.com/users/brndnmtthws/repos","events_url":"https://api.github.com/users/brndnmtthws/events{/privacy}","received_events_url":"https://api.github.com/users/brndnmtthws/received_events","type":"User","site_admin":false},"html_url":"https://github.com/brndnmtthws/conky","description":"Light-weight system monitor for X.","fork":false,"url":"https://api.github.com/repos/brndnmtthws/conky","forks_url":"https://api.github.com/repos/brndnmtthws/conky/forks","keys_url":"https://api.github.com/repos/brndnmtthws/conky/keys{/key_id}","collaborators_url":"https://api.github.com/repos/brndnmtthws/conky/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/brndnmtthws/conky/teams","hooks_url":"https://api.github.com/repos/brndnmtthws/conky/hooks","issue_events_url":"https://api.github.com/repos/brndnmtthws/conky/issues/events{/number}","events_url":"https://api.github.com/repos/brndnmtthws/conky/events","assignees_url":"https://api.github.com/repos/brndnmtthws/conky/assignees{/user}","branches_url":"https://api.github.com/repos/brndnmtthws/conky/branches{/branch}","tags_url":"https://api.github.com/repos/brndnmtthws/conky/tags","blobs_url":"https://api.github.com/repos/brndnmtthws/conky/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/brndnmtthws/conky/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/brndnmtthws/conky/git/refs{/sha}","trees_url":"https://api.github.com/repos/brndnmtthws/conky/git/trees{/sha}","statuses_url":"https://api.github.com/repos/brndnmtthws/conky/statuses/{sha}","languages_url":"https://api.github.com/repos/brndnmtthws/conky/languages","stargazers_url":"https://api.github.com/repos/brndnmtthws/conky/stargazers","contributors_url":"https://api.github.com/repos/brndnmtthws/conky/contributors","subscribers_url":"https://api.github.com/repos/brndnmtthws/conky/subscribers","subscription_url":"https://api.github.com/repos/brndnmtthws/conky/subscription","commits_url":"https://api.github.com/repos/brndnmtthws/conky/commits{/sha}","git_commits_url":"https://api.github.com/repos/brndnmtthws/conky/git/commits{/sha}","comments_url":"https://api.github.com/repos/brndnmtthws/conky/comments{/number}","issue_comment_url":"https://api.github.com/repos/brndnmtthws/conky/issues/comments{/number}","contents_url":"https://api.github.com/repos/brndnmtthws/conky/contents/{+path}","compare_url":"https://api.github.com/repos/brndnmtthws/conky/compare/{base}...{head}","merges_url":"https://api.github.com/repos/brndnmtthws/conky/merges","archive_url":"https://api.github.com/repos/brndnmtthws/conky/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/brndnmtthws/conky/downloads","issues_url":"https://api.github.com/repos/brndnmtthws/conky/issues{/number}","pulls_url":"https://api.github.com/repos/brndnmtthws/conky/pulls{/number}","milestones_url":"https://api.github.com/repos/brndnmtthws/conky/milestones{/number}","notifications_url":"https://api.github.com/repos/brndnmtthws/conky/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/brndnmtthws/conky/labels{/name}","releases_url":"https://api.github.com/repos/brndnmtthws/conky/releases{/id}","deployments_url":"https://api.github.com/repos/brndnmtthws/conky/deployments","created_at":"2012-12-26T19:50:17Z","updated_at":"2018-12-20T12:30:39Z","pushed_at":"2018-12-20T14:24:19Z","git_url":"git://github.com/brndnmtthws/conky.git","ssh_url":"git@github.com:brndnmtthws/conky.git","clone_url":"https://github.com/brndnmtthws/conky.git","svn_url":"https://github.com/brndnmtthws/conky","homepage":null,"size":16255,"stargazers_count":2614,"watchers_count":2614,"language":"C++","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":338,"mirror_url":null,"archived":false,"open_issues_count":74,"license":{"key":"other","name":"Other","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":338,"open_issues":74,"watchers":2614,"default_branch":"master"}},"base":{"label":"brndnmtthws:master","ref":"master","sha":"fef29a5f8e6f3c84792c24a6c752f95ceb780e12","user":{"login":"brndnmtthws","id":3129093,"node_id":"MDQ6VXNlcjMxMjkwOTM=","avatar_url":"https://avatars1.githubusercontent.com/u/3129093?v=4","gravatar_id":"","url":"https://api.github.com/users/brndnmtthws","html_url":"https://github.com/brndnmtthws","followers_url":"https://api.github.com/users/brndnmtthws/followers","following_url":"https://api.github.com/users/brndnmtthws/following{/other_user}","gists_url":"https://api.github.com/users/brndnmtthws/gists{/gist_id}","starred_url":"https://api.github.com/users/brndnmtthws/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brndnmtthws/subscriptions","organizations_url":"https://api.github.com/users/brndnmtthws/orgs","repos_url":"https://api.github.com/users/brndnmtthws/repos","events_url":"https://api.github.com/users/brndnmtthws/events{/privacy}","received_events_url":"https://api.github.com/users/brndnmtthws/received_events","type":"User","site_admin":false},"repo":{"id":7331227,"node_id":"MDEwOlJlcG9zaXRvcnk3MzMxMjI3","name":"conky","full_name":"brndnmtthws/conky","private":false,"owner":{"login":"brndnmtthws","id":3129093,"node_id":"MDQ6VXNlcjMxMjkwOTM=","avatar_url":"https://avatars1.githubusercontent.com/u/3129093?v=4","gravatar_id":"","url":"https://api.github.com/users/brndnmtthws","html_url":"https://github.com/brndnmtthws","followers_url":"https://api.github.com/users/brndnmtthws/followers","following_url":"https://api.github.com/users/brndnmtthws/following{/other_user}","gists_url":"https://api.github.com/users/brndnmtthws/gists{/gist_id}","starred_url":"https://api.github.com/users/brndnmtthws/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brndnmtthws/subscriptions","organizations_url":"https://api.github.com/users/brndnmtthws/orgs","repos_url":"https://api.github.com/users/brndnmtthws/repos","events_url":"https://api.github.com/users/brndnmtthws/events{/privacy}","received_events_url":"https://api.github.com/users/brndnmtthws/received_events","type":"User","site_admin":false},"html_url":"https://github.com/brndnmtthws/conky","description":"Light-weight system monitor for X.","fork":false,"url":"https://api.github.com/repos/brndnmtthws/conky","forks_url":"https://api.github.com/repos/brndnmtthws/conky/forks","keys_url":"https://api.github.com/repos/brndnmtthws/conky/keys{/key_id}","collaborators_url":"https://api.github.com/repos/brndnmtthws/conky/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/brndnmtthws/conky/teams","hooks_url":"https://api.github.com/repos/brndnmtthws/conky/hooks","issue_events_url":"https://api.github.com/repos/brndnmtthws/conky/issues/events{/number}","events_url":"https://api.github.com/repos/brndnmtthws/conky/events","assignees_url":"https://api.github.com/repos/brndnmtthws/conky/assignees{/user}","branches_url":"https://api.github.com/repos/brndnmtthws/conky/branches{/branch}","tags_url":"https://api.github.com/repos/brndnmtthws/conky/tags","blobs_url":"https://api.github.com/repos/brndnmtthws/conky/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/brndnmtthws/conky/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/brndnmtthws/conky/git/refs{/sha}","trees_url":"https://api.github.com/repos/brndnmtthws/conky/git/trees{/sha}","statuses_url":"https://api.github.com/repos/brndnmtthws/conky/statuses/{sha}","languages_url":"https://api.github.com/repos/brndnmtthws/conky/languages","stargazers_url":"https://api.github.com/repos/brndnmtthws/conky/stargazers","contributors_url":"https://api.github.com/repos/brndnmtthws/conky/contributors","subscribers_url":"https://api.github.com/repos/brndnmtthws/conky/subscribers","subscription_url":"https://api.github.com/repos/brndnmtthws/conky/subscription","commits_url":"https://api.github.com/repos/brndnmtthws/conky/commits{/sha}","git_commits_url":"https://api.github.com/repos/brndnmtthws/conky/git/commits{/sha}","comments_url":"https://api.github.com/repos/brndnmtthws/conky/comments{/number}","issue_comment_url":"https://api.github.com/repos/brndnmtthws/conky/issues/comments{/number}","contents_url":"https://api.github.com/repos/brndnmtthws/conky/contents/{+path}","compare_url":"https://api.github.com/repos/brndnmtthws/conky/compare/{base}...{head}","merges_url":"https://api.github.com/repos/brndnmtthws/conky/merges","archive_url":"https://api.github.com/repos/brndnmtthws/conky/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/brndnmtthws/conky/downloads","issues_url":"https://api.github.com/repos/brndnmtthws/conky/issues{/number}","pulls_url":"https://api.github.com/repos/brndnmtthws/conky/pulls{/number}","milestones_url":"https://api.github.com/repos/brndnmtthws/conky/milestones{/number}","notifications_url":"https://api.github.com/repos/brndnmtthws/conky/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/brndnmtthws/conky/labels{/name}","releases_url":"https://api.github.com/repos/brndnmtthws/conky/releases{/id}","deployments_url":"https://api.github.com/repos/brndnmtthws/conky/deployments","created_at":"2012-12-26T19:50:17Z","updated_at":"2018-12-20T12:30:39Z","pushed_at":"2018-12-20T14:24:19Z","git_url":"git://github.com/brndnmtthws/conky.git","ssh_url":"git@github.com:brndnmtthws/conky.git","clone_url":"https://github.com/brndnmtthws/conky.git","svn_url":"https://github.com/brndnmtthws/conky","homepage":null,"size":16255,"stargazers_count":2614,"watchers_count":2614,"language":"C++","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":338,"mirror_url":null,"archived":false,"open_issues_count":74,"license":{"key":"other","name":"Other","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":338,"open_issues":74,"watchers":2614,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/brndnmtthws/conky/pulls/713"},"html":{"href":"https://github.com/brndnmtthws/conky/pull/713"},"issue":{"href":"https://api.github.com/repos/brndnmtthws/conky/issues/713"},"comments":{"href":"https://api.github.com/repos/brndnmtthws/conky/issues/713/comments"},"review_comments":{"href":"https://api.github.com/repos/brndnmtthws/conky/pulls/713/comments"},"review_comment":{"href":"https://api.github.com/repos/brndnmtthws/conky/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/brndnmtthws/conky/pulls/713/commits"},"statuses":{"href":"https://api.github.com/repos/brndnmtthws/conky/statuses/0a21729a4f59b130524b79baaefee874d39466a2"}},"author_association":"OWNER"}}
{"actor":{"display_login":"conky-ci"}}