Mini malware, infinity file and protection in sololearn | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 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?

7th Dec 2017, 6:39 AM
Light Dimf
Light Dimf - avatar
4 Answers
+ 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)
7th Dec 2017, 8:01 AM
Baptiste E. Prunier
Baptiste E. Prunier - avatar
+ 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.
7th Dec 2017, 8:06 AM
David Ashton
David Ashton - avatar
+ 4
та ты офигел 😁
8th Feb 2018, 4:06 PM
Eugene Overchenko
Eugene Overchenko - avatar
0
Ля, имею право
8th Feb 2018, 4:11 PM
Light Dimf
Light Dimf - avatar