mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
add overflow check
This commit is contained in:
parent
5d035b57ee
commit
969dcf7b61
1 changed files with 6 additions and 1 deletions
|
@ -1728,9 +1728,14 @@ PHP_FUNCTION(dom_document_xinclude)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (ZEND_LONG_EXCEEDS_INT(flags)) {
|
||||||
|
php_error_docref(NULL, E_WARNING, "Invalid flags");
|
||||||
|
RETURN_FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
DOM_GET_OBJ(docp, id, xmlDocPtr, intern);
|
DOM_GET_OBJ(docp, id, xmlDocPtr, intern);
|
||||||
|
|
||||||
err = xmlXIncludeProcessFlags(docp, flags);
|
err = xmlXIncludeProcessFlags(docp, (int)flags);
|
||||||
|
|
||||||
/* XML_XINCLUDE_START and XML_XINCLUDE_END nodes need to be removed as these
|
/* XML_XINCLUDE_START and XML_XINCLUDE_END nodes need to be removed as these
|
||||||
are added via xmlXIncludeProcess to mark beginning and ending of xincluded document
|
are added via xmlXIncludeProcess to mark beginning and ending of xincluded document
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue