{"action":"created","issue":{"url":"https://api.github.com/repos/bitfighter/bitfighter/issues/497","labels_url":"https://api.github.com/repos/bitfighter/bitfighter/issues/497/labels{/name}","comments_url":"https://api.github.com/repos/bitfighter/bitfighter/issues/497/comments","events_url":"https://api.github.com/repos/bitfighter/bitfighter/issues/497/events","html_url":"https://github.com/bitfighter/bitfighter/issues/497","id":102542211,"number":497,"title":"Lua: Endless loop and no limit on memory","user":{"login":"raptor","id":6452412,"avatar_url":"https://avatars.githubusercontent.com/u/6452412?v=3","gravatar_id":"","url":"https://api.github.com/users/raptor","html_url":"https://github.com/raptor","followers_url":"https://api.github.com/users/raptor/followers","following_url":"https://api.github.com/users/raptor/following{/other_user}","gists_url":"https://api.github.com/users/raptor/gists{/gist_id}","starred_url":"https://api.github.com/users/raptor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raptor/subscriptions","organizations_url":"https://api.github.com/users/raptor/orgs","repos_url":"https://api.github.com/users/raptor/repos","events_url":"https://api.github.com/users/raptor/events{/privacy}","received_events_url":"https://api.github.com/users/raptor/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/bitfighter/bitfighter/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/bitfighter/bitfighter/labels/imported","name":"imported","color":"FFFFFF"},{"url":"https://api.github.com/repos/bitfighter/bitfighter/labels/Priority-Medium","name":"Priority-Medium","color":"FFFFFF"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-08-22T14:45:36Z","updated_at":"2015-08-22T14:45:37Z","closed_at":null,"body":"_From [sam8641@gmail.com](https://code.google.com/u/sam8641@gmail.com/) on January 12, 2015 14:29:18_\n\nThe following will freeze forever:\r\nfunction main()\r\n  while 2 \\< 5 do\r\n  end\r\nend\r\n\r\nUsing too much RAM can crash after using up 2 GB of RAM:\r\narray1 = {}\r\nfunction main()\r\n  local i = 1\r\n  while i \\< 100000000 do\r\n    array1[i] = {{{{{{{{{{}}}}}}}}}}\r\n    i = i + 1\r\n  end\r\nend\r\n\r\nA single {} might not crash Windows 32 bit, but will memory leak after LUA memory exception.\r\n\r\nAllowing users to upload these levelgen can kill the server. Limiting LUA memory usage and execution time may solve this.\n\n_Original issue: http://code.google.com/p/bitfighter/issues/detail?id=497_"},"comment":{"url":"https://api.github.com/repos/bitfighter/bitfighter/issues/comments/133712006","html_url":"https://github.com/bitfighter/bitfighter/issues/497#issuecomment-133712006","issue_url":"https://api.github.com/repos/bitfighter/bitfighter/issues/497","id":133712006,"user":{"login":"raptor","id":6452412,"avatar_url":"https://avatars.githubusercontent.com/u/6452412?v=3","gravatar_id":"","url":"https://api.github.com/users/raptor","html_url":"https://github.com/raptor","followers_url":"https://api.github.com/users/raptor/followers","following_url":"https://api.github.com/users/raptor/following{/other_user}","gists_url":"https://api.github.com/users/raptor/gists{/gist_id}","starred_url":"https://api.github.com/users/raptor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raptor/subscriptions","organizations_url":"https://api.github.com/users/raptor/orgs","repos_url":"https://api.github.com/users/raptor/repos","events_url":"https://api.github.com/users/raptor/events{/privacy}","received_events_url":"https://api.github.com/users/raptor/received_events","type":"User","site_admin":false},"created_at":"2015-08-22T14:45:37Z","updated_at":"2015-08-22T14:45:37Z","body":"_From [bkcon...@gmail.com](https://code.google.com/u/112584966209893525339/) on January 20, 2015 10:24:12_\n\nWould also be nice to allow editor plugin users to (optionally) kill a long-running plugin."}}