{"action":"created","issue":{"url":"https://api.github.com/repos/briansmith/ring/issues/4","labels_url":"https://api.github.com/repos/briansmith/ring/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/briansmith/ring/issues/4/comments","events_url":"https://api.github.com/repos/briansmith/ring/issues/4/events","html_url":"https://github.com/briansmith/ring/issues/4","id":103944820,"number":4,"title":"Remove casts to size_t in Rust code","user":{"login":"briansmith","id":16816,"avatar_url":"https://avatars.githubusercontent.com/u/16816?v=3","gravatar_id":"","url":"https://api.github.com/users/briansmith","html_url":"https://github.com/briansmith","followers_url":"https://api.github.com/users/briansmith/followers","following_url":"https://api.github.com/users/briansmith/following{/other_user}","gists_url":"https://api.github.com/users/briansmith/gists{/gist_id}","starred_url":"https://api.github.com/users/briansmith/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/briansmith/subscriptions","organizations_url":"https://api.github.com/users/briansmith/orgs","repos_url":"https://api.github.com/users/briansmith/repos","events_url":"https://api.github.com/users/briansmith/events{/privacy}","received_events_url":"https://api.github.com/users/briansmith/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-08-30T20:32:25Z","updated_at":"2015-10-18T01:58:34Z","closed_at":null,"body":"See rust-lang/rust/#28096.\r\n\r\nThere are some casts like ```digest.len() as libc::size_t``` that are potentially truncating and thus unsafe.  At the same time, the comments in the code questioning the safety of such casts need to be removed.\r\n\r\nThis will have to wait for a higher-versioned released of the libc crate with https://github.com/rust-lang/rust/pull/28096 merged into it."},"comment":{"url":"https://api.github.com/repos/briansmith/ring/issues/comments/148966664","html_url":"https://github.com/briansmith/ring/issues/4#issuecomment-148966664","issue_url":"https://api.github.com/repos/briansmith/ring/issues/4","id":148966664,"user":{"login":"briansmith","id":16816,"avatar_url":"https://avatars.githubusercontent.com/u/16816?v=3","gravatar_id":"","url":"https://api.github.com/users/briansmith","html_url":"https://github.com/briansmith","followers_url":"https://api.github.com/users/briansmith/followers","following_url":"https://api.github.com/users/briansmith/following{/other_user}","gists_url":"https://api.github.com/users/briansmith/gists{/gist_id}","starred_url":"https://api.github.com/users/briansmith/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/briansmith/subscriptions","organizations_url":"https://api.github.com/users/briansmith/orgs","repos_url":"https://api.github.com/users/briansmith/repos","events_url":"https://api.github.com/users/briansmith/events{/privacy}","received_events_url":"https://api.github.com/users/briansmith/received_events","type":"User","site_admin":false},"created_at":"2015-10-18T01:58:34Z","updated_at":"2015-10-18T01:58:34Z","body":"This depends on https://github.com/rust-lang/rust/pull/28779. That was merged to the Rust beta branch in https://github.com/rust-lang/rust/pull/29112 so we can probably do this soon."}}