audk/MdePkg
Yi Li 00bf6890a9 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>
2024-01-19 06:47:46 +00:00
..
Include MdePkg: Add DECLARE_LENGTH opcode of dependency expression 2024-01-19 06:47:46 +00:00
Library MdePkg/BaseLib: Fix boot DxeCore hang on riscv platform 2024-01-11 15:19:26 +00:00
Test MdePkg/Test: Add google tests for BaseLib 2023-12-03 02:37:26 +00:00
MdeLibs.dsc.inc MdePkg/MdeLibs.dsc.inc: Add SafeIntLib instance 2023-12-20 02:30:56 +00:00
MdePkg.ci.yaml MdePkg: CI: Add PrEval entry 2023-10-23 20:17:52 +00:00
MdePkg.dec MdePkg.dec: RISC-V: Define override bit for Sstc extension 2024-01-11 12:07:42 +00:00
MdePkg.dsc MdePkg: add SBI-based SerialPortLib for RISC-V 2023-05-17 23:47:20 +00:00
MdePkg.uni MdePkg: Utilize Cache Management Operations Implementation For RISC-V 2023-12-19 12:48:14 +00:00
MdePkgExtra.uni MdePkg: Replace BSD License with BSD+Patent License 2019-04-09 10:58:13 -07:00