Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix NTFS index record processing #2851

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open

Conversation

NBojic
Copy link

@NBojic NBojic commented Jul 26, 2023

Proposed fix for NTFS index entry processing in function "ntfs_dir_open_meta", fixes #2735.

  • Function "ntfs_dir_open_meta" now checks for each index record whether it is active or not by reading the bitmap attribute. "ntfs_dir_open_meta" scans a big buffer from start to end in a for-loop and looks for index records. The fix uses the current parsing offset from the big for-loop to find out which bit of the bitmap is associated with the index record.
  • "ntfs_dir_open_meta" calls function "ntfs_proc_idxentry" to process an index entry. "ntfs_proc_idxentry" takes argument "a_is_del". The fix sets "a_is_del" to 1 if the current index entry corresponds to an inactive index record.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

NTFS: non-existing file (moved or deleted) is shown as regular allocated file
1 participant