commit | a4c86a395ee447c59175c762af3d17f7107b2261 | [log] [tgz] |
---|---|---|
author | Sebastian Pipping <sebastian@pipping.org> | Sun Mar 03 02:19:58 2024 +0100 |
committer | Sebastian Pipping <sebastian@pipping.org> | Wed Mar 06 22:34:26 2024 +0100 |
tree | b29f9c9765d81ab9e6d4b8c79bfe99988a5f9e7b | |
parent | 6bcb991574a084b3ed6d79c4ef9d78d14285d85f [diff] |
lib/xmlparse.c: Reject directly recursive parameter entities
diff --git a/expat/lib/xmlparse.c b/expat/lib/xmlparse.c index b884d82..8e667fc 100644 --- a/expat/lib/xmlparse.c +++ b/expat/lib/xmlparse.c
@@ -6240,7 +6240,7 @@ dtd->keepProcessing = dtd->standalone; goto endEntityValue; } - if (entity->open) { + if (entity->open || (entity == parser->m_declEntity)) { if (enc == parser->m_encoding) parser->m_eventPtr = entityTextPtr; result = XML_ERROR_RECURSIVE_ENTITY_REF;