Reporting Issues
Bug 3321 - PiPeiCis: Section data returned without corresponding size
Summary: PiPeiCis: Section data returned without corresponding size
Status: UNCONFIRMED
Alias: None
Product: EDK2
Classification: Unclassified
Component: Code (show other bugs)
Version: Current
Hardware: All All
: Normal normal
Assignee: Marvin Häuser
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-04-12 09:56 UTC by Marvin Häuser
Modified: 2021-04-13 21:57 UTC (History)
4 users (show)

See Also:
EDK II Code First industry standard specifications: ---
Branch URL:
Release(s) the issue is observed: EDK II Master
The OS the target platform is running: ---
Package: MdePkg
Release(s) the issues must be fixed: EDK II Master
Tianocore documents:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Marvin Häuser 2021-04-12 09:56:50 UTC
EFI_PEI_FFS_FIND_SECTION_DATA2[1] and EFI_PEI_FFS_FIND_SECTION_DATA3[2] return section data without their corresponding sizes. This makes secure parsing of the data impossible. This is an issue with the UEFI PI specification and is submitted mainly for discussion/feedback and tracking reasons.

[1] https://github.com/tianocore/edk2/blob/2072c22a0d63c780b0cc6377f6d4ffb116ad6144/MdePkg/Include/Pi/PiPeiCis.h#L383-L390

[2] https://github.com/tianocore/edk2/blob/2072c22a0d63c780b0cc6377f6d4ffb116ad6144/MdePkg/Include/Pi/PiPeiCis.h#L413-L422
Comment 1 gaoliming 2021-04-13 21:57:08 UTC
Marvin, you can continue to provide the proposal.