Re: [PATCH v4] hfsplus: fix uninit-value by validating catalog record size

From: Deepanshu Kartikey

Date: Fri Feb 20 2026 - 23:44:58 EST


On Wed, Feb 18, 2026 at 4:46 AM Viacheslav Dubeyko
<Slava.Dubeyko@xxxxxxx> wrote:
>
>
> I did run xfstests for the patch. The patch hasn't introduced any new issues.
> Everything looks good.
>

Hi Slava,

Thank you for the review and testing! I'm glad the patch passes xfstests.

I'll send v5 with the minimum size check as suggested by Charalampos.

Regarding your suggestions for future work:

1. **HFS fix**: I'd be happy to investigate and fix the same issue in fs/hfs/.
I'll check if the bug exists there and send a patch.

2. **Generalizing b-tree functionality**: This sounds like an
interesting project!
Let me study the fs/hfs and fs/hfsplus b-tree code to understand the
similarities and come back with some thoughts on how to approach this.

Thanks,
Deepanshu