{"action":"created","issue":{"url":"https://api.github.com/repos/KhronosGroup/glslang/issues/196","repository_url":"https://api.github.com/repos/KhronosGroup/glslang","labels_url":"https://api.github.com/repos/KhronosGroup/glslang/issues/196/labels{/name}","comments_url":"https://api.github.com/repos/KhronosGroup/glslang/issues/196/comments","events_url":"https://api.github.com/repos/KhronosGroup/glslang/issues/196/events","html_url":"https://github.com/KhronosGroup/glslang/issues/196","id":139776847,"number":196,"title":"[Non-glslang] Various SPIR-V consumers crash when run under a SPIR-V fuzzer (which tools?)","user":{"login":"astarasikov","id":842570,"avatar_url":"https://avatars.githubusercontent.com/u/842570?v=3","gravatar_id":"","url":"https://api.github.com/users/astarasikov","html_url":"https://github.com/astarasikov","followers_url":"https://api.github.com/users/astarasikov/followers","following_url":"https://api.github.com/users/astarasikov/following{/other_user}","gists_url":"https://api.github.com/users/astarasikov/gists{/gist_id}","starred_url":"https://api.github.com/users/astarasikov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/astarasikov/subscriptions","organizations_url":"https://api.github.com/users/astarasikov/orgs","repos_url":"https://api.github.com/users/astarasikov/repos","events_url":"https://api.github.com/users/astarasikov/events{/privacy}","received_events_url":"https://api.github.com/users/astarasikov/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2016-03-10T03:52:24Z","updated_at":"2016-03-19T19:50:58Z","closed_at":null,"body":"Hello.\r\nI decided to use a fuzzer to generate SPIR-V binaries that could crash the tools which work with them, and found several cases which either trigger assertions or very long execution times in \"spirv-remap\". I have also found out that a certain vendor driver also crashes when loading those binaries.\r\n\r\nI wrote a blog post summarizing my findings here - http://allsoftwaresucks.blogspot.ru/2016/03/fuzzing-vulkans-how-do-they-work.html .\r\n\r\nWould you like to have a look at the binaries (I have uploaded them)?\r\n\r\nDo you think it would be useful to create a script to run fuzzing with both SPIR-V binaries and GLSL shaders to test the quality of the parser and other parts of the validator, should I do more testing?\r\n\r\nI think it would be good to take a look at the cases which cause long compilation time on simple shaders, and also it would be nice to convert the assertions into graceful shutdowns."},"comment":{"url":"https://api.github.com/repos/KhronosGroup/glslang/issues/comments/198776792","html_url":"https://github.com/KhronosGroup/glslang/issues/196#issuecomment-198776792","issue_url":"https://api.github.com/repos/KhronosGroup/glslang/issues/196","id":198776792,"user":{"login":"xorgy","id":1272018,"avatar_url":"https://avatars.githubusercontent.com/u/1272018?v=3","gravatar_id":"","url":"https://api.github.com/users/xorgy","html_url":"https://github.com/xorgy","followers_url":"https://api.github.com/users/xorgy/followers","following_url":"https://api.github.com/users/xorgy/following{/other_user}","gists_url":"https://api.github.com/users/xorgy/gists{/gist_id}","starred_url":"https://api.github.com/users/xorgy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xorgy/subscriptions","organizations_url":"https://api.github.com/users/xorgy/orgs","repos_url":"https://api.github.com/users/xorgy/repos","events_url":"https://api.github.com/users/xorgy/events{/privacy}","received_events_url":"https://api.github.com/users/xorgy/received_events","type":"User","site_admin":false},"created_at":"2016-03-19T19:50:58Z","updated_at":"2016-03-19T19:50:58Z","body":"I think this can be closed here, yes. "}}