ArmPkg/Library: fix: Incorrect SectionLength Calculation.
Ref:[059332b]
Rootcause: The SectionLength was incorrectly computed using
the FFS_FILE_SIZE() macro. This macro operates on the
EFI_FFS_FILE_HEADER structure, which is incompatible with the
SECTION_SIZE header format.
This mismatch introduces a potential defect due to inaccurate
section size calculation.
Solution: To ensure correctness and structural alignment,
SectionLength must be computed using the SECTION_SIZE macro
defined in MdePkg\Include\Pi\PiFirmwareFile.h.
This macro performs size extraction using byte-wise access.
Cc: Sachin Ganesh <sachinganesh@ami.com>
Signed-off-by: Gowtham M <gowthamm@ami.com>
1 file changed