如果有类关闭了流,那么结果将会是文件资源的泄露(参见图3)。
If neither class closes the stream, the result will be a file resource leak. (See Figure 3.)
假如开发者忘记调用XyzRelease函数,那时资源就会泄露,因为编译器不能跟踪一个对象实例的生命周期。
If the developer forgets to call XyzRelease, then resources are leaked because the compiler doesn't help to track the lifetime of an object instance.
一个典型的示例是偷窃密码,但信息泄露可以涉及对服务器上的任何文件或资源的访问。
A typical example is stealing passwords, but information disclosure can involve access to any file or resource on the server.
应用推荐