mirror of https://github.com/acidanthera/audk.git
MdePkg: Add DECLARE_LENGTH opcode of dependency expression
To avoid messy parsing of the Depex section of a Capsule, it would be a lot easier for everyone involved if we preceded the Capsule Depex Section with a length declaration. It provides simple bounds checking to avoid having to parse the op-codes, but in the case of a malformed depex being parsed, avoid other issues which can be messy. REF: UEFI spec 2.10 Table 23.4 Signed-off-by: Yi Li <yi1.li@intel.com> Cc: Michael D Kinney <michael.d.kinney@intel.com> Cc: Liming Gao <gaoliming@byosoft.com.cn> Cc: Zhiguang Liu <zhiguang.liu@intel.com> Reviewed-by: Wei6 Xu <wei6.xu@intel.com> Reviewed-by: Liming Gao <gaoliming@byosoft.com.cn>
This commit is contained in:
parent
9d3fe85fcc
commit
00bf6890a9
|
@ -44,6 +44,7 @@ typedef struct _EFI_FIRMWARE_MANAGEMENT_PROTOCOL EFI_FIRMWARE_MANAGEMENT_PROTOCO
|
|||
#define EFI_FMP_DEP_LT 0x0B
|
||||
#define EFI_FMP_DEP_LTE 0x0C
|
||||
#define EFI_FMP_DEP_END 0x0D
|
||||
#define EFI_FMP_DEP_DECLARE_LENGTH 0x0E
|
||||
|
||||
///
|
||||
/// Image Attribute - Dependency
|
||||
|
|
Loading…
Reference in New Issue