diff --git a/interfaces/kits/js/src/mod_fs/properties/read_core.cpp b/interfaces/kits/js/src/mod_fs/properties/read_core.cpp index 2099ebce63eb8ca42436d1a78e60305fc5247ad7..5702951ad123527751c36f36a4e1351a5895d7c1 100644 --- a/interfaces/kits/js/src/mod_fs/properties/read_core.cpp +++ b/interfaces/kits/js/src/mod_fs/properties/read_core.cpp @@ -47,6 +47,7 @@ static tuple ValidReadArg(ArrayBuffer &arrayBuffe lengthOp = op.length; offsetOp = op.offset; } + tie(succ, retLen) = FsUtils::GetActualLen(bufLen, 0, lengthOp); if (!succ) { HILOGE("Failed to get actual length");