[edk2-devel] [PATCH 0/2] Add DECLARE_LENGTH opcode of dependency expression

Li, Yi posted 2 patches 4 months, 1 week ago
Failed in applying to current master (apply log)
There is a newer version of this series
.../FmpDependencyLib/FmpDependencyLib.c       | 35 ++++++++
.../PrivateInclude/FmpLastAttemptStatus.h     |  3 +
.../EvaluateDependencyUnitTest.c              | 84 ++++++++++++++++---
MdePkg/Include/Protocol/FirmwareManagement.h  | 29 +++----
4 files changed, 125 insertions(+), 26 deletions(-)
[edk2-devel] [PATCH 0/2] Add DECLARE_LENGTH opcode of dependency expression
Posted by Li, Yi 4 months, 1 week ago
Mantis: https://mantis.uefi.org/mantis/view.php?id=2025

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
Syntax
DECLARE_LENGTH <32-bit Length>
Description
Declares an 32-bit byte length of the entire dependency expression.
Behaviors and Restrictions
This opcode must be the first one in a dependency expression.

Yi Li (2):
  MdePkg: Add DECLARE_LENGTH opcode of dependency expression
  FmpDevicePkg: Add DECLARE_LENGTH opcode of dependency expression

 .../FmpDependencyLib/FmpDependencyLib.c       | 35 ++++++++
 .../PrivateInclude/FmpLastAttemptStatus.h     |  3 +
 .../EvaluateDependencyUnitTest.c              | 84 ++++++++++++++++---
 MdePkg/Include/Protocol/FirmwareManagement.h  | 29 +++----
 4 files changed, 125 insertions(+), 26 deletions(-)

-- 
2.42.0.windows.2



-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#112686): https://edk2.groups.io/g/devel/message/112686
Mute This Topic: https://groups.io/mt/103257906/1787277
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org]
-=-=-=-=-=-=-=-=-=-=-=-