arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 1705.07354cs.PLcs.CR
收藏

记忆安全的意义

The Meaning of Memory Safety

Arthur Azevedo de Amorim, Catalin Hritcu, Benjamin C. Pierce

摘要:

我们给出了一个严格的表征是什么意思的程序设计语言是内存安全的,捕捉的直觉,内存安全支持本地推理状态。我们用两种方式来形式化这个原则。首先,我们展示了一个小型的内存安全语言如何验证一个不干扰属性:一个程序既不能影响也不能被不可达的状态部分所影响。其次,我们扩展了分离逻辑,一个证明系统的堆操作程序,其框架规则的内存安全的变种。新规则更强大,因为它甚至适用于程序的某些部分有错误或恶意,但也更弱,因为它要求程序状态的各个部分之间有更严格的分离形式。我们还考虑了一些务实的动机变化的记忆安全和推理原则,他们支持。作为我们的表征的应用程序,我们评估的安全性,以前提出的动态监视器的内存安全的堆分配的数据。

英文摘要:

We give a rigorous characterization of what it means for a programming language to be memory safe, capturing the intuition that memory safety supports local reasoning about state. We formalize this principle in two ways. First, we show how a small memory-safe language validates a noninterference property: a program can neither affect nor be affected by unreachable parts of the state. Second, we extend separation logic, a proof system for heap-manipulating programs, with a memory-safe variant of its frame rule. The new rule is stronger because it applies even when parts of the program are buggy or malicious, but also weaker because it demands a stricter form of separation between parts of the program state. We also consider a number of pragmatically motivated variations on memory safety and the reasoning principles they support. As an application of our characterization, we evaluate the security of a previously proposed dynamic monitor for memory safety of heap-allocated data.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑