Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
DISCONTINUED:openSUSE:11.2:Update
python-crypto
pycrypto-2.0.1-ssize.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File pycrypto-2.0.1-ssize.patch of Package python-crypto
--- src/hash_template.c +++ src/hash_template.c @@ -98,13 +98,15 @@ PyObject *value, *retval; unsigned char *raw_digest, *hex_digest; int i, j, size; + Py_ssize_t ssize; if (!PyArg_ParseTuple(args, "")) return NULL; /* Get the raw (binary) digest value */ value = (PyObject *)hash_digest(&(self->st)); - size = PyString_Size(value); + ssize = PyString_Size(value); + size = (ssize > INT_MAX) ? INT_MAX : ssize; raw_digest = PyString_AsString(value); /* Create a new string */
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor