Message164274
If the "name" argument to "_hashlib.new()" is not a string, the reference count for the "string" argument is not decremented.
In the file "Modules/_hashopenssl.c", function "EVP_new()", a call to "PyBuffer_Release()" is missing:
if (!PyArg_Parse(name_obj, "s", &name)) {
+ PyBuffer_Release(&view);
PyErr_SetString(PyExc_TypeError, "name must be a string");
return NULL;
} |
|
Date |
User |
Action |
Args |
2012-06-28 16:45:53 | mfoetsch | set | recipients:
+ mfoetsch |
2012-06-28 16:45:53 | mfoetsch | set | messageid: <1340901953.6.0.903394800639.issue15219@psf.upfronthosting.co.za> |
2012-06-28 16:45:53 | mfoetsch | link | issue15219 messages |
2012-06-28 16:45:52 | mfoetsch | create | |
|