summaryrefslogtreecommitdiff
path: root/src/unistd/ftruncate.c
diff options
context:
space:
mode:
authorSamuel Holland <samuel@sholland.org>2019-07-20 23:52:26 -0500
committerRich Felker <dalias@aerifal.cx>2019-07-21 00:58:10 -0400
commit0ce49d0a301b4142741b32773492af90f66ed3ca (patch)
tree4206ee87d08bd9705797d32b2d883d85d3ba837b /src/unistd/ftruncate.c
parente53a91da582be156487daae39ab675e1fcb1848d (diff)
downloadmusl-0ce49d0a301b4142741b32773492af90f66ed3ca.tar.gz
musl-0ce49d0a301b4142741b32773492af90f66ed3ca.tar.bz2
musl-0ce49d0a301b4142741b32773492af90f66ed3ca.tar.xz
musl-0ce49d0a301b4142741b32773492af90f66ed3ca.zip
use the correct stat structure in the fstat path
commit 01ae3fc6d48f4a45535189b7a6db286535af08ca modified fstatat to translate the kernel's struct stat ("kstat") into the libc struct stat. To do this, it created a local kstat object, and copied its contents into the user-provided object. However, the commit neglected to update the fstat compatibility path and its fallbacks. They continued to pass the user-supplied object to the kernel, later overwiting it with the uninitialized memory in the local temporary.
Diffstat (limited to 'src/unistd/ftruncate.c')
0 files changed, 0 insertions, 0 deletions