{"action":"created","issue":{"url":"https://api.github.com/repos/hyperium/hyper/issues/739","repository_url":"https://api.github.com/repos/hyperium/hyper","labels_url":"https://api.github.com/repos/hyperium/hyper/issues/739/labels{/name}","comments_url":"https://api.github.com/repos/hyperium/hyper/issues/739/comments","events_url":"https://api.github.com/repos/hyperium/hyper/issues/739/events","html_url":"https://github.com/hyperium/hyper/pull/739","id":137908554,"number":739,"title":" fix(buffer): prevent possible buffer overflow in `grow_zerofill`","user":{"login":"OlegTsyba","id":4011317,"avatar_url":"https://avatars.githubusercontent.com/u/4011317?v=3","gravatar_id":"","url":"https://api.github.com/users/OlegTsyba","html_url":"https://github.com/OlegTsyba","followers_url":"https://api.github.com/users/OlegTsyba/followers","following_url":"https://api.github.com/users/OlegTsyba/following{/other_user}","gists_url":"https://api.github.com/users/OlegTsyba/gists{/gist_id}","starred_url":"https://api.github.com/users/OlegTsyba/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OlegTsyba/subscriptions","organizations_url":"https://api.github.com/users/OlegTsyba/orgs","repos_url":"https://api.github.com/users/OlegTsyba/repos","events_url":"https://api.github.com/users/OlegTsyba/events{/privacy}","received_events_url":"https://api.github.com/users/OlegTsyba/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-03-02T15:41:08Z","updated_at":"2016-03-02T15:41:09Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/hyperium/hyper/pulls/739","html_url":"https://github.com/hyperium/hyper/pull/739","diff_url":"https://github.com/hyperium/hyper/pull/739.diff","patch_url":"https://github.com/hyperium/hyper/pull/739.patch"},"body":"in `maybe_reserve` we have such code\r\n\r\n    let new = self.buf.capacity() - self.buf.len();\r\n    unsafe { grow_zerofill(&mut self.buf, new) }\r\n\r\nthe original behavior of `grow_zerofill` in such case cause\r\nrewriting the memory behind the allocated vector."},"comment":{"url":"https://api.github.com/repos/hyperium/hyper/issues/comments/191292113","html_url":"https://github.com/hyperium/hyper/pull/739#issuecomment-191292113","issue_url":"https://api.github.com/repos/hyperium/hyper/issues/739","id":191292113,"user":{"login":"GitCop","id":7943652,"avatar_url":"https://avatars.githubusercontent.com/u/7943652?v=3","gravatar_id":"","url":"https://api.github.com/users/GitCop","html_url":"https://github.com/GitCop","followers_url":"https://api.github.com/users/GitCop/followers","following_url":"https://api.github.com/users/GitCop/following{/other_user}","gists_url":"https://api.github.com/users/GitCop/gists{/gist_id}","starred_url":"https://api.github.com/users/GitCop/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GitCop/subscriptions","organizations_url":"https://api.github.com/users/GitCop/orgs","repos_url":"https://api.github.com/users/GitCop/repos","events_url":"https://api.github.com/users/GitCop/events{/privacy}","received_events_url":"https://api.github.com/users/GitCop/received_events","type":"User","site_admin":false},"created_at":"2016-03-02T15:41:09Z","updated_at":"2016-03-02T15:41:09Z","body":"Thanks for contributing! Unfortunately, I'm here to tell you there were the following style issues with your Pull Request:\n\n * Commit: c720295e99d0f85e5f5311eb55de335136a45bb7\n  * Invalid type. Valid types are **feat, fix, docs, style, refactor, perf, test, chore, revert**\n\nGuidelines are available at https://github.com/hyperium/hyper/blob/master/CONTRIBUTING.md\n\n---\nThis message was auto-generated by https://gitcop.com\n"}}