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 Mark.Shannon
Recipients Mark.Shannon, berker.peksag, pkt, rhettinger, serhiy.storchaka
Date 2015-07-04.14:37:20
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1436020641.16.0.918110199564.issue24407@psf.upfronthosting.co.za>
In-reply-to
Content
There are two parts to this fix.

First, we raise a runtime exception if the other dict is modified during the update/merge.
Second, refcounts must be incremented around the PyDict_GetItem and insertdict calls in case the key or value is otherwise deallocated.
 
Patch attached.
History
Date User Action Args
2015-07-04 14:37:21Mark.Shannonsetrecipients: + Mark.Shannon, rhettinger, berker.peksag, serhiy.storchaka, pkt
2015-07-04 14:37:21Mark.Shannonsetmessageid: <1436020641.16.0.918110199564.issue24407@psf.upfronthosting.co.za>
2015-07-04 14:37:21Mark.Shannonlinkissue24407 messages
2015-07-04 14:37:21Mark.Shannoncreate