]> git.proxmox.com Git - mirror_edk2.git/commit - MdeModulePkg/Universal/Disk/UdfDxe/FileSystemOperations.c
MdeModulePkg/UdfDxe: Resolve potential NULL pointer dereference
authorHao Wu <hao.a.wu@intel.com>
Tue, 26 Sep 2017 01:14:08 +0000 (09:14 +0800)
committerHao Wu <hao.a.wu@intel.com>
Wed, 27 Sep 2017 11:09:25 +0000 (19:09 +0800)
commitce9aaba64e07d7e12eb160ae32cde7b3357ce388
tree32a3829ef44f74ac22034789b1f57bb6fc8505aa
parent36d083ef0018b78ea12db1a5f2e8df5336541fea
MdeModulePkg/UdfDxe: Resolve potential NULL pointer dereference

Within function GetAllocationDescriptorLsn():

The call to GetPdFromLongAd() may return NULL and it will be later
dereferenced in GetShortAdLsn().

This commit adds ASSERT to resolve the potential NULL pointer
dereference.

Cc: Ruiyu Ni <ruiyu.ni@intel.com>
Cc: Star Zeng <star.zeng@intel.com>
Cc: Eric Dong <eric.dong@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Hao Wu <hao.a.wu@intel.com>
Reviewed-by: Paulo Alcantara <pcacjr@zytor.com>
MdeModulePkg/Universal/Disk/UdfDxe/FileSystemOperations.c