]> git.proxmox.com Git - mirror_edk2.git/commit - MdeModulePkg/Library/DxePrintLibPrint2Protocol/PrintLib.c
MdeModulePkg/DxePrintLibPrint2Protocol: Fix incomplete print output
authorWang, Jian J <jian.j.wang@intel.com>
Tue, 2 Jan 2018 08:20:21 +0000 (16:20 +0800)
committerLiming Gao <liming.gao@intel.com>
Tue, 2 Jan 2018 08:31:29 +0000 (16:31 +0800)
commitb23276135a51d9d9e9973f30ff6c5014a79d5177
treecbbee0a7f8ef1c667e6610f298cb640eb07901bc
parent701e8cc29a283d6d598695592ca2469cdacddf64
MdeModulePkg/DxePrintLibPrint2Protocol: Fix incomplete print output

This is caused by a previous patch which tried to fix string over-read.
It's found that that patch for PrintLib in MdePkg will cause premature
terminating of loop used to traversing format string and cause incomplete
string output. Because this library uses similar code to do the same
job, it has the same issue too. So the fix is also the same.

Cc: Liming Gao <liming.gao@intel.com>
Cc: Jiewen Yao <jiewen.yao@intel.com>
Cc: Star Zeng <star.zeng@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Jian J Wang <jian.j.wang@intel.com>
Reviewed-by: Star Zeng <star.zeng@intel.com>
MdeModulePkg/Library/DxePrintLibPrint2Protocol/PrintLib.c