mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2026-06-06 17:21:22 +00:00
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:
@@ -908,7 +908,7 @@ basl_make_templates(void)
|
||||
{
|
||||
const char *tmpdir;
|
||||
int err;
|
||||
int len;
|
||||
size_t len;
|
||||
|
||||
err = 0;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user