Re: [edk2] [PATCH v2] MdeModulePkg/HiiDatabase: clean the value before setting default string

2017-02-21 Thread Dong, Eric
Reviewed-by: Eric Dong > -Original Message- > From: Bi, Dandan > Sent: Tuesday, February 21, 2017 10:26 AM > To: edk2-devel@lists.01.org > Cc: Dong, Eric; Gao, Liming > Subject: [PATCH v2] MdeModulePkg/HiiDatabase: clean the value before setting > default string > > For string op-code,

[edk2] [PATCH v2] MdeModulePkg/HiiDatabase: clean the value before setting default string

2017-02-20 Thread Dandan Bi
For string op-code, the default string may not reach the maximum size, so when generating string, we should clean the value before setting the default string. V2: Add check for default string size. Cc: Eric Dong Cc: Liming Gao Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-