Back to search

University of South Florida

Preventing Variadic Function Attacks Through Argument Width Counting

Abstract

dc:description

Format String attacks, first noted in June 2000 [1], are a type of attack in which anadversary has control of the string argument (the format string) passed to a string format function (such as printf). Such control allows the attacker to read and write arbitrary program memory. To prevent these attacks, various methodologies have been proposed, each with their own costs and benefits. I present a novel solution to this problem through argument width counting, ensuring that such format functions cannot access stack memory beyond the space where arguments were placed. Additionally, I show how this approach can be expanded to all variadic functions, and demonstrate an implementation of this approach within a C compiler.

Degree

thesis:*
Name thesis:degree_name
MS in Computer Engineering (M.S.C.P.)
Level thesis:degree_level
Thesis
Discipline thesis:degree_discipline
Computer Science and Engineering
Grantor
University of South Florida
Year dc:date
2022

Author and committee

dc:creator, dc:contributor.*
Author dc:creator
  • Ward, Brennan
Contributors dc:contributor
  • Jay Ligatti, Ph.D.
  • Mehran Mozaffari Kermani, Ph.D.
  • Yao Liu, Ph.D.

Subjects

dc:subject × 5

Identifiers

dc:identifier.*
Repository record dc:identifier
https://digitalcommons.usf.edu/etd/9828

Chain of custody

source
Harvested from
University of South Florida
Base URL
digitalcommons.usf.edu/do/oai/
Last updated
2026-11-19
Source record
OAI-PMH GetRecord
citation

Ward, Brennan. Preventing Variadic Function Attacks Through Argument Width Counting. Thesis thesis, University of South Florida, 2022. https://digitalcommons.usf.edu/etd/9828