summaryrefslogtreecommitdiffstats
path: root/BaseTools/Source/Python/AutoGen/AutoGen.py
diff options
context:
space:
mode:
authorStar Zeng <star.zeng@intel.com>2018-03-15 13:50:31 +0800
committerStar Zeng <star.zeng@intel.com>2018-03-17 15:49:01 +0800
commitaa0857304e83801ce8c673504625aa3307abb82f (patch)
tree11755c3009cc880f46d0e68bade040cb5c300a08 /BaseTools/Source/Python/AutoGen/AutoGen.py
parente3df050e5127e9857f90f9322c7f2d0458518955 (diff)
downloadedk2-aa0857304e83801ce8c673504625aa3307abb82f.tar.gz
edk2-aa0857304e83801ce8c673504625aa3307abb82f.tar.bz2
edk2-aa0857304e83801ce8c673504625aa3307abb82f.zip
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>
Diffstat (limited to 'BaseTools/Source/Python/AutoGen/AutoGen.py')
0 files changed, 0 insertions, 0 deletions