Lune

ISSTA2025Top-tier venue

Adding Spatial Memory Safety to EDK II through Checked C (Experience Paper)

Sourag Cherupattamoolayil, Arunkumar Bhattar, Connor Glosner, Aravind Machiry

Abstract

Embedded software, predominantly written in C, is prone to memory corruption vulnerabilities due to spatial memory issues. Although various memory safety techniques exist, they are often unsuitable for embedded systems due to resource constraints and a lack of standardized OS support. Checked C, a backward-compatible, memory-safe C dialect, offers a potential solution by using pointer annotations for runtime checks to enhance spatial memory safety with minimal overhead. This paper provides the first experience report of porting EDK2 (an open-source UEFI implementation), an exemplary embedded codebase to Checked C, highlighting challenges and providing insights into applying Checked C to similar embedded systems. We also provide an enhanced automated annotation tool e3c, which improves the conversion rate by 25%, enabling easier conversion to Checked C.

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.

1 top-tier paper has 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

  • Ownership Guided C to Rust Translation cites C to checked C by 3c
  • Ownership Guided C to Rust Translation cites Translating C to safer Rust
  • Aliasing Limits on Translating C to Safe Rust cites C to checked C by 3c
  • Aliasing Limits on Translating C to Safe Rust cites Translating C to safer Rust
  • C to checked C by 3c cites Translating C to safer Rust
  • C to checked C by 3c cites SoK: Sanitizing for Security
  • SoK: All You Ever Wanted to Know About Bootloader Security but Were Afraid to Ask cites SoK: Sanitizing for Security
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers1

  1. SoK: All You Ever Wanted to Know About Bootloader Security but Were Afraid to AskConnor Glosner, Aravind MachiryS&P 2026

Builds on11

  1. SoK: Sanitizing for SecurityDokyung Song, Julian Lettner, Prabhu Rajasekaran, Yeoul Na et al.S&P 2019 · 196 citations
  2. Translating C to safer RustMehmet Emre, Ryan Schroeder, Kyle Dewey, Ben HardekopfOOPSLA 2021 · 60 citations
  3. Ownership Guided C to Rust TranslationHanliang Zhang, Cristina David, Yijun Yu, Meng WangCAV 2023 · 37 citations
  4. Aliasing Limits on Translating C to Safe RustMehmet Emre, Peter Boyland, Aesha Parekh, Ryan Schroeder et al.OOPSLA 2023 · 32 citations
  5. C to checked C by 3cAravind Machiry, John H. Kastner, Matt McCutchen, Aaron Eline et al.OOPSLA 2022 · 20 citations

Related papers

  1. Towards Reliable Spatial Memory Safety for Embedded Software by Combining Checked C with Concolic TestingSören Tempel, Vladimir Herdt, Rolf DrechslerDAC 2021 · 2 citations
  2. LLM Assistance for Memory SafetyJ. Nausheen Mohammed, Akash Lal, Aseem Rastogi, Rahul Sharma et al.ICSE 2025 · 4 citations
  3. Fat Pointers for Temporal Memory Safety of CJie Zhou, John Criswell, Michael HicksOOPSLA 2023 · 17 citations
  4. Low-Cost Privilege Separation with Compile Time Compartmentalization for Embedded SystemsArslan Khan, Dongyan Xu, Dave Jing TianS&P 2023
  5. Look Before You Access: Efficient Heap Memory Safety for Embedded Systems on ARMv8-MJeonghwan Kang, Jaeyeol Park, Jiwon Seo, Donghyun KwonDAC 2024 · 1 citation
Dusk over the sea between two cliffs drawn in fine vertical lines