Reduce error buffer size

120 bytes is ample, the doc says.
This commit is contained in:
Anatol Belski 2018-07-05 17:23:47 +02:00
parent 169d454593
commit 0630e3bc03
4 changed files with 4 additions and 4 deletions

View file

@ -5759,7 +5759,7 @@ static int php_pgsql_convert_match(const char *str, size_t str_len, const char *
re = pcre2_compile((PCRE2_SPTR)regex, regex_len, options, &errnumber, &err_offset, php_pcre_cctx());
if (NULL == re) {
PCRE2_UCHAR err_msg[256];
PCRE2_UCHAR err_msg[128];
pcre2_get_error_message(errnumber, err_msg, sizeof(err_msg));
php_error_docref(NULL, E_WARNING, "Cannot compile regex: '%s'", err_msg);
return FAILURE;