Iowa State University
Efficient detection of pointer and array access errors at run-time
Abstract
dc:description.abstractMemory access errors are one of the most common kinds of programming errors and are extremely difficult to detect. Consequently, many memory errors escape the software testing phase, and impact the reliability and/or performance of software in the field. We have developed a new technique for detection of memory access errors at runtime, which provides memory access protection at the level of a memory block. A block is a unit of memory allocation, and corresponds to the storage allocated to a single variable, regardless of whether it is of a basic type or an aggregate type such as an array, or storage allocated dynamically by the program, by calling the C library function malloc(). When the components of such a block are accessed using array or pointer operations, we check for spatial errors (i.e., the access creates a reference to a location outside of the block) and temporal errors (i.e., the block being referenced has already been freed earlier). Our technique is implemented using a source-to-source program transformation. Unlike previous efforts based on concepts such as "smart pointers", our approach does not require changes to pointer representation. This makes our approach compatible with existing libraries, and in particular, allows the transformed programs to access operating system resources. Another important feature of our approach is that it cannot be subverted by a program either unintentionally (due to access errors in the program) or intentionally (due to malicious code in the program). Finally, the technique is efficient, and does not make use of hashing. We have developed a source-to-source translator for a subset of the C language. The subset supports all pointer-related operations of C, while supporting only a minimal subset of expressions and control constructs of C. Our results show that the overhead of checking can be 1% to 400 % when simple optimization techniques are applied to the transformed code. Though it is high in the worst case, in a typical case, it is low enough that the checks can be enabled in production code.
Degree
thesis:*- Name thesis:degree_name
- Master of Science
- Level thesis:degree_level
- Masters
- Discipline thesis:degree_discipline
- Computer Science
- Department thesis:degree_department
- Department of Computer Science
- Year dc:date.issued
- 1999
Author and committee
dc:creator, dc:contributor.*- Author dc:creator
-
- Deshmukh, Amrita Ajit
- Advisors dc:contributor.advisor
-
- Sekar, R.C.
- Tyagi, Akhilesh
Rights
- Language dc:language.iso
- en
Identifiers
dc:identifier.*- Repository record dc:identifier.uri
- https://dr.lib.iastate.edu/handle/20.500.12876/7wbOKEPv