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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user