[all-commits] [llvm/llvm-project] ca80ee: [lldb][AArch64][Linux] Use memcpy when serialising...
David Spickett via All-commits
all-commits at lists.llvm.org
Tue Jul 21 01:00:57 PDT 2026
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: ca80eecf34d041e55b60e202bce1c606288ffa71
https://github.com/llvm/llvm-project/commit/ca80eecf34d041e55b60e202bce1c606288ffa71
Author: David Spickett <david.spickett at arm.com>
Date: 2026-07-21 (Tue, 21 Jul 2026)
Changed paths:
M lldb/source/Plugins/Process/Linux/NativeRegisterContextLinux_arm64.cpp
Log Message:
-----------
[lldb][AArch64][Linux] Use memcpy when serialising data (#210710)
In few places we are reinterpreting raw bytes as typed data. This works
but is undefined behaviour if the address being used isn't at the same
alignment as the target type.
It likely has always been because we've got 4 and 8 byte types and 4 or
8 byte registers. However I prefer to use memcpy anyway to be safe.
m_sve_state is a single byte but for consistency I'm using memcpy for it
also.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list