Message302375
| Author | scoder |
|---|---|
| Recipients | eli.bendersky, scoder, serhiy.storchaka, vstinner |
| Date | 2017-09-17.17:27:08 |
| SpamBayes Score | -1.0 |
| Marked as misclassified | Yes |
| Message-id | <1505669228.88.0.508971526433.issue31499@psf.upfronthosting.co.za> |
| In-reply-to |
| Content | |
|---|---|
I'm seeing crashes in the latest Py3.7 when I run this test (taken from lxml's compatibility test suite):
etree = xml.etree.ElementTree
def test_feed_parser_error_position(self):
ParseError = etree.ParseError
parser = XMLParser()
try:
parser.close()
except ParseError:
e = sys.exc_info()[1]
self.assertNotEqual(None, e.code)
self.assertNotEqual(0, e.code)
self.assertTrue(isinstance(e.position, tuple))
self.assertTrue(e.position >= (0, 0))
It crashes in expat/xmlparse.c, line 1464:
1459 for (;;) {
1460 BINDING *b = bindings;
1461 if (!b)
1462 break;
1463 bindings = b->nextTagBinding;
1464 FREE(b->uri); // <<<<<<<<<<<<<<< crashes here
1465 FREE(b);
1466 }
1467 }
Probably related to the new expat version (issue 31170). |
|
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2017-09-17 17:27:08 | scoder | set | recipients: + scoder, vstinner, eli.bendersky, serhiy.storchaka |
| 2017-09-17 17:27:08 | scoder | set | messageid: <1505669228.88.0.508971526433.issue31499@psf.upfronthosting.co.za> |
| 2017-09-17 17:27:08 | scoder | link | issue31499 messages |
| 2017-09-17 17:27:08 | scoder | create | |