Commit 1c74842
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 <[email protected]>
Signed-off-by: Gowtham M <[email protected]>1 parent 49d4753 commit 1c74842
File tree
1 file changed
+1
-1
lines changed- ArmPkg/Library/DebugAgentSymbolsBaseLib
1 file changed
+1
-1
lines changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
196 | 196 | | |
197 | 197 | | |
198 | 198 | | |
199 | | - | |
| 199 | + | |
200 | 200 | | |
201 | 201 | | |
202 | 202 | | |
| |||
0 commit comments