Re: [PATCH master] partitions: efi: fix NULL dereference on corrupted GPT

2024-04-16 Thread Sascha Hauer
On Mon, 15 Apr 2024 07:31:20 +0200, Ahmad Fatoum wrote: > When processing a corrupted GPT, the initial magic check may succeed, > but later partition parsing may terminate unsuccessfully. In such case, > we returned an invalid pointer that happened to be NULL, but didn't do > much about it leadin

[PATCH master] partitions: efi: fix NULL dereference on corrupted GPT

2024-04-14 Thread Ahmad Fatoum
When processing a corrupted GPT, the initial magic check may succeed, but later partition parsing may terminate unsuccessfully. In such case, we returned an invalid pointer that happened to be NULL, but didn't do much about it leading to a NULL pointer dereference. Fix this by explicitly returning