Re: [PATCH 2/4] fs/hfsplus: Prevent out of bound access in catalog file

2023-04-24 Thread Lidong Chen
BTW, The HFSPLUS_CATKEY_* macros defined in this patch are based on the Technical Note TN1150: https://developer.apple.com/library/archive/technotes/tn/tn1150.html "IMPORTANT: The length of the key varies with the length of the string stored in the nodeName field; it occupies only the numb

Re: [PATCH 3/4] fs/hfsplus: Set grub errno to prevent NULL pointer access

2023-04-24 Thread Lidong Chen
On Apr 20, 2023, at 3:07 PM, Vladimir 'phcoder' Serbinenko wrote: On Thu, Apr 20, 2023 at 8:00 PM Lidong Chen mailto:lidong.c...@oracle.com>> wrote: When an invalid node size is detected in grub_hfsplus_mount(), data pinter is freed. Thus, file->data is not set. The code should also set the