Buffer Overflow Analysis for C

Buffer overflow detection and mitigation for C programs has been an important concern for a long time. This paper defines a string buffer overflow analysis for C programs. The key ideas of our formulation are (a) separating buffers from the pointers that point to them, (b) modelling buffers in terms...

Full description

Bibliographic Details
Main Author: Khedker, Uday P.
Format: Text
Language:unknown
Published: 2014
Subjects:
Online Access:http://arxiv.org/abs/1412.5400
id ftarxivpreprints:oai:arXiv.org:1412.5400
record_format openpolar
spelling ftarxivpreprints:oai:arXiv.org:1412.5400 2023-09-05T13:23:43+02:00 Buffer Overflow Analysis for C Khedker, Uday P. 2014-12-17 http://arxiv.org/abs/1412.5400 unknown http://arxiv.org/abs/1412.5400 Computer Science - Programming Languages F.3.1 F.3.2 D.2.4 D.3.4 text 2014 ftarxivpreprints 2023-08-16T13:31:19Z Buffer overflow detection and mitigation for C programs has been an important concern for a long time. This paper defines a string buffer overflow analysis for C programs. The key ideas of our formulation are (a) separating buffers from the pointers that point to them, (b) modelling buffers in terms of sizes and sets of positions of null characters, and (c) defining stateless functions to compute the sets of null positions and mappings between buffers and pointers. This exercise has been carried out to test the feasibility of describing such an analysis in terms of lattice valued functions and relations to facilitate automatic construction of an analyser without the user having to write C/C++/Java code. This is facilitated by devising stateless formulations because stateful formulations combine features through side effects in states raising a natural requirement of C/C++/Java code to be written to describe them. Given the above motivation, the focus of this paper is not to build good static approximations for buffer overflow analysis but to show how given static approximations could be formalized in terms of stateless formulations so that they become amenable to automatic construction of analysers. Text The Pointers ArXiv.org (Cornell University Library)
institution Open Polar
collection ArXiv.org (Cornell University Library)
op_collection_id ftarxivpreprints
language unknown
topic Computer Science - Programming Languages
F.3.1
F.3.2
D.2.4
D.3.4
spellingShingle Computer Science - Programming Languages
F.3.1
F.3.2
D.2.4
D.3.4
Khedker, Uday P.
Buffer Overflow Analysis for C
topic_facet Computer Science - Programming Languages
F.3.1
F.3.2
D.2.4
D.3.4
description Buffer overflow detection and mitigation for C programs has been an important concern for a long time. This paper defines a string buffer overflow analysis for C programs. The key ideas of our formulation are (a) separating buffers from the pointers that point to them, (b) modelling buffers in terms of sizes and sets of positions of null characters, and (c) defining stateless functions to compute the sets of null positions and mappings between buffers and pointers. This exercise has been carried out to test the feasibility of describing such an analysis in terms of lattice valued functions and relations to facilitate automatic construction of an analyser without the user having to write C/C++/Java code. This is facilitated by devising stateless formulations because stateful formulations combine features through side effects in states raising a natural requirement of C/C++/Java code to be written to describe them. Given the above motivation, the focus of this paper is not to build good static approximations for buffer overflow analysis but to show how given static approximations could be formalized in terms of stateless formulations so that they become amenable to automatic construction of analysers.
format Text
author Khedker, Uday P.
author_facet Khedker, Uday P.
author_sort Khedker, Uday P.
title Buffer Overflow Analysis for C
title_short Buffer Overflow Analysis for C
title_full Buffer Overflow Analysis for C
title_fullStr Buffer Overflow Analysis for C
title_full_unstemmed Buffer Overflow Analysis for C
title_sort buffer overflow analysis for c
publishDate 2014
url http://arxiv.org/abs/1412.5400
genre The Pointers
genre_facet The Pointers
op_relation http://arxiv.org/abs/1412.5400
_version_ 1776204308756299776