]> git.proxmox.com Git - mirror_edk2.git/commit
BaseTools/EfiRom: Add/refine boundary checks for strcpy/strcat calls
authorHao Wu <hao.a.wu@intel.com>
Mon, 18 Dec 2017 01:16:00 +0000 (09:16 +0800)
committerHao Wu <hao.a.wu@intel.com>
Mon, 25 Dec 2017 01:54:22 +0000 (09:54 +0800)
commit52e8c5683843f3d5f9e979cbc0261d3951a7e0be
tree7851d614bfb836cd54f3b6a03009fc07de9f9e84
parent3e1497334e45d09b8eccbc24ca571308e015e995
BaseTools/EfiRom: 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/EfiRom/EfiRom.c