Skip to content
Commit 2f139829 authored by Miklos Szeredi's avatar Miklos Szeredi
Browse files

fuse: don't overflow LLONG_MAX with end offset



Handle the special case of fuse_readpages() wanting to read the last page
of a hugest file possible and overflowing the end offset in the process.

This is basically to unbreak xfstests:generic/525 and prevent filesystems
from doing bad things with an overflowing offset.

Reported-by: default avatarXiao Yang <ice_yangxiao@163.com>
Signed-off-by: default avatarMiklos Szeredi <mszeredi@redhat.com>
parent f658adee
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment