]> git.proxmox.com Git - mirror_edk2.git/commit
EmulatorPkg/PosixFileSystem: Add NULL check on memory allocation
authorShindo, Miki <miki.shindo@intel.com>
Tue, 19 Jul 2022 20:28:26 +0000 (04:28 +0800)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Thu, 21 Jul 2022 06:18:23 +0000 (06:18 +0000)
commit7ef91af84c04b1e5a17631bd1811c9bc1945dfdc
treece68a79a16beed6985f95475233bcb7b40f988a2
parent3b8cee1781c4149c7a762b8a1c8115b635cf4cad
EmulatorPkg/PosixFileSystem: Add NULL check on memory allocation

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

This commit adds NULL check on memory allocation of the size
for FileName in ASCII string format at PosixFileSetInfo().

Signed-off-by: Miki Shindo <miki.shindo@intel.com>
Cc: Andrew Fish <afish@apple.com>
Reviewed-by: Ray Ni <ray.ni@intel.com>
EmulatorPkg/Unix/Host/PosixFileSystem.c