Comparative Analysis of Safety and Security of C and Rust on Raspberry Pi Systems

This research presents a comparative analysis of the safety and security characteristics of C and Rust on Raspberry Pi systems. Using a Raspberry Pi 3 Model B+ running a 64-bit Linux environment, the study evaluates how both programming languages behave under controlled test cases involving common software vulnerabilities and runtime failures. The experiments examine buffer overflow, use-after-free and dangling pointers, integer overflow, format-string vulnerabilities, stack exhaustion, heap allocation, null pointer handling, and thread panic behavior. The study focuses on the differences between C's manual memory management model and Rust's ownership, borrowing, type-safety, and runtime safety mechanisms. Experimental results demonstrate how several vulnerability classes can compile and reach execution in C, while safe Rust prevents or detects many comparable unsafe operations through compile-time checks, explicit APIs, or runtime panics. The research also discusses the limitations of the experimental environment and the implications of adopting Rust for memory-safe systems programming on ARM-based embedded and edge-computing platforms.

Authors

Publication Details

Journal
Zenodo (CERN European Organization for Nuclear Research)
Published
2026-09-17
DOI
https://doi.org/10.5281/zenodo.22809693
Primary Topic
Security and Verification in Computing
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
article

Comparative Analysis of Safety and Security of C and Rust on Raspberry Pi Systems

Gio Rivera
Zenodo (CERN European Organization for Nuclear Research)
Security and Verification in Computing
article

Comparative Analysis of Safety and Security of C and Rust on Raspberry Pi Systems

Gio Rivera
article en

Abstract

This research presents a comparative analysis of the safety and security characteristics of C and Rust on Raspberry Pi systems. Using a Raspberry Pi 3 Model B+ running a 64-bit Linux environment, the study evaluates how both programming languages behave under controlled test cases involving common software vulnerabilities and runtime failures. The experiments examine buffer overflow, use-after-free and dangling pointers, integer overflow, format-string vulnerabilities, stack exhaustion, heap allocation, null pointer handling, and thread panic behavior. The study focuses on the differences between C's manual memory management model and Rust's ownership, borrowing, type-safety, and runtime safety mechanisms. Experimental results demonstrate how several vulnerability classes can compile and reach execution in C, while safe Rust prevents or detects many comparable unsafe operations through compile-time checks, explicit APIs, or runtime panics. The research also discusses the limitations of the experimental environment and the implications of adopting Rust for memory-safe systems programming on ARM-based embedded and edge-computing platforms.

Zenodo (CERN European Organization for Nuclear Research)
Openalex Percentile: Top 8%
Security and Verification in Computing
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Comparative Analysis of Safety and Security of C and Rust on Raspberry Pi Systems — Gio Rivera · Zenodo (CERN European Organization for Nuclear Research) (2026) | TGRS Research Map | TGRS