diff options
author | Levi Yun <yeoreum.yun@arm.com> | 2025-09-19 19:19:46 +0300 |
---|---|---|
committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2025-10-02 10:29:06 +0300 |
commit | f1f672b89871fe23ee9bd237e7863290b94f8591 (patch) | |
tree | e3482682eac2e02c91d544e05bc0f81d8672c955 /BaseTools/Source/Python/build/BuildReport.py | |
parent | edb5331f787519d1abbcf05563c7997453be2ef5 (diff) | |
download | edk2-f1f672b89871fe23ee9bd237e7863290b94f8591.tar.xz |
ArmPkg/SemihostFs: fix crash when file open fails
Since the FileFcb’s list entry is not initialized at allocation,
SemihostFs reports the following crash when freeing FileFcb
after failing to obtain the file size in FileOpen():
ASSERT [SemihostFs] LinkedList.c(75): List->ForwardLink != ((void *) 0)
To fix this, properly initialize the list entry at FCB allocation
and move RemoveListEntry() to FileClose(),
since the FCB entry will only be on the list
when VolumeOpen() or FileOpen() succeeds.
Signed-off-by: Yeoreum Yun <yeoreum.yun@arm.com>
Diffstat (limited to 'BaseTools/Source/Python/build/BuildReport.py')
0 files changed, 0 insertions, 0 deletions