Skip to content

Commit 7b74cad

Browse files
authored
Fix uninitialized (dummy) memory in php_strtr_array() (#14812)
Fixes one issue in GH-14806.
1 parent a8d1955 commit 7b74cad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/standard/string.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3275,7 +3275,7 @@ PHP_FUNCTION(strtr)
32753275
/* case_sensitive */ true,
32763276
NULL));
32773277
} else {
3278-
zend_long dummy;
3278+
zend_long dummy = 0;
32793279
RETVAL_STR(php_str_to_str_ex(str,
32803280
ZSTR_VAL(str_key), ZSTR_LEN(str_key),
32813281
ZSTR_VAL(replace), ZSTR_LEN(replace), &dummy));

0 commit comments

Comments
 (0)