]> git.proxmox.com Git - mirror_edk2.git/commit - BaseTools/Source/C/VfrCompile/VfrUtilityLib.cpp
BaseTools/VfrCompile: Add/refine boundary checks for strcpy/strcat
authorHao Wu <hao.a.wu@intel.com>
Mon, 18 Dec 2017 01:20:09 +0000 (09:20 +0800)
committerHao Wu <hao.a.wu@intel.com>
Mon, 25 Dec 2017 01:54:37 +0000 (09:54 +0800)
commitd837f33ab00ce9a0708382bfcf8f48f39d287644
tree9f00f9b93ea4714cb6ddd50ae94055d858d96a57
parent1c47ab04046d8a4123d4bcf8826f42aca2777292
BaseTools/VfrCompile: 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/VfrCompile/VfrUtilityLib.cpp