{"action":"created","issue":{"url":"https://api.github.com/repos/haskell/vector/issues/118","repository_url":"https://api.github.com/repos/haskell/vector","labels_url":"https://api.github.com/repos/haskell/vector/issues/118/labels{/name}","comments_url":"https://api.github.com/repos/haskell/vector/issues/118/comments","events_url":"https://api.github.com/repos/haskell/vector/issues/118/events","html_url":"https://github.com/haskell/vector/issues/118","id":159611655,"number":118,"title":"DV.Generic.Mutable.fill does not check for out of bounds access","user":{"login":"Shimuuar","id":100394,"avatar_url":"https://avatars.githubusercontent.com/u/100394?v=3","gravatar_id":"","url":"https://api.github.com/users/Shimuuar","html_url":"https://github.com/Shimuuar","followers_url":"https://api.github.com/users/Shimuuar/followers","following_url":"https://api.github.com/users/Shimuuar/following{/other_user}","gists_url":"https://api.github.com/users/Shimuuar/gists{/gist_id}","starred_url":"https://api.github.com/users/Shimuuar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Shimuuar/subscriptions","organizations_url":"https://api.github.com/users/Shimuuar/orgs","repos_url":"https://api.github.com/users/Shimuuar/repos","events_url":"https://api.github.com/users/Shimuuar/events{/privacy}","received_events_url":"https://api.github.com/users/Shimuuar/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/haskell/vector/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/haskell/vector/labels/design-shed","name":"design-shed","color":"0e8a16"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/haskell/vector/milestones/1","html_url":"https://github.com/haskell/vector/milestones/0.12","labels_url":"https://api.github.com/repos/haskell/vector/milestones/1/labels","id":1901096,"number":1,"title":"0.12","description":null,"creator":{"login":"cartazio","id":4290,"avatar_url":"https://avatars.githubusercontent.com/u/4290?v=3","gravatar_id":"","url":"https://api.github.com/users/cartazio","html_url":"https://github.com/cartazio","followers_url":"https://api.github.com/users/cartazio/followers","following_url":"https://api.github.com/users/cartazio/following{/other_user}","gists_url":"https://api.github.com/users/cartazio/gists{/gist_id}","starred_url":"https://api.github.com/users/cartazio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cartazio/subscriptions","organizations_url":"https://api.github.com/users/cartazio/orgs","repos_url":"https://api.github.com/users/cartazio/repos","events_url":"https://api.github.com/users/cartazio/events{/privacy}","received_events_url":"https://api.github.com/users/cartazio/received_events","type":"User","site_admin":false},"open_issues":11,"closed_issues":0,"state":"open","created_at":"2016-07-24T18:34:00Z","updated_at":"2016-07-24T20:28:46Z","due_on":null,"closed_at":null},"comments":5,"created_at":"2016-06-10T11:06:28Z","updated_at":"2016-07-25T19:32:10Z","closed_at":null,"body":"So it should be either renamed as unsafeFill and/or bound checks added. It's possible this is not only one function with unsafe access.\r\n\r\n```haskell\r\nmodule Fill where\r\n\r\nimport qualified Data.Vector.Unboxed.Mutable       as MU\r\nimport qualified Data.Vector.Generic.Mutable       as MG\r\nimport qualified Data.Vector.Fusion.Stream.Monadic as SS\r\n\r\nmain :: IO ()\r\nmain = do\r\n  mv <- MU.replicate 10 (1 :: Int)\r\n  MG.fill mv (SS.replicate 1000000 42)\r\n  return ()\r\n```\r\n\r\n```\r\n[1 of 1] Compiling Fill             ( /home/alexey/qqq/fill-sigsegv.hs, interpreted )\r\nOk, modules loaded: Fill.\r\n*Fill> :main\r\nSegmentation fault\r\n```"},"comment":{"url":"https://api.github.com/repos/haskell/vector/issues/comments/235059131","html_url":"https://github.com/haskell/vector/issues/118#issuecomment-235059131","issue_url":"https://api.github.com/repos/haskell/vector/issues/118","id":235059131,"user":{"login":"cartazio","id":4290,"avatar_url":"https://avatars.githubusercontent.com/u/4290?v=3","gravatar_id":"","url":"https://api.github.com/users/cartazio","html_url":"https://github.com/cartazio","followers_url":"https://api.github.com/users/cartazio/followers","following_url":"https://api.github.com/users/cartazio/following{/other_user}","gists_url":"https://api.github.com/users/cartazio/gists{/gist_id}","starred_url":"https://api.github.com/users/cartazio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cartazio/subscriptions","organizations_url":"https://api.github.com/users/cartazio/orgs","repos_url":"https://api.github.com/users/cartazio/repos","events_url":"https://api.github.com/users/cartazio/events{/privacy}","received_events_url":"https://api.github.com/users/cartazio/received_events","type":"User","site_admin":false},"created_at":"2016-07-25T19:32:10Z","updated_at":"2016-07-25T19:32:10Z","body":"Read the docs. It's under internal\n\nWe can't help you with literacy\n\nOn Monday, July 25, 2016, Aleksey Khudyakov <notifications@github.com>\nwrote:\n\n> If it is internal function it should be given sufficiently scary name or\n> moved into some *.Internal module. Also no one reads all that small print\n> about which function is internal and which is not. At least I don't.\n>\n> —\n> You are receiving this because you commented.\n> Reply to this email directly, view it on GitHub\n> <https://github.com/haskell/vector/issues/118#issuecomment-235040340>, or mute\n> the thread\n> <https://github.com/notifications/unsubscribe-auth/AAAQwjjVOrKTNayo8tEIWuEUF8ua62Xtks5qZP-xgaJpZM4Iy2UW>\n> .\n>\n"}}
{"actor":{"display_login":"cartazio"}}