在线解释器/编译器如何处理恶意代码? [英] How do online interpretors/compilers deal with malicious code?

查看:33
本文介绍了在线解释器/编译器如何处理恶意代码?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在线代码解释器/编译器 (jsfiddle.netjsbin.comideone.comcodepad.org、等)处理恶意代码,例如无限循环?

How does an online code interpreter/compiler (jsfiddle.net, jsbin.com, ideone.com, codepad.org, etc) deal with malicious code, such as an infinite loop?

推荐答案

该特定站点看起来像是在客户端运行其代码.所以你不能伤害他们的服务器.

That particular site looks like it is running its code on the client side. So you can't hurt their servers.

其他站点采用在虚拟机中运行代码的方法.您可以限制虚拟机可以占用的资源,它们可以限制可能造成的潜在损害.

Other sites take the approach of running code in virtual machines. You can just throttle the resources that the virtual machine can take, and they have limited the potential damage that can be done.

这篇关于在线解释器/编译器如何处理恶意代码?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆