diff options
| author | Konstantin Komarov <almaz.alexandrovich@paragon-software.com> | 2026-07-02 13:03:30 +0200 |
|---|---|---|
| committer | Konstantin Komarov <almaz.alexandrovich@paragon-software.com> | 2026-07-24 12:44:59 +0200 |
| commit | 71a25f259384c09abd4782fc8ed32f0472646674 (patch) | |
| tree | 7ada58d4ee3c1d763465f15b5da6bc014511bdf1 /tools/perf/scripts/python | |
| parent | 2064bc663f89e61b8681c1fb9d1ce445de72063d (diff) | |
ntfs3: fix boundary check in ntfs_dir_count()
ntfs_dir_emit() skips index entries whose fname does not fit in e->size,
but ntfs_dir_count() still accepted them via de_get_fname() alone.
dir_is_empty() can then disagree with readdir: a malformed directory
appears empty in ls while rmdir fails with ENOTEMPTY.
Factor the fname/key bounds check into de_fname_fits() and use it from
ntfs_dir_emit() and de_countable_fname() so count/readdir share the same
entry acceptance rules.
Signed-off-by: Xixin Liu <liuxixin@kylinos.cn>
Signed-off-by: Konstantin Komarov <almaz.alexandrovich@paragon-software.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
