downcast len to int. The code has already checked that len < INT_MAX
This commit is contained in:
parent
18fc7be80d
commit
1dbf61fa46
|
@ -2520,7 +2520,7 @@ _add_ca_certs(PySSLContext *self, void *data, Py_ssize_t len,
|
|||
return -1;
|
||||
}
|
||||
|
||||
biobuf = BIO_new_mem_buf(data, len);
|
||||
biobuf = BIO_new_mem_buf(data, (int)len);
|
||||
if (biobuf == NULL) {
|
||||
_setSSLError("Can't allocate buffer", 0, __FILE__, __LINE__);
|
||||
return -1;
|
||||
|
|
Loading…
Reference in New Issue