mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
downcast len to int. The code has already checked that len < INT_MAX
This commit is contained in:
parent
18fc7be80d
commit
1dbf61fa46
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue