This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author mfoetsch
Recipients mfoetsch
Date 2012-06-28.16:45:52
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1340901953.6.0.903394800639.issue15219@psf.upfronthosting.co.za>
In-reply-to
Content
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;
  }
History
Date User Action Args
2012-06-28 16:45:53mfoetschsetrecipients: + mfoetsch
2012-06-28 16:45:53mfoetschsetmessageid: <1340901953.6.0.903394800639.issue15219@psf.upfronthosting.co.za>
2012-06-28 16:45:53mfoetschlinkissue15219 messages
2012-06-28 16:45:52mfoetschcreate