Branch: refs/heads/master
  Home:   https://github.com/tianocore/edk2
  Commit: 00bf6890a9c63692215d690b3e00454dbe21b71c
      
https://github.com/tianocore/edk2/commit/00bf6890a9c63692215d690b3e00454dbe21b71c
  Author: Yi Li <[email protected]>
  Date:   2024-01-19 (Fri, 19 Jan 2024)

  Changed paths:
    M MdePkg/Include/Protocol/FirmwareManagement.h

  Log Message:
  -----------
  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 <[email protected]>

Cc: Michael D Kinney <[email protected]>
Cc: Liming Gao <[email protected]>
Cc: Zhiguang Liu <[email protected]>
Reviewed-by: Wei6 Xu <[email protected]>
Reviewed-by: Liming Gao <[email protected]>


  Commit: 0223bdd4e40975c427616761fb13c9454461b64d
      
https://github.com/tianocore/edk2/commit/0223bdd4e40975c427616761fb13c9454461b64d
  Author: Yi Li <[email protected]>
  Date:   2024-01-19 (Fri, 19 Jan 2024)

  Changed paths:
    M FmpDevicePkg/Library/FmpDependencyLib/FmpDependencyLib.c
    M FmpDevicePkg/PrivateInclude/FmpLastAttemptStatus.h
    M 
FmpDevicePkg/Test/UnitTest/Library/FmpDependencyLib/EvaluateDependencyUnitTest.c

  Log Message:
  -----------
  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 <[email protected]>

Cc: Liming Gao <[email protected]>
Cc: Michael D Kinney <[email protected]>
Cc: Wei6 Xu <[email protected]>
Reviewed-by: Wei6 Xu <[email protected]>
Reviewed-by: Liming Gao <[email protected]>


Compare: https://github.com/tianocore/edk2/compare/9d3fe85fcc8f...0223bdd4e409


_______________________________________________
edk2-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-commits

Reply via email to