]> git.proxmox.com Git - mirror_edk2.git/commit
MdeModulePkg/UdfDxe: Content check for 'File' in ResolveSymlink()
authorHao Wu <hao.a.wu@intel.com>
Tue, 30 Oct 2018 01:11:57 +0000 (09:11 +0800)
committerHao Wu <hao.a.wu@intel.com>
Wed, 31 Oct 2018 00:57:04 +0000 (08:57 +0800)
commitbfb8c64cbf6a4604b1a69de8e274cce7f0a678dc
tree636635872cc6945b1989b0ae95cbe1ffdcdf7952
parent542b03d0a090d10d39da79a881787cbb013f1754
MdeModulePkg/UdfDxe: Content check for 'File' in ResolveSymlink()

REF:https://bugzilla.tianocore.org/show_bug.cgi?id=1279

The content within 'File' is the output data for ResolveSymlink(). This
commit will add checks to ensure the content in 'File' is valid.
Otherwise, possible null pointer dereference issue will occur during the
subsequent usage of the data returned by ResolveSymlink().

Cc: Ruiyu Ni <ruiyu.ni@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Hao Wu <hao.a.wu@intel.com>
Reviewed-by: Paulo Alcantara <palcantara@suse.de>
Reviewed-by: Star Zeng <star.zeng@intel.com>
Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>
MdeModulePkg/Universal/Disk/UdfDxe/FileSystemOperations.c