Re: [PATCH v2] ntfs: fix use-after-free in ntfs_ucsncmp()

From: chenxiaosong (A)
Date: Fri Jul 08 2022 - 23:14:46 EST


在 2022/7/9 8:54, Hawkins Jiawei 写道:> In my opinion, name_length field just means the number of characters,
yet each character is a ntfschar type. So name should be
name_length * sizeof(ntfschar) bytes. The example is at
https://elixir.bootlin.com/linux/v5.19-rc5/source/fs/ntfs/attrib.c#L1667

Yes, thank you for your reply, I will send v3 patch.