ePrints@IIScePrints@IISc Home | About | Browse | Latest Additions | Advanced Search | Contact | Help

Static analysis for checking data format compatibility of programs

Devaki, Pranavadatta and Kanade, Aditya (2012) Static analysis for checking data format compatibility of programs. In: FSTTCS 2012 : IARCS Annual Conference on Foundations of Software Technology and Theoretical Computer Science, December 15 to 17, 2012, Hyderabad, India.

[img] PDF
Fou_Sof_Tech_Theo_Comp_Sci_1_2012.pdf - Published Version
Restricted to Registered users only

Download (494kB) | Request a copy
Official URL: http://www.fsttcs.org/archives/2012/

Abstract

Large software systems are developed by composing multiple programs. If the programs manip-ulate and exchange complex data, such as network packets or files, it is essential to establish that they follow compatible data formats. Most of the complexity of data formats is associated with the headers. In this paper, we address compatibility of programs operating over headers of network packets, files, images, etc. As format specifications are rarely available, we infer the format associated with headers by a program as a set of guarded layouts. In terms of these formats, we define and check compatibility of (a) producer-consumer programs and (b) different versions of producer (or consumer) programs. A compatible producer-consumer pair is free of type mismatches and logical incompatibilities such as the consumer rejecting valid outputs gen-erated by the producer. A backward compatible producer (resp. consumer) is guaranteed to be compatible with consumers (resp. producers) that were compatible with its older version. With our prototype tool, we identified 5 known bugs and 1 potential bug in (a) sender-receiver modules of Linux network drivers of 3 vendors and (b) different versions of a TIFF image library.

Item Type: Conference Paper
Publisher: International Proceedings in Informatics
Additional Information: Copyright of this article belongs to International Proceedings in Informatics.
Department/Centre: Division of Electrical Sciences > Computer Science & Automation
Date Deposited: 08 Nov 2013 05:16
Last Modified: 08 Nov 2013 05:16
URI: http://eprints.iisc.ac.in/id/eprint/47723

Actions (login required)

View Item View Item