JMLKelinci+: Detecting Semantic Bugs and Covering Branches with Valid Inputs using Coverage-Guided Fuzzing and Runtime Assertion Checking

Author:

Nilizadeh Amirfarhad1,Leavens Gary T.1,Păsăreanu Corina S.2,Noller Yannic3

Affiliation:

1. University of Central Florida Dept. of Computer Science, USA

2. Carnegie Mellon University/ NASA Ames Research Center, USA

3. National University of Singapore, Singapore

Abstract

Testing to detect semantic bugs is essential, especially for critical systems. Coverage-guided fuzzing (CGF) and runtime assertion checking (RAC) are two well-known approaches for detecting semantic bugs. CGF aims to generate test inputs with high code coverage. However, while CGF tools can be equipped with sanitizers to detect a fixed set of semantic bugs, they can otherwise only detect bugs that lead to a crash. Thus, the first problem we address is how to help fuzzers detect previously unknown semantic bugs that do not lead to a crash. Moreover, a CGF tool may not necessarily cover all branches with valid inputs, although invalid inputs are useless for detecting semantic bugs. So, the second problem is how to guide a fuzzer to maximize coverage using only valid inputs. On the other hand, RAC monitors the expected behavior of a program dynamically and can only detect a semantic bug when a valid test input shows that the program does not satisfy its specification. Thus, the third problem is how to provide high-quality test inputs for a RAC that can trigger potential bugs. The combination of a CGF tool and RAC solves these problems and can cover branches with valid inputs and detect semantic bugs effectively. Our study uses RAC to guarantee that only valid inputs reach the program under test using the program’s specified preconditions and it also uses RAC to detect semantic bugs using specified postconditions. A prototype tool was developed for this study, named JMLKelinci+. Our results show that combining a CGF tool with RAC will lead to executing the program under test only with valid inputs and that this technique can effectively detect semantic bugs. Also, this idea improves the feedback given to a CGF tool, enabling it to cover all branches faster in programs with non-trivial preconditions.

Publisher

Association for Computing Machinery (ACM)

Subject

Theoretical Computer Science,Software

Reference135 articles.

1. Wolfgang Ahrendt , Bernhard Beckert , Richard Bubel , Reiner Hähnle , Peter  H Schmitt , and Mattias Ulbrich . 2016. Deductive software verification-the KeY book. Lecture notes in computer science 10001 ( 2016 ). Wolfgang Ahrendt, Bernhard Beckert, Richard Bubel, Reiner Hähnle, Peter H Schmitt, and Mattias Ulbrich. 2016. Deductive software verification-the KeY book. Lecture notes in computer science 10001 (2016).

2. Fifty Years of Hoare’s Logic;Apt R.;Form. Asp. Comput.,2019

3. Combining test case generation and runtime verification;Artho Cyrille;Theoretical Computer Science,2005

4. Formal Verification of Security Protocol Implementations: A Survey;Avalle Matteo;Form. Asp. Comput.,2014

5. A survey of symbolic execution techniques;Baldoni Roberto;ACM Computing Surveys (CSUR),2018

Cited by 1 articles. 订阅此论文施引文献 订阅此论文施引文献,注册后可以免费订阅5篇论文的施引文献,订阅后可以查看论文全部施引文献

1. Automated Reasoning Repair;Proceedings of the 24th ACM International Workshop on Formal Techniques for Java-like Programs;2022-06-07

同舟云学术

1.学者识别学者识别

2.学术分析学术分析

3.人才评估人才评估

"同舟云学术"是以全球学者为主线,采集、加工和组织学术论文而形成的新型学术文献查询和分析系统,可以对全球学者进行文献检索和人才价值评估。用户可以通过关注某些学科领域的顶尖人物而持续追踪该领域的学科进展和研究前沿。经过近期的数据扩容,当前同舟云学术共收录了国内外主流学术期刊6万余种,收集的期刊论文及会议论文总量共计约1.5亿篇,并以每天添加12000余篇中外论文的速度递增。我们也可以为用户提供个性化、定制化的学者数据。欢迎来电咨询!咨询电话:010-8811{复制后删除}0370

www.globalauthorid.com

TOP

Copyright © 2019-2024 北京同舟云网络信息技术有限公司
京公网安备11010802033243号  京ICP备18003416号-3