{"action":"created","issue":{"url":"https://api.github.com/repos/dotnet/corefx/issues/5836","labels_url":"https://api.github.com/repos/dotnet/corefx/issues/5836/labels{/name}","comments_url":"https://api.github.com/repos/dotnet/corefx/issues/5836/comments","events_url":"https://api.github.com/repos/dotnet/corefx/issues/5836/events","html_url":"https://github.com/dotnet/corefx/pull/5836","id":130570267,"number":5836,"title":"Fix StringBuffer.Trim buffer underrun","user":{"login":"JeremyKuhne","id":8184940,"avatar_url":"https://avatars.githubusercontent.com/u/8184940?v=3","gravatar_id":"","url":"https://api.github.com/users/JeremyKuhne","html_url":"https://github.com/JeremyKuhne","followers_url":"https://api.github.com/users/JeremyKuhne/followers","following_url":"https://api.github.com/users/JeremyKuhne/following{/other_user}","gists_url":"https://api.github.com/users/JeremyKuhne/gists{/gist_id}","starred_url":"https://api.github.com/users/JeremyKuhne/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JeremyKuhne/subscriptions","organizations_url":"https://api.github.com/users/JeremyKuhne/orgs","repos_url":"https://api.github.com/users/JeremyKuhne/repos","events_url":"https://api.github.com/users/JeremyKuhne/events{/privacy}","received_events_url":"https://api.github.com/users/JeremyKuhne/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/dotnet/corefx/labels/2%20-%20In%20Progress","name":"2 - In Progress","color":"CCCCCC"},{"url":"https://api.github.com/repos/dotnet/corefx/labels/cla-already-signed","name":"cla-already-signed","color":"009800"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-02-02T04:25:09Z","updated_at":"2016-02-02T04:44:00Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/dotnet/corefx/pulls/5836","html_url":"https://github.com/dotnet/corefx/pull/5836","diff_url":"https://github.com/dotnet/corefx/pull/5836.diff","patch_url":"https://github.com/dotnet/corefx/pull/5836.patch"},"body":"Validate we already haven't hit the start of the buffer before derefing the\r\npointer.\r\n\r\n#4855\r\n@stephentoub "},"comment":{"url":"https://api.github.com/repos/dotnet/corefx/issues/comments/178371568","html_url":"https://github.com/dotnet/corefx/pull/5836#issuecomment-178371568","issue_url":"https://api.github.com/repos/dotnet/corefx/issues/5836","id":178371568,"user":{"login":"stephentoub","id":2642209,"avatar_url":"https://avatars.githubusercontent.com/u/2642209?v=3","gravatar_id":"","url":"https://api.github.com/users/stephentoub","html_url":"https://github.com/stephentoub","followers_url":"https://api.github.com/users/stephentoub/followers","following_url":"https://api.github.com/users/stephentoub/following{/other_user}","gists_url":"https://api.github.com/users/stephentoub/gists{/gist_id}","starred_url":"https://api.github.com/users/stephentoub/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stephentoub/subscriptions","organizations_url":"https://api.github.com/users/stephentoub/orgs","repos_url":"https://api.github.com/users/stephentoub/repos","events_url":"https://api.github.com/users/stephentoub/events{/privacy}","received_events_url":"https://api.github.com/users/stephentoub/received_events","type":"User","site_admin":false},"created_at":"2016-02-02T04:44:00Z","updated_at":"2016-02-02T04:44:00Z","body":"LGTM.\r\n\r\nDo you know why we weren't hitting this failure deterministically?  Did it depend on what data was randomly in the memory we walked onto?\r\n\r\nAnd are there any other places in the code we should proactively audit to look for similar cases?"}}