Author serhiy.storchaka
Recipients martin.panter, serhiy.storchaka
Date 2015-12-18.12:04:44
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1450440284.88.0.232739188714.issue25902@psf.upfronthosting.co.za>
In-reply-to
Content
ElementTree iteration code holds borrowed references when call user code (comparison with the tag, concatenating text and tail lazy lists, testing text and tail for empty). User code can make borrowed references invalid and this can lead to a crash. One example is provided by Martin in msg256495. Other possible cases can be more hard to reproduce.

Proposed patch makes iterating code to own references that it operates.
History
Date User Action Args
2015-12-18 12:04:45serhiy.storchakasetrecipients: + serhiy.storchaka, martin.panter
2015-12-18 12:04:44serhiy.storchakasetmessageid: <1450440284.88.0.232739188714.issue25902@psf.upfronthosting.co.za>
2015-12-18 12:04:44serhiy.storchakalinkissue25902 messages
2015-12-18 12:04:44serhiy.storchakacreate