summaryrefslogtreecommitdiff
path: root/MdePkg/Library/BasePostCodeLibDebug/BasePostCodeLibDebug.msa
diff options
context:
space:
mode:
authorQihang Gao <gaoqihang@loongson.cn>2026-09-24 12:05:28 +0300
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2026-09-25 15:42:52 +0300
commit12478683adf32afcb48925324d4cee84f2e006d4 (patch)
tree23f12315086dab25289b3ea362a01e5b4a9c2a74 /MdePkg/Library/BasePostCodeLibDebug/BasePostCodeLibDebug.msa
parent857e02a51bd899407d812987fdb6a3467b0bca14 (diff)
downloadedk2-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