diff options
author | Michael Kinney <michael.d.kinney@intel.com> | 2017-01-07 11:13:32 -0800 |
---|---|---|
committer | Michael Kinney <michael.d.kinney@intel.com> | 2017-01-10 12:35:39 -0800 |
commit | 462a3eba8feaf3716d294111725742ff5aa08488 (patch) | |
tree | c7a6c24e6a8aedaa399eb949402052c1a8f49f7f /EdkShellPkg | |
parent | 0f705029d91559030bfa5f505daca57dcefd1a2e (diff) | |
download | edk2-platforms-462a3eba8feaf3716d294111725742ff5aa08488.tar.xz |
Nt32Pkg/WinNtSimpleFileSystemDxe: Fix ASSERT() parsing '\'
https://bugzilla.tianocore.org/show_bug.cgi?id=331
If Nt32 is built using UEFI Shell from the ShellPkg sources,
an ASSERT() is generated when a single '\' character is
entered at the shell prompt.
The WinNtSimpleFileSystemDxe module GetNextFileNameToken()
function breaks a file path up into tokens, but it does not
handle the case where a FileName ends in a '\' character.
It returns an empty string instead of NULL. The fix is
to set *FileName to NULL if the remaining file path is an
empty string.
Cc: Ruiyu Ni <ruiyu.ni@intel.com>
Cc: Jaben Carsey <jaben.carsey@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com>
Reviewed-by: Jaben Carsey <jaben.carsey@intel.com>
Reviewed-by: Ruiyu Ni <ruiyu.ni@intel.com>
Diffstat (limited to 'EdkShellPkg')
0 files changed, 0 insertions, 0 deletions