diff options
author | Rich Felker <dalias@aerifal.cx> | 2024-09-13 17:08:11 -0400 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2024-09-13 17:11:00 -0400 |
commit | 4ca8c267768e371930ef7ec9593a5f8b44a7f810 (patch) | |
tree | ddf334828582818df54b83ec9d7b6f07c5705f51 /src/linux/cap.c | |
parent | 251cbb6366403a056b39638264932c82d18ec610 (diff) | |
download | musl-4ca8c267768e371930ef7ec9593a5f8b44a7f810.tar.gz musl-4ca8c267768e371930ef7ec9593a5f8b44a7f810.tar.xz musl-4ca8c267768e371930ef7ec9593a5f8b44a7f810.zip |
statx: fix uninitialized attributes/mask in fallback path
commit b817541f1cfd38e4b81257b3215e276ea9d0fc61 introduced statx with a fallback using fstatat, but failed to fill in stx_rdev_major/minor and stx_attributes[_mask]. the rdev omission has been addressed separately. rather than explicitly zeroing the attributes and their mask, pre-fill the entire structure with zeros. this will also cover the padding adjacent to stx_mode, in case it's ever used in the future. explicit zeroing of stx_btime is removed since, with this change, it will already be pre-zeroed. as an aside, zeroing it was not strictly necessary, since STATX_BASIC_STATS does not include STATX_BTIME and thus does not indicate any validity for it.
Diffstat (limited to 'src/linux/cap.c')
0 files changed, 0 insertions, 0 deletions