非法代码(Unwanted Code)是指没有作用却会带来危险的代码,一个最安全的定义是把所有不必要的代码都看作是恶意的,不必要代码比恶意代码具有更宽泛的含义,包括所有可能与某个组织安全策略相冲突的软件。
程序中应用的一个术语,表示一个程序已经过完整测试和查错,确信不含有其它非法代码或数据。
A term applied to a program to indicate that it has been thoroughly tested and debugged and can be relied upon not to corrupt other code or data.
这个确认步骤保证代码是格式优良的——不会上溢或者下溢栈或者含有非法字节码。
These verification steps ensure that the code is well-formed--that it doesn't overflow or underflow the stack or contain illegal byte-codes, for example.
在开始时,编写这些代码可能会有一点无聊,不过它对于可靠性确实有好处:如果您拒绝了那些非法数据,许多不可思议的问题马上就会消失。
Initially, writing this code can be a little dreary, but it also has a real advantage in reliability: many mysterious problems instantly disappear if you immediately reject bad data.
应用推荐