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

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

2023-04-20 Thread Vladimir 'phcoder' Serbinenko
On Thu, Apr 20, 2023 at 8:00 PM Lidong Chen 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 > grub error when that happens to indicate an error and to avoid accessing > the unintialized file