s = new_sandbox_1() timeout = 1000*1000 -- 1 million Lua instructions s.set_timeout(timeout) s.run("i=0 while true do i=i+1 end") print("Timeout = "..timeout..". Looped this often: "..s.get_inner("i"))
Began life as a copy of #559
test run test run with input download show line numbers
Travelled to 12 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
ID | Author/Program | Comment | Date | |
---|---|---|---|---|
713 | #1000610 | Edit suggestion: !636 !629 main { static Object androidContext; static String programID; public static void main(String[] args) throws Exception { s = new_sandbox_1() timeout = 1000*1000 -- 1 million Lua instructions s.set_timeout(timeout) s.run("i=0 while true do i=i+1 end") print("Timeout = "..timeout..". Looped this often: "..s.get_inner("i")) }} | 2015-08-19 10:47:56 | delete |
711 | #1000604 (pitcher) | 2015-08-18 00:07:22 |
Snippet ID: | #561 |
Snippet name: | Sandboxing Timeout Test |
Eternal ID of this version: | #561/1 |
Text MD5: | 87550c4dfe541fa26218c5f98620c3a8 |
Author: | stefan |
Category: | |
Type: | Lua code |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2015-04-05 18:00:14 |
Source code size: | 211 bytes / 5 lines |
Pitched / IR pitched: | No / Yes |
Views / Downloads: | 1111 / 185 |
Referenced in: | [show references] |