summaryrefslogtreecommitdiffstats
path: root/NetworkPkg/IScsiDxe
diff options
context:
space:
mode:
authorRuiyu Ni <ruiyu.ni@intel.com>2017-10-25 09:01:27 +0800
committerRuiyu Ni <ruiyu.ni@intel.com>2017-10-26 13:04:15 +0800
commit452676ffd895651683dcf19535e65294ff1d00d0 (patch)
treee17cf401518006a6830b028e24cf9ea7fc71d332 /NetworkPkg/IScsiDxe
parent704b71d7e11f115a3b5b03471d6420a7a70f1585 (diff)
downloadedk2-452676ffd895651683dcf19535e65294ff1d00d0.tar.gz
edk2-452676ffd895651683dcf19535e65294ff1d00d0.tar.bz2
edk2-452676ffd895651683dcf19535e65294ff1d00d0.zip
Shellpkg/editor: Fix a bug that may modifies Line[-1]
The original code as below intend to set the character before last column to CHAR_NULL. Line[(LastCol % (ARRAY_SIZE (Line) - 1)) - 1] = CHAR_NULL; But when LastCol % (ARRAY_SIZE (Line) - 1)) equals to 0, Line[-1] is modified. We should change to code as below: Line[(LastCol - 1) % (ARRAY_SIZE (Line) - 1)] = CHAR_NULL; Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com> Reviewed-by: Jaben Carsey <jaben.carsey@intel.com> Reviewed-by: Hao A Wu <hao.a.wu@intel.com>
Diffstat (limited to 'NetworkPkg/IScsiDxe')
0 files changed, 0 insertions, 0 deletions