Back to search

Cal Poly

Exploiting Compiler-Introduced Vulnerabilities in C: A Cross-Compiler and Cross-Architecture Analysis of Undefined Behavior

Abstract

dc:description.abstract

Compilers are a critical component in generating secure software across engineering disciplines. However, languages like C that permit undefined behavior introduce a fundamental tension between the compiler’s interpretation of undefined behavior and the security of the generated code. This tension can result in security vulnerabilities that, from the programmer's perspective, are ``created'' by the compiler. The widespread use of these languages, combined with the complexity of modern optimizations and limited developer visibility into compiler behavior, makes these vulnerabilities both pervasive and difficult to detect. Building on prior work, this thesis refines a dataset of C code snippets that exhibit Compiler-Introduced Security Bugs (CISB) to systematically explore how different compilers (Clang and GCC) and different target architectures (x86-64, ARMv8-A) generate security bugs based on undefined behavior. A detailed case study further demonstrates how an adversary could exploit binaries containing CISB depending on what compiler was used. This work provides insight into how compiler and software developers can bridge the security gap by highlighting specific instances and preconditions of undefined behavior where this divide breaks down.

Degree

thesis:*
Name thesis:degree_name
MS in Computer Science
Discipline thesis:degree_discipline
Computer Science

Author and committee

dc:creator, dc:contributor.*
Author dc:creator
  • McCutchen, Erik
Contributors dc:contributor
  • Bruce DeBruhl
  • Computer Science
  • College of Engineering

Subjects

dc:subject × 8

Identifiers

dc:identifier.*
Repository record dc:identifier
https://digitalcommons.calpoly.edu/theses/3142

Chain of custody

source
Harvested from
Cal Poly
Base URL
digitalcommons.calpoly.edu/do/oai/
Last updated
2026-11-19
Source record
OAI-PMH GetRecord
citation

McCutchen, Erik. Exploiting Compiler-Introduced Vulnerabilities in C: A Cross-Compiler and Cross-Architecture Analysis of Undefined Behavior. https://digitalcommons.calpoly.edu/theses/3142