Growing a Test Corpus with Bonsai Fuzzing

Vasudev Vikram, Rohan Padhye, Koushik Sen
3/7/2021
cs.SEcs.PL
benchmark-dataset

Official code: vasumv/bonsai-fuzzing (29 stars, JavaScript, last commit 2023-03-16).

Abstract

This paper presents a coverage-guided grammar-based fuzzing technique for automatically generating a corpus of concise test inputs for programs such as compilers. We walk-through a case study of a compiler designed for education and the corresponding problem of generating meaningful test cases to provide to students.

Show full abstract

The prior state-of-the-art solution is a combination of fuzzing and test-case reduction techniques such as variants of delta-debugging. Our key insight is that instead of attempting to minimize convoluted fuzzer-generated test inputs, we can instead grow concise test inputs by construction using a form of iterative deepening. We call this approach Bonsai Fuzzing. Experimental results show that Bonsai Fuzzing can generate test corpora having inputs that are 16--45% smaller in size on average as compared to a fuzz-then-reduce approach, while achieving approximately the same code coverage and fault-detection capability.

View on arXivView PDF

Code Implementations(1)

291JavaScript, JavaJan 16, 20213 years ago

Similar Papers

Cite this paper

@article{vikram2021growing,
  title  = {Growing a Test Corpus with Bonsai Fuzzing},
  author = {Vasudev Vikram and Rohan Padhye and Koushik Sen},
  year   = {2021},
  eprint = {2103.04388},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2103.04388}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2103.04388.svg)](https://codeofpaper.com/paper/2103.04388)

Discussion