Skip to Main content Skip to Navigation
Conference papers

Certified Absence of Dangling Pointers in a Language with Explicit Deallocation

Abstract : Safe is a first-order eager functional language with facilities for programmer controlled destruction of data structures. It provides also regions, i.e. disjoint parts of the heap, where the program allocates data structures, so that the runtime system does not need a garbage collector. A region is a collection of cells, each one big enough to allocate a data constructor. Deallocating cells or regions may create dangling pointers. The language is aimed at inferring and certifying memory safety properties in a Proof Carrying Code like environment. Some of its analyses have been presented elsewhere. The one relevant to this paper is a type system and a type inference algorithm guaranteeing that well-typed programs will be free of dangling pointers at runtime. Here we present how to generate formal certificates about the absence of dangling pointers property inferred by the compiler. The certificates are Isabelle/HOL proof scripts which can be proof-checked by this tool when loaded with a database of previously proved theorems. The key idea is proving an Isabelle/HOL theorem for each syntactic construction of the language, relating the static types inferred by the compiler to the dynamic properties about the heap that will be satisfied at runtime.
Complete list of metadata

Cited literature [15 references]  Display  Hide  Download

https://hal.inria.fr/inria-00524597
Contributor : Ist Inria Nancy Grand Est Connect in order to contact the contributor
Submitted on : Friday, October 8, 2010 - 11:53:26 AM
Last modification on : Tuesday, October 19, 2021 - 3:44:43 PM
Long-term archiving on: : Monday, January 10, 2011 - 11:42:51 AM

File

main306.pdf
Files produced by the author(s)

Identifiers

  • HAL Id : inria-00524597, version 1

Collections

Citation

Javier de Dios, Manuel Montenegro, Ricardo Peña. Certified Absence of Dangling Pointers in a Language with Explicit Deallocation. Integrated Formal Methods - IFM 2010, INRIA Nancy Grand Est, Oct 2010, Nancy, France. pp.305-319. ⟨inria-00524597⟩

Share

Metrics

Record views

38

Files downloads

144