{"action":"created","issue":{"url":"https://api.github.com/repos/xbmc/xbmc/issues/8701","labels_url":"https://api.github.com/repos/xbmc/xbmc/issues/8701/labels{/name}","comments_url":"https://api.github.com/repos/xbmc/xbmc/issues/8701/comments","events_url":"https://api.github.com/repos/xbmc/xbmc/issues/8701/events","html_url":"https://github.com/xbmc/xbmc/pull/8701","id":124194405,"number":8701,"title":"[fix][pvr] m_gridIndex array index out of bound","user":{"login":"xhaggi","id":1878991,"avatar_url":"https://avatars.githubusercontent.com/u/1878991?v=3","gravatar_id":"","url":"https://api.github.com/users/xhaggi","html_url":"https://github.com/xhaggi","followers_url":"https://api.github.com/users/xhaggi/followers","following_url":"https://api.github.com/users/xhaggi/following{/other_user}","gists_url":"https://api.github.com/users/xhaggi/gists{/gist_id}","starred_url":"https://api.github.com/users/xhaggi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xhaggi/subscriptions","organizations_url":"https://api.github.com/users/xhaggi/orgs","repos_url":"https://api.github.com/users/xhaggi/repos","events_url":"https://api.github.com/users/xhaggi/events{/privacy}","received_events_url":"https://api.github.com/users/xhaggi/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/xbmc/xbmc/labels/Backport-Needed","name":"Backport-Needed","color":"5319e7"},{"url":"https://api.github.com/repos/xbmc/xbmc/labels/Fix","name":"Fix","color":"0b02e1"},{"url":"https://api.github.com/repos/xbmc/xbmc/labels/PVR","name":"PVR","color":"009800"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-12-29T10:54:17Z","updated_at":"2015-12-29T13:23:10Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/xbmc/xbmc/pulls/8701","html_url":"https://github.com/xbmc/xbmc/pull/8701","diff_url":"https://github.com/xbmc/xbmc/pull/8701.diff","patch_url":"https://github.com/xbmc/xbmc/pull/8701.patch"},"body":"As reported by @afedchin and @fritsch this fixes different array index out of bound exceptions while accessing `CGUIEPGGridContainer::m_gridIndex` by reset some members before update the grid.\r\n\r\nHow to reproduce:\r\nShow EPG for all channels, focus last row in the grid, then switch to group with less than 6 channels.\r\nAnd by using the mouse to switch the group to get the second out of bound exception."},"comment":{"url":"https://api.github.com/repos/xbmc/xbmc/issues/comments/167787120","html_url":"https://github.com/xbmc/xbmc/pull/8701#issuecomment-167787120","issue_url":"https://api.github.com/repos/xbmc/xbmc/issues/8701","id":167787120,"user":{"login":"xhaggi","id":1878991,"avatar_url":"https://avatars.githubusercontent.com/u/1878991?v=3","gravatar_id":"","url":"https://api.github.com/users/xhaggi","html_url":"https://github.com/xhaggi","followers_url":"https://api.github.com/users/xhaggi/followers","following_url":"https://api.github.com/users/xhaggi/following{/other_user}","gists_url":"https://api.github.com/users/xhaggi/gists{/gist_id}","starred_url":"https://api.github.com/users/xhaggi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xhaggi/subscriptions","organizations_url":"https://api.github.com/users/xhaggi/orgs","repos_url":"https://api.github.com/users/xhaggi/repos","events_url":"https://api.github.com/users/xhaggi/events{/privacy}","received_events_url":"https://api.github.com/users/xhaggi/received_events","type":"User","site_admin":false},"created_at":"2015-12-29T13:23:10Z","updated_at":"2015-12-29T13:23:10Z","body":"@ksooo updated as discussed"}}