Skip to content

Commit

Permalink
ntfs_file::read_nonresident_attribute: avoid assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
maharmstone committed Oct 4, 2021
1 parent 6fba046 commit 527e13b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/ntfs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,9 @@ buffer_t ntfs_file::read_nonresident_attribute(uint64_t offset, uint32_t length,
else
buf_end = length;

if (buf_end == buf_start)
continue;

read_start = m.lcn * cluster_size;

if (offset > m.vcn * cluster_size)
Expand Down

0 comments on commit 527e13b

Please sign in to comment.