Skip to content

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