]> git.ipfire.org Git - thirdparty/systemd.git/commit
btrfs-util: apparently btrfs ioctls return unaligned data. deal with it. 31284/head
authorLennart Poettering <lennart@poettering.net>
Mon, 12 Feb 2024 11:50:36 +0000 (12:50 +0100)
committerLennart Poettering <lennart@poettering.net>
Mon, 12 Feb 2024 14:35:15 +0000 (15:35 +0100)
commit801bf40c3b3c498b09748fe133d6676dbaa0913b
tree8ce2ca251662759d32162c285bd0b6342159d4be
parente5c41c6138a6f0fe1c47c0a1db15ec3113622492
btrfs-util: apparently btrfs ioctls return unaligned data. deal with it.

Kinda sad, that interfaces like this exist in 2024. But let's deal with
it: before we access "struct btrfs_ioctl_search_header" let's copy it
out, and access it only in the aligned copy.

Fixes: #31282
src/shared/btrfs-util.c