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 jwilk
Recipients jwilk
Date 2014-10-10.19:18:23
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1412968703.77.0.12128732374.issue22605@psf.upfronthosting.co.za>
In-reply-to
Content
If you initialize array with another empty array, then this code runs:

    memcpy(self->ob_item, other->ob_item, len * other->ob_descr->itemsize);

But self->ob_item and other->ob_item are NULL in such case.
Passing null pointer to memcpy() is undefined behavior even when length is 0.
History
Date User Action Args
2014-10-10 19:18:23jwilksetrecipients: + jwilk
2014-10-10 19:18:23jwilksetmessageid: <1412968703.77.0.12128732374.issue22605@psf.upfronthosting.co.za>
2014-10-10 19:18:23jwilklinkissue22605 messages
2014-10-10 19:18:23jwilkcreate