diff options
| author | Qihang Gao <gaoqihang@loongson.cn> | 2026-09-24 12:05:28 +0300 |
|---|---|---|
| committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2026-09-25 15:42:52 +0300 |
| commit | 12478683adf32afcb48925324d4cee84f2e006d4 (patch) | |
| tree | 23f12315086dab25289b3ea362a01e5b4a9c2a74 /MdePkg/Library/BasePostCodeLibDebug/BasePostCodeLibDebug.msa | |
| parent | 857e02a51bd899407d812987fdb6a3467b0bca14 (diff) | |
| download | edk2-12478683adf32afcb48925324d4cee84f2e006d4.tar.xz | |
ArmPkg/SmbiosMiscDxe: Handle NULL strings in SetBiosVersion
HiiGetString() may return NULL, which would cause a NULL pointer
dereference in StrCmp() and StrLen(). Add NULL checks for
DefaultVersionString and Version before using them.
Treating a NULL DefaultVersionString or Version the same as an empty
or default version also allows the firmware version to be taken from
PcdFirmwareVersionString in that case, preserving the existing
fallback logic without changing behavior when both strings are valid.
Signed-off-by: Qihang Gao <gaoqihang@loongson.cn>
Diffstat (limited to 'MdePkg/Library/BasePostCodeLibDebug/BasePostCodeLibDebug.msa')
0 files changed, 0 insertions, 0 deletions
