diff options
author | Marvin Haeuser <mhaeuser@outlook.de> | 2019-10-20 20:08:31 +0800 |
---|---|---|
committer | Liming Gao <liming.gao@intel.com> | 2019-11-04 08:52:07 +0800 |
commit | 1009b59b6525c16724fe2684c344a6359af28b55 (patch) | |
tree | a9cde1b0734ab336918116935c74e9831b0ddb92 /BaseTools/Source/Python | |
parent | 787c4baace1c0c49fa1628990402be8997294d17 (diff) | |
download | edk2-1009b59b6525c16724fe2684c344a6359af28b55.tar.gz edk2-1009b59b6525c16724fe2684c344a6359af28b55.tar.bz2 edk2-1009b59b6525c16724fe2684c344a6359af28b55.zip |
MdePkg/UefiFileHandleLib: Fix potential NULL dereference
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 <michael.d.kinney@intel.com>
Cc: Liming Gao <liming.gao@intel.com>
Signed-off-by: Marvin Haeuser <mhaeuser@outlook.de>
Reviewed-by: Liming Gao <liming.gao@intel.com>
Diffstat (limited to 'BaseTools/Source/Python')
0 files changed, 0 insertions, 0 deletions