Rust is a modern systems programming language whose type system guarantees memory safety. For the sake of expressivity and performance it allows programmers to relax typing rules temporarily, using unsafe code blocks. However, in unsafe blocks, the burden of making sure that the code does not end up having undefined behaviour is on the programmer. Even most expert programmers make mistakes and a memory safety bug in an unsafe block renders all the type system guarantees void. To address this problem we are trying to verify soundness of Rust unsafe code applying our Modular Symbolic Execution algorithm. This text outlines our approach and the progress that has been made so far.
翻译:鲁斯特是一种现代系统编程语言,其类型系统保证记忆安全。为了表达性和性能,它允许程序员使用不安全的代码块暂时放松打字规则。然而,在不安全的区块中,确保代码不会最终出现不确定行为的责任在程序员身上。即使是大多数专业程序员在不安全区块内犯错误和记忆安全错误,也使所有类型系统保证无效。为了解决这个问题,我们正在试图核查适用模块符号执行算法的鲁斯特不安全代码的正确性。该文本概述了我们的做法和迄今取得的进展。