1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2013
    Rep Power

    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.
  2. #2
  3. Backwards Moderator
    Devshed Supreme Being (6500+ posts)

    Join Date
    Mar 2007
    Washington, USA
    Rep Power
    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

    • richpri agrees : Does the term 'exploit vunerability' ring a bell?

IMN logo majestic logo threadwatch logo seochat tools logo