Phying News
Curated security research, vulnerabilities, advisories and tools for practitioners.

Unaligned accesses in C/C++: what, why and solutions to do it properly

Summary

Explains why unaligned memory accesses fail on some CPUs (e.g. ARMv5) and how C/C++ alignment rules interact with pointer casts, then offers portable solutions as a small library.
Published
Collected

original ↗

Related coverage

back