]> git.proxmox.com Git - mirror_edk2.git/commit
BaseTools/GenBootSector: Add/refine boundary checks for strcpy/strcat
authorHao Wu <hao.a.wu@intel.com>
Mon, 18 Dec 2017 01:17:52 +0000 (09:17 +0800)
committerHao Wu <hao.a.wu@intel.com>
Mon, 25 Dec 2017 01:54:25 +0000 (09:54 +0800)
commit1bdd9465c12e53246e88dc91cd22879ceb269f5c
tree3672c530025e1580a3c2144f7f874104b0116845
parent52e8c5683843f3d5f9e979cbc0261d3951a7e0be
BaseTools/GenBootSector: Add/refine boundary checks for strcpy/strcat

Add checks to ensure when the destination string buffer is of fixed
size, the strcpy/strcat functions calls will not access beyond the
boundary.

Cc: Yonghong Zhu <yonghong.zhu@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Hao Wu <hao.a.wu@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
BaseTools/Source/C/GenBootSector/GenBootSector.c