Lune

FSE2023顶会

Statfier: Automated Testing of Static Analyzers via Semantic-Preserving Program Transformations

Huaien Zhang, Yu Pei, Junjie Chen, Shin Hwei Tan

摘要

Static analyzers reason about the behaviors of programs without executing them and report issues when they violate pre-defined desirable properties. One of the key limitations of static analyzers is their tendency to produce inaccurate and incomplete analysis results, i.e., they often generate too many spurious warnings and miss important issues. To help enhance the reliability of a static analyzer, developers usually manually write tests involving input programs and the corresponding expected analysis results for the analyzers. Meanwhile, a static analyzer often includes example programs in its documentation to demonstrate the desirable properties and/or their violations. Our key insight is that we can reuse programs extracted either from the official test suite or documentation and apply semantic-preserving transformations to them to generate variants. We studied the quality of input programs from these two sources and found that most rules in static analyzers are covered by at least one input program, implying the potential of using these programs as the basis for test generation. We present Statfier, a heuristic-based automated testing approach for static analyzers that generates program variants via semantic-preserving transformations and detects inconsistencies between the original program and variants (indicate inaccurate analysis results in the static analyzer). To select variants that are more likely to reveal new bugs, Statfier uses two key heuristics: (1) analysis report guided location selection that uses program locations in the reports produced by static analyzers to perform transformations and (2) structure diversity driven variant selection that chooses variants with different program contexts and diverse types of transformations. Our experiments with five popular static analyzers show that Statfier can find 79 bugs in these analyzers, of which 46 have been confirmed.

问 Lune

几分钟读透这篇 Paper,不用再花一下午。

Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。

已有 10 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。

可以从这些问题问起

Lune 可以查阅

全文 · 引用它的顶会 Paper · 相关的 Paper

获取答案

免费开始,无需绑卡

脉络

  • Interrogation Testing of Program Analyzers for Soundness and Precision Issues 引用了 Understanding and Detecting Annotation-Induced Faults of Static Analyzers
  • Interrogation Testing of Program Analyzers for Soundness and Precision Issues 引用了 Finding and Understanding Defects in Static Analyzers by Constructing Automated Oracles
  • Constraint-Based Test Oracles for Program Analyzers 引用了 Finding and Understanding Defects in Static Analyzers by Constructing Automated Oracles
  • Understanding and Detecting Annotation-Induced Faults of Static Analyzers 引用了 An empirical study on the effectiveness of static C code analyzers for vulnerability detection
  • Understanding and Detecting Annotation-Induced Faults of Static Analyzers 引用了 Context-aware in-process crowdworker recommendation
  • Characterizing and Detecting Program Representation Faults of Static Analysis Frameworks 引用了 Understanding and Detecting Annotation-Induced Faults of Static Analyzers
  • Finding and Understanding Defects in Static Analyzers by Constructing Automated Oracles 引用了 An empirical study on the effectiveness of static C code analyzers for vulnerability detection
  • Finding and Understanding Defects in Static Analyzers by Constructing Automated Oracles 引用了 Context-aware in-process crowdworker recommendation
它引用的引用它的从左到右按年份排列,引用越多,位置越高。

引用它的顶会 Paper10

  1. Finding and Understanding Defects in Static Analyzers by Constructing Automated OraclesWeigang He, Peng Di, Mengli Ming, Chengyu Zhang 等FSE 2024 · 6 次引用
  2. Understanding and Detecting Annotation-Induced Faults of Static AnalyzersHuaien Zhang, Yu Pei, Shuyun Liang, Shin Hwei TanFSE 2024 · 4 次引用
  3. Interrogation Testing of Program Analyzers for Soundness and Precision IssuesDavid Kaindlstorfer, Anastasia Isychev, Valentin Wüstholz, Maria ChristakisASE 2024 · 2 次引用
  4. Constraint-Based Test Oracles for Program AnalyzersMarkus Fleischmann, David Kaindlstorfer, Anastasia Isychev, Valentin Wüstholz 等ASE 2024 · 2 次引用
  5. Characterizing and Detecting Program Representation Faults of Static Analysis FrameworksHuaien Zhang, Yu Pei, Shuyun Liang, Zezhong Xing 等ISSTA 2024 · 2 次引用

它引用的 Paper9

  1. How effective are smart contract analysis tools? evaluating smart contract static analysis tools using bug injectionAsem Ghaleb, Karthik PattabiramanISSTA 2020 · 183 次引用
  2. An empirical study on the effectiveness of static C code analyzers for vulnerability detectionStephan Lipp, Sebastian Banescu, Alexander PretschnerISSTA 2022 · 99 次引用
  3. Finding typing compiler bugsStefanos Chaliasos, Thodoris Sotiropoulos, Diomidis Spinellis, Arthur Gervais 等PLDI 2022 · 36 次引用
  4. Context-aware in-process crowdworker recommendationJunjie Wang, Ye Yang, Song Wang, Yuanzhe Hu 等ICSE 2020 · 23 次引用
  5. Compiler Test-Program Generation via Memoized Configuration SearchJunjie Chen, Chenyao Suo, Jiajun Jiang, Peiqi Chen 等ICSE 2023 · 19 次引用

相关 Paper

  1. Tailoring programs for static analysis via program transformationRijnard van Tonder, Claire Le GouesICSE 2020 · 6 次引用
  2. Learning to Boost Disjunctive Static Bug-FindersYoonseok Ko, Hakjoo OhICSE 2023 · 1 次引用
  3. ECSTATIC: An Extensible Framework for Testing and Debugging Configurable Static AnalysisAustin Mordahl, Zenong Zhang, Dakota Soles, Shiyi WeiICSE 2023 · 7 次引用
  4. Validating static warnings via testing code fragmentsAshwin Kallingal Joshy, Xueyuan Chen, Benjamin Steenhoek, Wei LeISSTA 2021 · 10 次引用
  5. Learning to Reduce False Positives in Analytic Bug DetectorsAnant Kharkar, Roshanak Zilouchian Moghaddam, Matthew Jin, Xiaoyu Liu 等ICSE 2022 · 33 次引用
黄昏的海面,两侧是细线勾勒的悬崖