mirror of
https://git.code.sf.net/p/ntfs-3g/ntfs-3g.git
synced 2024-12-12 03:15:40 +08:00
ntfs_readdir(): fix reading dirs over 600,000 files (GeorgeK, Szaka)
This commit is contained in:
parent
d6f73c80e5
commit
c38e349117
@ -883,6 +883,7 @@ find_next_index_buffer:
|
||||
if (bmp_buf_pos >> 3 < bmp_buf_size)
|
||||
continue;
|
||||
/* Read next chunk from the index bitmap. */
|
||||
bmp_buf_pos = 0;
|
||||
if ((bmp_pos >> 3) + bmp_buf_size > bmp_na->data_size)
|
||||
bmp_buf_size = bmp_na->data_size - (bmp_pos >> 3);
|
||||
br = ntfs_attr_pread(bmp_na, bmp_pos >> 3, bmp_buf_size, bmp);
|
||||
|
Loading…
Reference in New Issue
Block a user