diff options
author | Jian J Wang <jian.j.wang@intel.com> | 2017-12-25 10:07:39 +0800 |
---|---|---|
committer | Liming Gao <liming.gao@intel.com> | 2017-12-28 11:12:07 +0800 |
commit | 6805854a736b0e0192fb4863da4db4295345c87b (patch) | |
tree | 354241a95576aa6cb8a45817fba109f6d5527a86 /BaseTools/Source/Python/GenFds/FfsInfStatement.py | |
parent | c24d664dca26c41bbba84ca37b54e81f85bcb249 (diff) | |
download | edk2-6805854a736b0e0192fb4863da4db4295345c87b.tar.gz edk2-6805854a736b0e0192fb4863da4db4295345c87b.tar.bz2 edk2-6805854a736b0e0192fb4863da4db4295345c87b.zip |
MdePkg/BasePrintLib: Fix error in Precision position calculation
Due to a potential hole in the stop condition of loop, the two continuous
access to ArgumentString (index, index+1) inside the loop might cause the
string ending character ('\0') and the byte after it to be read.
Cc: Michael D Kinney <michael.d.kinney@intel.com>
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: Liming Gao <liming.gao@intel.com>
Diffstat (limited to 'BaseTools/Source/Python/GenFds/FfsInfStatement.py')
0 files changed, 0 insertions, 0 deletions