Increase internal security when using strncpy, by making sure the resulting string is NUL-terminated
This commit is contained in:
@@ -94,6 +94,7 @@ int i;
|
||||
OPENSSL_free(b);
|
||||
}
|
||||
strncpy(buf,"NO X509_NAME",len);
|
||||
buf[len-1]='\0';
|
||||
return buf;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user