summaryrefslogtreecommitdiff
path: root/BaseTools/Source/Python/Ecc
diff options
context:
space:
mode:
authorLevi Yun <yeoreum.yun@arm.com>2025-09-19 19:19:46 +0300
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2025-10-02 10:29:06 +0300
commitf1f672b89871fe23ee9bd237e7863290b94f8591 (patch)
treee3482682eac2e02c91d544e05bc0f81d8672c955 /BaseTools/Source/Python/Ecc
parentedb5331f787519d1abbcf05563c7997453be2ef5 (diff)
downloadedk2-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/Ecc')
0 files changed, 0 insertions, 0 deletions