mirror of https://github.com/acidanthera/audk.git
MdeModulePkg/UdfDxe: Check 'Component Type' within a Path Component
REF:https://bugzilla.tianocore.org/show_bug.cgi?id=1279 According to the ECMA-167 standard (3rd Edition - June 1997), Section 14.16.1.1, valid values are 1 to 5. All other values will be treated as a corrupted volume. This commit will add such check within function 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>
This commit is contained in:
parent
a0f01e8a22
commit
542b03d0a0
|
@ -2257,6 +2257,13 @@ ResolveSymlink (
|
|||
}
|
||||
FileName[Index] = L'\0';
|
||||
break;
|
||||
default:
|
||||
//
|
||||
// According to the ECMA-167 standard (3rd Edition - June 1997), Section
|
||||
// 14.16.1.1, all other values are reserved.
|
||||
//
|
||||
Status = EFI_VOLUME_CORRUPTED;
|
||||
goto Error_Find_File;
|
||||
}
|
||||
|
||||
//
|
||||
|
|
Loading…
Reference in New Issue