arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2306.04281cs.SE
收藏

HornFuzz:对 CHC 求解器进行模糊测试

HornFuzz: Fuzzing CHC solvers

Anzhela Sukhanova, Valentyn Sobol

AI总结:

针对缺乏 CHC 求解器专用模糊测试工具的问题,提出基于蜕变测试的变异灰盒工具 HornFuzz,并在 Spacer 中发现多个严重缺陷。

摘要:

许多先进的程序分析与验证方法都建立在求解约束 Horn 子句(Constrained Horn Clauses,CHC)系统之上。测试 CHC 求解器非常重要,因为其工作的正确性决定了被分析程序中的缺陷会被发现还是被遗漏。模糊测试是一种成熟且高效的自动化软件测试方法:分析程序对随机输入数据的反应。目前,尚无面向 CHC 求解器的模糊测试工具,而面向 SMT 求解器的模糊测试工具在测试 CHC 求解器时效率不高,原因是它们没有考虑 CHC 的特性。本文提出 HornFuzz,这是一种基于变异的灰盒模糊测试技术,基于蜕变测试思想检测 CHC 求解器中的缺陷。我们在性能最高的 CHC 求解器之一 Spacer 上评估了该模糊测试工具,并在 Spacer 中发现了若干缺陷。特别是,部分发现的问题非常严重,需要通过对求解器进行重大修改才能修复。

英文摘要:

Many advanced program analysis and verification methods are based on solving systems of Constrained Horn Clauses (CHC). Testing CHC solvers is very important, as correctness of their work determines whether bugs in the analyzed programs are detected or missed. One of the well-established and efficient methods of automated software testing is fuzzing: analyzing the reactions of programs to random input data. Currently, there are no fuzzers for CHC solvers, and fuzzers for SMT solvers are not efficient in CHC solver testing, since they do not consider CHC specifics. In this paper, we present HornFuzz, a mutation-based gray-box fuzzing technique for detecting bugs in CHC solvers based on the idea of metamorphic testing. We evaluated our fuzzer on one of the highest performing CHC solvers, Spacer, and found a handful of bugs in Spacer. In particular, some discovered problems are so serious that they require fixes with significant changes to the solver.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑