LocalFileBlockReader reads outside the file length

Description

When buffer size is not the power of 2 and partial caching is disabled, a packet LocalFileBlockReader in LocalFileBlockReader could be outside the file. This is because the mEnd is initialized as the sum of the length and offset, but we did not consider the file length.

Environment

None

Status

Assignee

Yupeng Fu

Reporter

Yupeng Fu

Labels

Components

Fix versions

Affects versions

1.5.0

Priority

Critical
Configure