]> git.ipfire.org Git - thirdparty/systemd.git/commit
boot: Drop use of UnpackDevicePath
authorJan Janssen <medhefgo@web.de>
Sun, 29 May 2022 08:33:42 +0000 (10:33 +0200)
committerJan Janssen <medhefgo@web.de>
Thu, 9 Jun 2022 10:50:13 +0000 (12:50 +0200)
commitb04f818417866d2781bd0be7820b506232ecfc2c
treea4efe8d3d5a5755a42b825506f2ffc78e7630e88
parent79a2b916a0dcfe37617caa1010a9f3778cd2fad5
boot: Drop use of UnpackDevicePath

Device paths are a packed data structure and the UEFI spec is clear that
members may be misaligned.

In this case all accesses are aligned except for the signature. We can
simply memcpy it instead of making a whole (aligned) copy of the device
path.
src/boot/efi/disk.c