audk/FmpDevicePkg
Yi Li 0223bdd4e4 FmpDevicePkg: 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: Liming Gao <gaoliming@byosoft.com.cn>
Cc: Michael D Kinney <michael.d.kinney@intel.com>
Cc: Wei6 Xu <wei6.xu@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
..
CapsuleUpdatePolicyDxe FmpDevicePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
FmpDxe FmpDevicePkg: Update code to be more C11 compliant by using __func__ 2023-04-10 14:19:57 +00:00
Include FmpDevicePkg/FmpDxe: Update FmpDeviceCheckImageWithStatus() handling 2022-01-20 01:41:06 +00:00
Library FmpDevicePkg: Add DECLARE_LENGTH opcode of dependency expression 2024-01-19 06:47:46 +00:00
PrivateInclude FmpDevicePkg: Add DECLARE_LENGTH opcode of dependency expression 2024-01-19 06:47:46 +00:00
Test FmpDevicePkg: Add DECLARE_LENGTH opcode of dependency expression 2024-01-19 06:47:46 +00:00
FmpDevicePkg.ci.yaml FmpDevicePkg: CI: Add PrEval entry 2023-10-23 20:17:52 +00:00
FmpDevicePkg.dec FmpDevicePkg: Add FmpDependencyDevice library class and NULL instance 2020-05-15 06:11:44 +00:00
FmpDevicePkg.dsc FmpDevicePkg: Add LOONGARCH64 architecture for EDK2 CI. 2022-10-14 02:16:33 +00:00
FmpDevicePkg.uni FmpDevicePkg: Fix spelling errors 2019-10-23 08:08:08 -07:00
FmpDevicePkgExtra.uni FmpDevicePkg: Replace BSD License with BSD+Patent License 2019-04-09 10:58:00 -07:00