summaryrefslogtreecommitdiffstats
path: root/StandaloneMmPkg/Include
diff options
context:
space:
mode:
authorMichael Kubacki <michael.kubacki@microsoft.com>2024-07-02 11:43:24 -0400
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2024-07-05 13:08:56 +0000
commit051c7bb434f9f6b908aac2a0b00368192aa616ec (patch)
treeb52c6653da9c4222d065fae1a938f67b0c8b8e20 /StandaloneMmPkg/Include
parentbef0d333dc4fccdfc75e4be31e067b467a9a4093 (diff)
downloadedk2-051c7bb434f9f6b908aac2a0b00368192aa616ec.tar.gz
StandaloneMmPkg: Fix section data length returned larger than actual data
This change fixes an issue where the returned section data length is always 4 bytes larger than the actual section length. This could cause an issue where the caller accesses the final 4 bytes which would be invalid. Co-authored-by: Kun Qin <kuqin@microsoft.com> Signed-off-by: Michael Kubacki <michael.kubacki@microsoft.com>
Diffstat (limited to 'StandaloneMmPkg/Include')
-rw-r--r--StandaloneMmPkg/Include/Library/FvLib.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/StandaloneMmPkg/Include/Library/FvLib.h b/StandaloneMmPkg/Include/Library/FvLib.h
index 1eb9ea7e04..3b603e473d 100644
--- a/StandaloneMmPkg/Include/Library/FvLib.h
+++ b/StandaloneMmPkg/Include/Library/FvLib.h
@@ -87,7 +87,7 @@ FindFfsSectionInSections (
@param FfsFileHeader Pointer to the current file to search.
@param SectionData Pointer to the Section matching SectionType in FfsFileHeader.
NULL if section not found
- @param SectionDataSize The size of SectionData
+ @param SectionDataSize The size of SectionData, excluding the section header.
@retval EFI_NOT_FOUND No files matching the search criteria were found
@retval EFI_SUCCESS