Deciding Memory Safety for Single-Pass Heap-Manipulating Programs

Umang Mathur, Adithya Murali, Paul Krogmeier, P. Madhusudan, Mahesh Viswanathan
6/29/2019
cs.PLcs.FLcs.LO

Official code: umangm/streamverif (0 stars, OCaml, MIT, last commit 2019-11-26).

Abstract

We investigate the decidability of automatic program verification for programs that manipulate heaps, and in particular, decision procedures for proving memory safety for them. We extend recent work that identified a decidable subclass of uninterpreted programs to a class of alias-aware programs that can update maps.

Show full abstract

We apply this theory to develop verification algorithms for memory safety--- determining if a heap-manipulating program that allocates and frees memory locations and manipulates heap pointers does not dereference an unallocated memory location. We show that this problem is decidable when the initial allocated heap forms a forest data-structure and when programs are streaming-coherent, which intuitively restricts programs to make a single pass over a data-structure. Our experimental evaluation on a set of library routines that manipulate forest data-structures shows that common single-pass algorithms on data-structures often fall in the decidable class, and that our decision procedure is efficient in verifying them.

View on arXivView PDF

Code Implementations(1)

umangm/streamverifOfficial100%
MIT
01OCaml, PythonNov 12, 20197 years agoMIT

Similar Papers

Cite this paper

@article{mathur2019deciding,
  title  = {Deciding Memory Safety for Single-Pass Heap-Manipulating Programs},
  author = {Umang Mathur and Adithya Murali and Paul Krogmeier and P. Madhusudan and Mahesh Viswanathan},
  year   = {2019},
  eprint = {1907.00298},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1907.00298}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/1907.00298.svg)](https://codeofpaper.com/paper/1907.00298)

Discussion