January 14th, 2013, 03:36 AM
C,C++ online IDE in Php
We are developing an ide for c, c++, using php. It takes a 'c' source code from html form element and compile it in gcc linux compiler with the help of 'exec()' php function. Also it returns error and output to the browser window. We did it successfully, but we have prblm in compiling a infinite loop source code. So please, help me to make a timeout on infinite loop execution.
January 14th, 2013, 03:40 AM
Your problem is that you're allowing people to upload source code to a machine under your control, compile it, and execute it. What's to stop me, a malicious uploader, from completely pwning your machine? Screw infinite loops, I'm going to find a root exploit and add your machine to my botnet.
Comments on this post