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 bugs and limitations in NTFS utilities encountered with deep paths (over 20 levels) #9

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

Conversation

teliseo
Copy link

@teliseo teliseo commented Oct 12, 2021

This affects ntfscluster and ntfsmove.

  • Don't output the path if utils_inode_get_name() returns an error, which
    previously would output an uninitialized string for deep paths, producing
    random garbage.

  • If the path depth limit is encountered, utils_inode_get_name() now returns
    a partial path beginning with ".../" instead of an error code.

  • Increase utils_inode_get_name()'s path depth limit from 20 to 40.

  • Always free temporary memory, previously lost for deep paths.

Arguably, there shouldn't be a small fixed depth limit, but another means of loop detection, but I'm not inclined to fix and test this properly.

…s (over 20 levels)

This affects ntfscluster and ntfsmove.

* Don't output the path if utils_inode_get_name() returns an error, which
  previously would output an uninitialized string for deep paths, producing
  random garbage.

* If the path depth limit is encountered, utils_inode_get_name() now returns
  a partial path beginning with ".../" instead of an error code.

* Increase utils_inode_get_name()'s path depth limit from 20 to 40.

* Always free temporary memory, previously lost for deep paths.
@youngjun-89 youngjun-89 mentioned this pull request Aug 29, 2022
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.

1 participant