audk/SecurityPkg/Tcg/Opal/OpalPassword
Star Zeng aa0857304e SecurityPkg OpalPasswordDxe:Fix wrong BufferSize input to UnicodeSPrint
Current code uses string length as BufferSize input to UnicodeSPrint,
it is wrong and makes the pop up string trimmed. The BufferSize input
to UnicodeSPrint should be the size, in bytes, of the output buffer.

This is to use sizeof (mPopUpString) as the BufferSize input to
UnicodeSPrint, it also updates array size of mPopUpString from 256 to
100 that is enough, otherwise the pop up string may be too long.

Cc: Jiewen Yao <jiewen.yao@intel.com>
Cc: Eric Dong <eric.dong@intel.com>
Cc: Chao Zhang <chao.b.zhang@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Star Zeng <star.zeng@intel.com>
Reviewed-by: Jiewen Yao <jiewen.yao@intel.com>
2018-03-17 15:49:01 +08:00
..
ComponentName.c SecurityPkg OpalPassword: Add solution without SMM device code 2018-03-08 21:33:50 +08:00
OpalAhciMode.c SecurityPkg OpalPassword: Add solution without SMM device code 2018-03-08 21:33:50 +08:00
OpalAhciMode.h SecurityPkg OpalPassword: Add solution without SMM device code 2018-03-08 21:33:50 +08:00
OpalDriver.c SecurityPkg OpalPasswordDxe:Fix wrong BufferSize input to UnicodeSPrint 2018-03-17 15:49:01 +08:00
OpalDriver.h SecurityPkg OpalPassword: Add solution without SMM device code 2018-03-08 21:33:50 +08:00
OpalHii.c SecurityPkg OpalPassword: Add solution without SMM device code 2018-03-08 21:33:50 +08:00
OpalHii.h SecurityPkg OpalPasswordDxe: Move OPAL request variable definition 2018-03-17 15:48:54 +08:00
OpalHiiCallbacks.c SecurityPkg OpalPassword: Add solution without SMM device code 2018-03-08 21:33:50 +08:00
OpalHiiFormStrings.uni SecurityPkg OpalPassword: Add solution without SMM device code 2018-03-08 21:33:50 +08:00
OpalHiiFormValues.h SecurityPkg OpalPasswordDxe: Move OPAL request variable definition 2018-03-17 15:48:54 +08:00
OpalNvmeMode.c SecurityPkg OpalPassword: Add solution without SMM device code 2018-03-08 21:33:50 +08:00
OpalNvmeMode.h SecurityPkg OpalPassword: Add solution without SMM device code 2018-03-08 21:33:50 +08:00
OpalNvmeReg.h SecurityPkg OpalPassword: Add solution without SMM device code 2018-03-08 21:33:50 +08:00
OpalPasswordCommon.h SecurityPkg OpalPassword: Add solution without SMM device code 2018-03-08 21:33:50 +08:00
OpalPasswordDxe.inf SecurityPkg OpalPassword: Add solution without SMM device code 2018-03-08 21:33:50 +08:00
OpalPasswordForm.vfr SecurityPkg OpalPassword: Add solution without SMM device code 2018-03-08 21:33:50 +08:00
OpalPasswordPei.c SecurityPkg OpalPasswordPei: Go next when AhciModeInitialize is failed 2018-03-17 15:48:55 +08:00
OpalPasswordPei.h SecurityPkg OpalPassword: Add solution without SMM device code 2018-03-08 21:33:50 +08:00
OpalPasswordPei.inf SecurityPkg OpalPassword: Add solution without SMM device code 2018-03-08 21:33:50 +08:00