1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2026-10-24 01:09:01 +03:00

use duplicating variant in relaxng to mitigate UAF

This commit is contained in:
Jayakrishna Menon
2026-02-10 14:24:15 -07:00
parent 359083591e
commit 5dfd9065ec

View File

@@ -8658,7 +8658,7 @@ xmlRelaxNGValidateValue(xmlRelaxNGValidCtxtPtr ctxt,
if ((ret == 0) && (ctxt->state->value != NULL) &&
(ctxt->state->value != ctxt->state->endvalue)) {
VALID_ERR2(XML_RELAXNG_ERR_LISTEXTRA,
VALID_ERR2P(XML_RELAXNG_ERR_LISTEXTRA,
ctxt->state->value);
ret = -1;
}