Fix reading extents file if not start from the beginning of a extent.

If current position is not the beginning of a extent, it will read past
current extent length.

Bug: 24478450
Change-Id: I53e4f3e8257e80732280e68647ec89b5b604c3a3
TEST: Added a unittest.
2 files changed