Re: [edk2] [PATCH v2] MdeModulePkg/UefiHiiLib: Fix incorrect check for string length

2017-08-29 Thread Dong, Eric
Reviewed-by: Eric Dong -Original Message- From: Bi, Dandan Sent: Tuesday, August 29, 2017 2:45 PM To: edk2-devel@lists.01.org Cc: Dong, Eric ; Gao, Liming Subject: [PATCH v2] MdeModulePkg/UefiHiiLib: Fix incorrect check for string length REF: https://bugzilla.tianocore.org/show_bug.cg

[edk2] [PATCH v2] MdeModulePkg/UefiHiiLib: Fix incorrect check for string length

2017-08-28 Thread Dandan Bi
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 len