From: Christian Heimes Date: Thu, 21 Nov 2013 23:34:18 +0000 (+0100) Subject: downcast len to int. The code has already checked that len < INT_MAX X-Git-Tag: v3.4.0b1~140 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1dbf61fa46d9b0c6a95096ed24638217951ff8b9;p=thirdparty%2FPython%2Fcpython.git downcast len to int. The code has already checked that len < INT_MAX --- diff --git a/Modules/_ssl.c b/Modules/_ssl.c index d2f0d921ee58..69b1eef5f871 100644 --- a/Modules/_ssl.c +++ b/Modules/_ssl.c @@ -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;