Skip to content

Commit 0de13a9

Browse files
committed
Convert fallocate's length to off_t too.
1 parent 5dbcf91 commit 0de13a9

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/backend/libc/fs/syscalls.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1739,6 +1739,7 @@ pub(crate) fn fallocate(
17391739

17401740
// ESP-IDF and Vita don't support 64-bit offsets, for example.
17411741
let offset = offset.try_into().map_err(|_| io::Errno::OVERFLOW)?;
1742+
let len = len.try_into().map_err(|_| io::Errno::OVERFLOW)?;
17421743

17431744
#[cfg(any(linux_kernel, target_os = "fuchsia"))]
17441745
unsafe {

0 commit comments

Comments
 (0)