Re: [edk2-devel] [PATCH] MdePkg/UefiFileHandleLib: Fix potential NULL dereference

2019-11-03 Thread Liming Gao
onmail.com; Kinney, Michael D >Subject: Re: [edk2-devel] [PATCH] MdePkg/UefiFileHandleLib: Fix potential >NULL dereference > >Reviewed-by: Liming Gao > >>-Original Message- >>From: Marvin Häuser [mailto:marvin.haeu...@outlook.com] >>Sent: Sunday, October 20,

Re: [edk2-devel] [PATCH] MdePkg/UefiFileHandleLib: Fix potential NULL dereference

2019-10-20 Thread Liming Gao
Reviewed-by: Liming Gao >-Original Message- >From: Marvin Häuser [mailto:marvin.haeu...@outlook.com] >Sent: Sunday, October 20, 2019 8:09 PM >To: devel@edk2.groups.io >Cc: vit9...@protonmail.com; Kinney, Michael D >; Gao, Liming >Subject: [PATCH] MdePkg/UefiFileHandleLib: Fix potential N

[edk2-devel] [PATCH] MdePkg/UefiFileHandleLib: Fix potential NULL dereference

2019-10-20 Thread Marvin Häuser
From: Marvin Haeuser REF: https://bugzilla.tianocore.org/show_bug.cgi?id=2293 Move the NULL check in FileHandleGetInfo() to directly after the allocation to prevent potential NULL dereferences. Cc: Michael D Kinney Cc: Liming Gao Signed-off-by: Marvin Haeuser --- MdePkg/Library/UefiFileHand