A sand-boxing mechanism to run malicious/untrusted C and C++ codes