{"action":"opened","issue":{"url":"https://api.github.com/repos/JuliaLang/julia/issues/26512","repository_url":"https://api.github.com/repos/JuliaLang/julia","labels_url":"https://api.github.com/repos/JuliaLang/julia/issues/26512/labels{/name}","comments_url":"https://api.github.com/repos/JuliaLang/julia/issues/26512/comments","events_url":"https://api.github.com/repos/JuliaLang/julia/issues/26512/events","html_url":"https://github.com/JuliaLang/julia/issues/26512","id":306299773,"number":26512,"title":"MurmurHash3 has undefined behavior","user":{"login":"Keno","id":1291671,"avatar_url":"https://avatars1.githubusercontent.com/u/1291671?v=4","gravatar_id":"","url":"https://api.github.com/users/Keno","html_url":"https://github.com/Keno","followers_url":"https://api.github.com/users/Keno/followers","following_url":"https://api.github.com/users/Keno/following{/other_user}","gists_url":"https://api.github.com/users/Keno/gists{/gist_id}","starred_url":"https://api.github.com/users/Keno/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Keno/subscriptions","organizations_url":"https://api.github.com/users/Keno/orgs","repos_url":"https://api.github.com/users/Keno/repos","events_url":"https://api.github.com/users/Keno/events{/privacy}","received_events_url":"https://api.github.com/users/Keno/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-03-19T00:11:24Z","updated_at":"2018-03-19T00:11:24Z","closed_at":null,"author_association":"OWNER","body":"Our implementation of MurmurHash3 has:\r\n\r\nhttps://github.com/JuliaLang/julia/blob/ed3798495d735a9608ef42ac266649a2a3fe085e/src/support/MurmurHash3.c#L60-L63\r\n\r\nHowever, the pointer is not necessarily properly aligned, making this undefined behavior.\r\nThe proper fix is to stop casting to an invalid pointer type and to use `memcpy`, which all modern compiler optimize to a proper sequence for unaligned access.\r\n\r\nThis is the same issue as https://github.com/grpc/grpc/issues/13221"}}
{"actor":{"display_login":"Keno"}}