Fixes for Coverity issues
This commit is contained in:
@ -363,7 +363,7 @@ unsigned char encrypted[80];
|
||||
return NULL;
|
||||
|
||||
memset(padded_passwd, 0, 80);
|
||||
strcpy((char *)padded_passwd, password);
|
||||
strncpy((char *)padded_passwd, password, 80);
|
||||
padded_len = ((strlen(password) / AES_BLOCK_SIZE) + 1) * AES_BLOCK_SIZE;
|
||||
|
||||
AES_set_encrypt_key(keys->enckey, 8 * MAXSCALE_KEYLEN, &aeskey);
|
||||
|
||||
Reference in New Issue
Block a user