DM:fix the possible buffer overflow issue using 'strncpy'

function 'strncpy' may incorrectly check buffer boundaries
and may overflow buffers.

Signed-off-by: Yonghua Huang <yonghua.huang@intel.com>
This commit is contained in:
Yonghua Huang
2018-05-22 18:39:08 +08:00
committed by lijinxia
parent 4ed6d92226
commit eb943e7b13
4 changed files with 6 additions and 6 deletions

View File

@@ -908,7 +908,7 @@ basl_make_templates(void)
{
const char *tmpdir;
int err;
int len;
size_t len;
err = 0;