]> git.proxmox.com Git - mirror_edk2.git/commit
BaseTools/C/Common: Add/refine boundary checks for strcpy/strcat calls
authorHao Wu <hao.a.wu@intel.com>
Mon, 18 Dec 2017 00:57:27 +0000 (08:57 +0800)
committerHao Wu <hao.a.wu@intel.com>
Mon, 25 Dec 2017 01:54:10 +0000 (09:54 +0800)
commit938cf4b9bd91167e4de637de3c1e7fa449e9de94
tree73cdd8fc707a17690d5f3923204c2431e02fd87a
parentf6401aedca2d576f4229c54c1356fea23387981f
BaseTools/C/Common: 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/Common/CommonLib.c
BaseTools/Source/C/Common/EfiUtilityMsgs.c