mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
dom: Fix missing NUL byte check on C14NFile()
Closes GH-20466.
This commit is contained in:
3
NEWS
3
NEWS
@@ -11,6 +11,9 @@ PHP NEWS
|
||||
. Fix crashes when trying to instantiate uninstantiable classes via date
|
||||
static constructors. (ndossche)
|
||||
|
||||
- DOM:
|
||||
. Fix missing NUL byte check on C14NFile(). (ndossche)
|
||||
|
||||
- Opcache:
|
||||
. Fixed bug GH-20329 (opcache.file_cache broken with full interned string
|
||||
buffer). (Arnaud)
|
||||
|
||||
@@ -1857,7 +1857,7 @@ static void dom_canonicalization(INTERNAL_FUNCTION_PARAMETERS, int mode) /* {{{
|
||||
}
|
||||
} else {
|
||||
if (zend_parse_parameters(ZEND_NUM_ARGS(),
|
||||
"s|bba!a!", &file, &file_len, &exclusive,
|
||||
"p|bba!a!", &file, &file_len, &exclusive,
|
||||
&with_comments, &xpath_array, &ns_prefixes) == FAILURE) {
|
||||
RETURN_THROWS();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user