We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent afbc18b commit 79b9d18Copy full SHA for 79b9d18
tensorflow_io/core/filesystems/dfs/dfs_filesystem.cc
@@ -55,7 +55,7 @@ void Cleanup(TF_RandomAccessFile* file) {
55
int64_t Read(const TF_RandomAccessFile* file, uint64_t offset, size_t n,
56
char* ret, TF_Status* status) {
57
auto dfs_file = static_cast<DFSRandomAccessFile*>(file->plugin_file);
58
- if (offset > dfs_file->file_size) {
+ if (offset >= dfs_file->file_size) {
59
TF_SetStatus(status, TF_OUT_OF_RANGE, "");
60
return -1;
61
}
0 commit comments