]> git.proxmox.com Git - mirror_edk2.git/commit
MdePkg-BaseLib: Fix PathCleanUpDirectories() issue with "\\..\\.."
authorJim.Dailey@dell.com <Jim.Dailey@dell.com>
Fri, 5 Oct 2018 19:14:56 +0000 (03:14 +0800)
committerRuiyu Ni <ruiyu.ni@intel.com>
Wed, 24 Oct 2018 05:36:35 +0000 (13:36 +0800)
commitb08b045ca9ab46f335d2edc21eeea5340a1aea6b
tree0c7e6da96fd638e7b409ea53927e936894e86035
parentadd1310df55eede2f52f44a021802831c683577d
MdePkg-BaseLib: Fix PathCleanUpDirectories() issue with "\\..\\.."

Replace multiple, consecutive "\" characters prior to other processing
involving "\" characters.  This fixes an issue where "\\..\\..",
"//..//..", and similar input paths are not cleaned properly.

Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Jim Dailey <jim_dailey@dell.com>
Reviewed-by: Ruiyu Ni <Ruiyu.ni@Intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
MdePkg/Library/BaseLib/FilePaths.c