Lines Matching refs:alloc_len
1611 size_t alloc_len; /* Actual allocated length */ in php_pcre_replace_impl() local
1628 alloc_len = 0; in php_pcre_replace_impl()
1716 if (new_len >= alloc_len) { in php_pcre_replace_impl()
1717 alloc_len = zend_safe_address_guarded(2, new_len, ZSTR_MAX_OVERHEAD) - ZSTR_MAX_OVERHEAD; in php_pcre_replace_impl()
1719 result = zend_string_alloc(alloc_len, 0); in php_pcre_replace_impl()
1721 result = zend_string_extend(result, alloc_len, 0); in php_pcre_replace_impl()
1806 alloc_len = result_len + subject_len - last_end_offset; in php_pcre_replace_impl()
1808 result = zend_string_realloc(result, alloc_len, 0); in php_pcre_replace_impl()
1810 result = zend_string_alloc(alloc_len, 0); in php_pcre_replace_impl()
1854 size_t alloc_len; /* Actual allocated length */ in php_pcre_replace_func_impl() local
1880 alloc_len = 0; in php_pcre_replace_func_impl()
1956 if (new_len >= alloc_len) { in php_pcre_replace_func_impl()
1957 alloc_len = zend_safe_address_guarded(2, new_len, ZSTR_MAX_OVERHEAD) - ZSTR_MAX_OVERHEAD; in php_pcre_replace_func_impl()
1959 result = zend_string_alloc(alloc_len, 0); in php_pcre_replace_func_impl()
1961 result = zend_string_extend(result, alloc_len, 0); in php_pcre_replace_func_impl()
2015 alloc_len = result_len + subject_len - last_end_offset; in php_pcre_replace_func_impl()
2017 result = zend_string_realloc(result, alloc_len, 0); in php_pcre_replace_func_impl()
2019 result = zend_string_alloc(alloc_len, 0); in php_pcre_replace_func_impl()