]> sourceware.org Git - newlib-cygwin.git/commit
Cygwin: posix_fallocate(3): fix offset and length sanity check
authorCorinna Vinschen <corinna@vinschen.de>
Tue, 5 Dec 2023 21:08:01 +0000 (22:08 +0100)
committerCorinna Vinschen <corinna@vinschen.de>
Tue, 5 Dec 2023 21:19:05 +0000 (22:19 +0100)
commit295bef07d6bd18cd58746e46b400faadfb54b712
tree83904dce62b9457b266eedc2c5ca084b51aa7689
parent14d786873c7db25d37b74d8c47ad8f3cbbe1883b
Cygwin: posix_fallocate(3): fix offset and length sanity check

- len must not be <= 0
- offset + len must not exceed off_t (max. file size)

Fixes: 7636b5859062 ("* autoload.cc (NtSetInformationFile): Define.")
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
winsup/cygwin/syscalls.cc
This page took 0.029847 seconds and 5 git commands to generate.