{"action":"created","issue":{"url":"https://api.github.com/repos/okamstudio/godot/issues/1794","labels_url":"https://api.github.com/repos/okamstudio/godot/issues/1794/labels{/name}","comments_url":"https://api.github.com/repos/okamstudio/godot/issues/1794/comments","events_url":"https://api.github.com/repos/okamstudio/godot/issues/1794/events","html_url":"https://github.com/okamstudio/godot/issues/1794","id":72797475,"number":1794,"title":"use std::raise to abort the program instead of using null pointer dereference","user":{"login":"swenner","id":290658,"avatar_url":"https://avatars.githubusercontent.com/u/290658?v=3","gravatar_id":"","url":"https://api.github.com/users/swenner","html_url":"https://github.com/swenner","followers_url":"https://api.github.com/users/swenner/followers","following_url":"https://api.github.com/users/swenner/following{/other_user}","gists_url":"https://api.github.com/users/swenner/gists{/gist_id}","starred_url":"https://api.github.com/users/swenner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/swenner/subscriptions","organizations_url":"https://api.github.com/users/swenner/orgs","repos_url":"https://api.github.com/users/swenner/repos","events_url":"https://api.github.com/users/swenner/events{/privacy}","received_events_url":"https://api.github.com/users/swenner/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-05-03T12:16:52Z","updated_at":"2015-05-04T18:52:16Z","closed_at":null,"body":"Classes like core/map.h, core/hash_map.h and others use null pointer dereference to abort. Please use std::raise to abort, as these null pointer dereference create a lot of false positives in static analysis tools."},"comment":{"url":"https://api.github.com/repos/okamstudio/godot/issues/comments/98811718","html_url":"https://github.com/okamstudio/godot/issues/1794#issuecomment-98811718","issue_url":"https://api.github.com/repos/okamstudio/godot/issues/1794","id":98811718,"user":{"login":"swenner","id":290658,"avatar_url":"https://avatars.githubusercontent.com/u/290658?v=3","gravatar_id":"","url":"https://api.github.com/users/swenner","html_url":"https://github.com/swenner","followers_url":"https://api.github.com/users/swenner/followers","following_url":"https://api.github.com/users/swenner/following{/other_user}","gists_url":"https://api.github.com/users/swenner/gists{/gist_id}","starred_url":"https://api.github.com/users/swenner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/swenner/subscriptions","organizations_url":"https://api.github.com/users/swenner/orgs","repos_url":"https://api.github.com/users/swenner/repos","events_url":"https://api.github.com/users/swenner/events{/privacy}","received_events_url":"https://api.github.com/users/swenner/received_events","type":"User","site_admin":false},"created_at":"2015-05-04T18:52:16Z","updated_at":"2015-05-04T18:52:16Z","body":"int raise(int sig) is a C function, how can it throw an exception?\r\nhttp://en.cppreference.com/w/c/program/raise\r\n\r\nShouldn't raise(SIGSEGV); do the same as: result = *(V*)NULL; ?"}}