Skip to content

Commit 5832be7

Browse files
committed
Merge branch 'PHP-7.4' into PHP-8.0
* PHP-7.4: Fix #73533: Invalid memory access in php_libxml_xmlCheckUTF8
2 parents 733b514 + 498eb8e commit 5832be7

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

NEWS

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ PHP NEWS
1313
. Fixed bug #80024 (Duplication of info about inherited socket after pool
1414
removing). (Jakub Zelenka)
1515

16+
- LibXML:
17+
. Fixed bug #73533 (Invalid memory access in php_libxml_xmlCheckUTF8). (cmb)
18+
1619
- Opcache:
1720
. Fixed bug #80839 (PHP problem with JIT). (Dmitry)
1821
. Fixed bug #80861 (erronous array key overflow in 2D array with JIT).

ext/libxml/libxml.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1158,7 +1158,7 @@ PHP_FUNCTION(libxml_set_external_entity_loader)
11581158
/* {{{ Common functions shared by extensions */
11591159
int php_libxml_xmlCheckUTF8(const unsigned char *s)
11601160
{
1161-
int i;
1161+
size_t i;
11621162
unsigned char c;
11631163

11641164
for (i = 0; (c = s[i++]);) {

0 commit comments

Comments
 (0)