+ 2
Mini malware, infinity file and protection in sololearn
* I don't know English well, so I apologize in advance for possible errors* I have mini malware/spamer that creating infinity file. https://code.sololearn.com/cwAe79s4E4Gt/?ref=app In the long term, the file can take up all the space on the hard drive. But on sololearn nothing terrible happens. Code is quickly interrupted, because the time limit expires. Does sololearn have special protection against such "problem" codes, or does it simply interrupt the long-running code? Is the file deleting immediately?
4 Antworten
+ 3
You can be even more vicious and create an awful lot of files then fill them. As your memory is contiguous, if the unique file you created become too big, you might not be able to write in it because other files will be on each side of it while leaving other places of your memory intact so with lots of space. I do not know if the OS cut the file in more than one piece in the memory though.
https://code.sololearn.com/c8bxk6uPXspJ/?ref=app
(I let my code private as it is your idea)
+ 5
SL times out long running codes. I don't know about what protective measures is has, but I do know that running any code of a destructive nature on SL can get you into big trouble.
+ 4
та ты офигел 😁
0
Ля, имею право