{"action":"closed","issue":{"url":"https://api.github.com/repos/oclint/oclint/issues/250","repository_url":"https://api.github.com/repos/oclint/oclint","labels_url":"https://api.github.com/repos/oclint/oclint/issues/250/labels{/name}","comments_url":"https://api.github.com/repos/oclint/oclint/issues/250/comments","events_url":"https://api.github.com/repos/oclint/oclint/issues/250/events","html_url":"https://github.com/oclint/oclint/issues/250","id":110333112,"number":250,"title":"Segfaulting if a clang unkown compile flag is given","user":{"login":"Hinterwaeldlers","id":14948891,"avatar_url":"https://avatars.githubusercontent.com/u/14948891?v=3","gravatar_id":"","url":"https://api.github.com/users/Hinterwaeldlers","html_url":"https://github.com/Hinterwaeldlers","followers_url":"https://api.github.com/users/Hinterwaeldlers/followers","following_url":"https://api.github.com/users/Hinterwaeldlers/following{/other_user}","gists_url":"https://api.github.com/users/Hinterwaeldlers/gists{/gist_id}","starred_url":"https://api.github.com/users/Hinterwaeldlers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Hinterwaeldlers/subscriptions","organizations_url":"https://api.github.com/users/Hinterwaeldlers/orgs","repos_url":"https://api.github.com/users/Hinterwaeldlers/repos","events_url":"https://api.github.com/users/Hinterwaeldlers/events{/privacy}","received_events_url":"https://api.github.com/users/Hinterwaeldlers/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-10-07T22:43:39Z","updated_at":"2016-05-12T23:51:57Z","closed_at":"2016-05-12T23:51:57Z","body":"Hi,\r\n\r\nwhile processing some code, i'vr seen that oclint sometimes dies with a segfault. Searching a bit around within the code, i was able to track it down to the list of compiler flags.\r\nSo it can be reproduced using the following call to any source file:\r\n\r\noclint anySource.cpp -- -c -Wsfgsdgdsgsdgsdg\r\n\r\nI have not seen any way to get a list of existing flags, but based on this it seems to be necessary to append them in adjustArguments(Driver.cpp) or a similar place.\r\nHope someone else knows clang a bit better to append the part accordingly"}}