diff options
| author | Oliver Smith-Denny <osde@microsoft.com> | 2026-06-13 00:53:05 +0300 |
|---|---|---|
| committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2026-06-13 12:06:33 +0300 |
| commit | 6eca4a4a95942e9d7eb1809524e4116fb3ac1cd3 (patch) | |
| tree | 2595927eb7d08d8227e8fbcf8faaff44c87b466b /BaseTools/Source/Python | |
| parent | e63bba000a464fe35fb215e99bc4dcf01ebeabd6 (diff) | |
| download | edk2-6eca4a4a95942e9d7eb1809524e4116fb3ac1cd3.tar.xz | |
EmbeddedPkg: PrePiLib: Zero Volume Info Buffer Before Writing
FfsGetVolumeInfo() in PrePiLib does not zero the VolumeInfo
buffer before writing to it. However, it has some fields that
are expected to be zero if certain conditions are not met.
For example, the FvName is expected to be all 0's if the
extended header is not present in the FV. Currently,
the FvName field will point to garbage if the caller does
not zero the buffer first.
Flip the expectation and have FfsGetVolumeInfo() zero the
buffer before it writes to it.
Signed-off-by: Oliver Smith-Denny <osde@microsoft.com>
Diffstat (limited to 'BaseTools/Source/Python')
0 files changed, 0 insertions, 0 deletions
