{"action":"opened","issue":{"url":"https://api.github.com/repos/square/okio/issues/192","repository_url":"https://api.github.com/repos/square/okio","labels_url":"https://api.github.com/repos/square/okio/issues/192/labels{/name}","comments_url":"https://api.github.com/repos/square/okio/issues/192/comments","events_url":"https://api.github.com/repos/square/okio/issues/192/events","html_url":"https://github.com/square/okio/issues/192","id":134122657,"number":192,"title":"Buffer.snapshot(size) can return a ByteString longer than size","user":{"login":"ksperling","id":794414,"avatar_url":"https://avatars.githubusercontent.com/u/794414?v=3","gravatar_id":"","url":"https://api.github.com/users/ksperling","html_url":"https://github.com/ksperling","followers_url":"https://api.github.com/users/ksperling/followers","following_url":"https://api.github.com/users/ksperling/following{/other_user}","gists_url":"https://api.github.com/users/ksperling/gists{/gist_id}","starred_url":"https://api.github.com/users/ksperling/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ksperling/subscriptions","organizations_url":"https://api.github.com/users/ksperling/orgs","repos_url":"https://api.github.com/users/ksperling/repos","events_url":"https://api.github.com/users/ksperling/events{/privacy}","received_events_url":"https://api.github.com/users/ksperling/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-02-16T23:08:27Z","updated_at":"2016-02-16T23:08:27Z","closed_at":null,"body":"It seems this is due to reusing the internal segments of the buffer. I think the behaviour is fine, should just be documented accordingly."}}