When Long Jumps Fall Short: Control-Flow Tracking and Misuse Detection for Non-local Jumps in C

Michael Schwarz, Julian Erhard, Vesal Vojdani, Simmo Saan, Helmut Seidl

Publikation: Beitrag in Buch/Bericht/KonferenzbandKonferenzbeitragBegutachtung

4 Zitate (Scopus)

Abstract

The C programming language offers setjmp/longjmp as a mechanism for non-local control flow. This mechanism has complicated semantics. As most developers do not encounter it day-To-day, they may be unfamiliar with all its intricacies-leading to subtle programming errors. At the same time, most static analyzers lack proper support, implying that otherwise sound tools miss whole classes of program deficiencies. We propose an approach for lifting existing interprocedural analyses to support setjmp/longjmp, as well as to flag their misuse. To deal with the non-local semantics, our approach leverages side-effecting transfer functions which, when executed, may trigger contributions to extra program points. We showcase our analysis on real-world examples and propose a set of litmus tests for other analyzers.

OriginalspracheEnglisch
TitelSOAP 2023 - Proceedings of the 12th ACM SIGPLAN International Workshop on the State Of the Art in Program Analysis, Co-located with PLDI 2023
Redakteure/-innenPietro Ferrara, Liana Hadarean
Herausgeber (Verlag)Association for Computing Machinery, Inc
Seiten20-26
Seitenumfang7
ISBN (elektronisch)9798400701702
DOIs
PublikationsstatusVeröffentlicht - 6 Juni 2023
Veranstaltung12th ACM SIGPLAN International Workshop on the State Of the Art in Program Analysis, SOAP 2023, co-located with the 44th ACM SIGPLAN International - Orlando, USA/Vereinigte Staaten
Dauer: 17 Juni 202317 Juni 2023

Publikationsreihe

NameSOAP 2023 - Proceedings of the 12th ACM SIGPLAN International Workshop on the State Of the Art in Program Analysis, Co-located with PLDI 2023

Konferenz

Konferenz12th ACM SIGPLAN International Workshop on the State Of the Art in Program Analysis, SOAP 2023, co-located with the 44th ACM SIGPLAN International
Land/GebietUSA/Vereinigte Staaten
OrtOrlando
Zeitraum17/06/2317/06/23

Fingerprint

Untersuchen Sie die Forschungsthemen von „When Long Jumps Fall Short: Control-Flow Tracking and Misuse Detection for Non-local Jumps in C“. Zusammen bilden sie einen einzigartigen Fingerprint.

Dieses zitieren