]> git.proxmox.com Git - mirror_edk2.git/commit
BaseTools/GenVtf: Add/refine boundary checks for strcpy/strcat calls
authorHao Wu <hao.a.wu@intel.com>
Mon, 18 Dec 2017 01:19:23 +0000 (09:19 +0800)
committerHao Wu <hao.a.wu@intel.com>
Mon, 25 Dec 2017 01:54:34 +0000 (09:54 +0800)
commit1c47ab04046d8a4123d4bcf8826f42aca2777292
tree94c0956b8f4043878c962742986d54034a177c0d
parentfc42d0e89002af2d23f83edb5b64d9a56e825922
BaseTools/GenVtf: Add/refine boundary checks for strcpy/strcat calls

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/GenVtf/GenVtf.c