Correct a int/off_t buffer overflow in getSize() (#468)

This commit is contained in:
Ben RUBSON 2018-02-09 08:07:05 +01:00 committed by GitHub
parent c9d6ec8cff
commit 14a66e248b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -228,7 +228,7 @@ int FileNode::getAttr(struct stat *stbuf) const {
off_t FileNode::getSize() const { off_t FileNode::getSize() const {
Lock _lock(mutex); Lock _lock(mutex);
int res = io->getSize(); off_t res = io->getSize();
return res; return res;
} }