]> git.proxmox.com Git - mirror_edk2.git/commit
BaseTools/C/Common: Refine using sprintf() with '%s' in format string
authorHao Wu <hao.a.wu@intel.com>
Mon, 18 Dec 2017 06:26:12 +0000 (14:26 +0800)
committerHao Wu <hao.a.wu@intel.com>
Mon, 25 Dec 2017 01:54:18 +0000 (09:54 +0800)
commit3e1497334e45d09b8eccbc24ca571308e015e995
tree7399ded3c9648b4c43fbf2d3a7c89ba6696c0d30
parent938cf4b9bd91167e4de637de3c1e7fa449e9de94
BaseTools/C/Common: Refine using sprintf() with '%s' in format string

The commit removes the usages of sprintf() function calls with '%s' in
the format string. And uses strncpy/strncat instead to ensure the
destination string buffers will not be accessed beyond their 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/EfiUtilityMsgs.c