Lune

ASPLOS2024Top-tier venue

UBFuzz: Finding Bugs in Sanitizer Implementations

Shaohua Li, Zhendong Su

Abstract

In this paper, we propose a testing framework for validating sanitizer implementations in compilers. Our core components are (1) a program generator specifically designed for producing programs containing undefined behavior (UB), and (2) a novel test oracle for sanitizer testing. The program generator employs Shadow Statement Insertion, a general and effective approach for introducing UB into a valid seed program. The generated UB programs are subsequently utilized for differential testing of multiple sanitizer implementations. Nevertheless, discrepant sanitizer reports may stem from either compiler optimization or sanitizer bugs. To accurately determine if a discrepancy is caused by sanitizer bugs, we introduce a new test oracle called crash-site mapping.

We have incorporated our techniques into UBfuzz, a practical tool for testing sanitizers. Over a five-month testing period, UBfuzz successfully found 31 bugs in both GCC and LLVM sanitizers. These bugs reveal the serious false negative problems in sanitizers, where certain UBs in programs went unreported. This research paves the way for further investigation in this crucial area of study.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

11 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Janus: Detecting Rendering Bugs in Web Browsers via Visual Delta Consistency cites Random testing for C and C++ compilers with YARPGen
  • Boosting Compiler Testing by Injecting Real-World Code cites Random testing for C and C++ compilers with YARPGen
  • Interleaving Large Language Models for Compiler Testing cites Boosting Compiler Testing by Injecting Real-World Code
  • Interleaving Large Language Models for Compiler Testing cites Random testing for C and C++ compilers with YARPGen
  • Unveiling Compiler Faults via Attribute-Guided Compilation Space Exploration cites Debug information validation for optimized code
  • Unveiling Compiler Faults via Attribute-Guided Compilation Space Exploration cites Finding missed optimizations through the lens of dead code elimination
  • Unveiling Compiler Faults via Attribute-Guided Compilation Space Exploration cites Boosting Compiler Testing by Injecting Real-World Code
  • Unveiling Compiler Faults via Attribute-Guided Compilation Space Exploration cites Random testing for C and C++ compilers with YARPGen
  • Optimization-Directed Compiler Fuzzing for Continuous Translation Validation cites Boosting Compiler Testing by Injecting Real-World Code
  • Optimization-Directed Compiler Fuzzing for Continuous Translation Validation cites Random testing for C and C++ compilers with YARPGen
  • SANRAZOR: Reducing Redundant Sanitizer Checks in C/C++ Programs cites FuZZan: Efficient Sanitizer Metadata Design for Fuzzing
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers11

  1. Boosting Compiler Testing by Injecting Real-World CodeShaohua Li, Theodoros Theodoridis, Zhendong SuPLDI 2024 · 24 citations
  2. Unveiling Compiler Faults via Attribute-Guided Compilation Space ExplorationJiangchang Wu, Yibiao Yang, Maolin Sun, Yuming ZhouUSENIX ATC 2025 · 6 citations
  3. Optimization-Directed Compiler Fuzzing for Continuous Translation ValidationJaeseong Kwon, Bongjun Jang, Juneyoung Lee, Kihong HeoPLDI 2025 · 5 citations
  4. Interleaving Large Language Models for Compiler TestingYunbo Ni, Shaohua LiOOPSLA 2025 · 4 citations
  5. Janus: Detecting Rendering Bugs in Web Browsers via Visual Delta ConsistencyChijin Zhou, Quan Zhang, Bingzhou Qian, Yu JiangICSE 2025 · 2 citations

Builds on10

  1. Random testing for C and C++ compilers with YARPGenVsevolod Livinskii, Dmitry Babokin, John RegehrOOPSLA 2020 · 140 citations
  2. FuZZan: Efficient Sanitizer Metadata Design for FuzzingYuseok Jeon, Wookhyun Han, Nathan Burow, Mathias PayerUSENIX ATC 2020 · 52 citations
  3. Finding missed optimizations through the lens of dead code eliminationTheodoros Theodoridis, Manuel Rigger, Zhendong SuASPLOS 2022 · 48 citations
  4. SANRAZOR: Reducing Redundant Sanitizer Checks in C/C++ ProgramsJiang Zhang, Shuai Wang, Manuel Rigger, Pinjia He et al.OSDI 2021 · 38 citations
  5. Debug information validation for optimized codeYuanbo Li, Shuo Ding, Qirun Zhang, Davide ItalianoPLDI 2020 · 30 citations

Related papers

  1. Don't Look UB: Exposing Sanitizer-Eliding Compiler OptimizationsRaphael Isemann, Cristiano Giuffrida, Herbert Bos, Erik van der Kouwe et al.PLDI 2023 · 5 citations
  2. CombiSan: Unifying Software Sanitizers for Comprehensive FuzzingMatteo Marini, Floris Gorter, Daniele Cono D'Elia, Cristiano GiuffridaUSENIX Security 2026
  3. Finding Unstable Code via Compiler-Driven Differential TestingShaohua Li, Zhendong SuASPLOS 2023 · 19 citations
  4. WBSan: WebAssembly Bug Detection for Sanitization and Binary-Only FuzzingXiao Wu, Junzhou He, Liyan Huang, Cai Fu et al.WWW 2025 · 5 citations
  5. Sand: Decoupling Sanitization from Fuzzing for Low OverheadZiqiao Kong, Shaohua Li, Heqing Huang, Zhendong SuICSE 2025 · 1 citation
Dusk over the sea between two cliffs drawn in fine vertical lines