]> git.proxmox.com Git - mirror_edk2.git/commit
MdeModulePkg/UefiHiiLib: Fix incorrect check for string length
authorBi, Dandan <dandan.bi@intel.com>
Tue, 29 Aug 2017 06:44:37 +0000 (14:44 +0800)
committerEric Dong <eric.dong@intel.com>
Tue, 29 Aug 2017 07:57:12 +0000 (15:57 +0800)
commit1696b221b15e439162cfccd6bd04132e425dd2ff
tree430ed8cf2147e5d48f7232221d984cfa84e986af
parent2f208e59e4b994978a1a24affc306eb694a00327
MdeModulePkg/UefiHiiLib: Fix incorrect check for string length

REF: https://bugzilla.tianocore.org/show_bug.cgi?id=681

For string opcode,when checking the valid string length,
it should exclude the Null-terminated character.
And for string in NameValue storage, need to exclude
the varname and also need to convert the Config string
length to Unicode string length.

Cc: Eric Dong <eric.dong@intel.com>
Cc: Liming Gao <liming.gao@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Dandan Bi <dandan.bi@intel.com>
Reviewed-by: Eric Dong <eric.dong@intel.com>
MdeModulePkg/Library/UefiHiiLib/HiiLib.c